{"_id":"@bigmistqke/vite-plugin-worker-proxy","_rev":"12-1a8d2a0b337b28dcbbb603ad5b16efb9","name":"@bigmistqke/vite-plugin-worker-proxy","dist-tags":{"latest":"0.0.13"},"versions":{"0.0.1":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.1","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.1","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"173d23ef704164c63f5e0008bc8a11af93c4acc8","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.1.tgz","fileCount":6,"integrity":"sha512-OvNQP7m5SKm29HfUTWk1fpP7EkZcE0GwUZDtqn/4R0RU/dqgwrYQI1ltVL32n2ghEexAIfDHeOdMXkkh7jCsbw==","signatures":[{"sig":"MEYCIQDvRZuRZOtS7YA1KGLlNIwBb+FH+l9/g2RMK8Y+TSPoYAIhAPtjezZJTu5GF2hCVNaZ2Fw71aWTeFi7jOVtCLKeJAqx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9245},"type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/6ab9241272adada1910982e6f7aa0f0f/bigmistqke-vite-plugin-worker-proxy-0.0.1.tgz","_integrity":"sha512-OvNQP7m5SKm29HfUTWk1fpP7EkZcE0GwUZDtqn/4R0RU/dqgwrYQI1ltVL32n2ghEexAIfDHeOdMXkkh7jCsbw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"../worker-proxy"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.1_1734443129071_0.0015337230354361964","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.2","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.2","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"0eb1d7ccf4d0121f1ec78135522905ee1b06abfe","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.2.tgz","fileCount":6,"integrity":"sha512-DjxfbYJZHgNjDz8q3zocNfHfucFk2ILBrRFY/Cr9hayyJHWA7Q+wH4EdqMNcKloS35v54G++a93mfv8PE994Aw==","signatures":[{"sig":"MEUCIDs8h3D5xpyyo638oNr+7AhqqbepjNPdUgfmRcdP6cEuAiEA/GKkoxf2ZjygJBZVkbyn8EVVM5v907ehSvxoPuMMyaA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9307},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/91a60903ed93cf5ee0510dd8dde5dfdf/bigmistqke-vite-plugin-worker-proxy-0.0.2.tgz","_integrity":"sha512-DjxfbYJZHgNjDz8q3zocNfHfucFk2ILBrRFY/Cr9hayyJHWA7Q+wH4EdqMNcKloS35v54G++a93mfv8PE994Aw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5","@bigmistqke/worker-proxy":"^0.0.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.2_1734443796531_0.489477664447622","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.3","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.3","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"c368fb2ef530902ec8a6c6b6d106431167f3759a","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.3.tgz","fileCount":10,"integrity":"sha512-Z2szHmoumlWq+8zRwqcac7cVAVgMMZzlEQqb2z6FccjJTyHtNNMa98mPNMScIF/VzKV85g7Z6WwQit7gX4N8lg==","signatures":[{"sig":"MEYCIQDicVjys8spdgJDtqJCKGs85TOk1l1FmrvaYG5HQ260ewIhAIhY5WkFmjk6UcJXLiYObk3eKligPqCJFHEGgEwCBFc1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14288},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/cc58c6ddf1c52056ad60aba154f8b0dc/bigmistqke-vite-plugin-worker-proxy-0.0.3.tgz","_integrity":"sha512-Z2szHmoumlWq+8zRwqcac7cVAVgMMZzlEQqb2z6FccjJTyHtNNMa98mPNMScIF/VzKV85g7Z6WwQit7gX4N8lg==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5","@bigmistqke/worker-proxy":"^0.0.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.3_1734444413773_0.6291064544004963","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.4","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.4","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"ce8f3cb3fe0e1d9a9e9cc901663644a151521502","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.4.tgz","fileCount":10,"integrity":"sha512-S5XdoceCf5Go/70J/EMHjmSaoOIkihk/vlxRpPNf2eMWmggu3vWWCDXVQgdlR0fVqLzp6cwEqg+vfNi4TLpLJw==","signatures":[{"sig":"MEUCIQC2oXEDzDuvhxGzhz4wWawhhl29rcjcdgpLgI/5AL9scwIgXwHdsLqccwMJBziGbFm3onmdwgZA1p5jdmiOYkaOMHc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14942},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/2485b71c5158cbeac4ccf4ee82378e33/bigmistqke-vite-plugin-worker-proxy-0.0.4.tgz","_integrity":"sha512-S5XdoceCf5Go/70J/EMHjmSaoOIkihk/vlxRpPNf2eMWmggu3vWWCDXVQgdlR0fVqLzp6cwEqg+vfNi4TLpLJw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.4_1734447089914_0.2192842632547336","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.5","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.5","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"63a3bd28e76bf1ad391bad4e763d036a441e82c2","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.5.tgz","fileCount":10,"integrity":"sha512-fEkG98MRrFY/0Cov6qdW61hPwXyhwTw+KrFDc/zR9/lvWbrSF7nnUQDdrcIEcE9YmFtdBNz89YGiXkPUIJCAuw==","signatures":[{"sig":"MEYCIQDPd3hSSMXZj00kfKVaPSIwKtBnF8I1b1b96X5/jSc4TwIhAKKo5FftI3ZIwvuxmOwNGe2X+X7u/AZ3nWiC1YMYxzyB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14965},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/469e3c8e14b9c0c977d17cef3349b2ec/bigmistqke-vite-plugin-worker-proxy-0.0.5.tgz","_integrity":"sha512-fEkG98MRrFY/0Cov6qdW61hPwXyhwTw+KrFDc/zR9/lvWbrSF7nnUQDdrcIEcE9YmFtdBNz89YGiXkPUIJCAuw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.5_1734451145045_0.10396073767889735","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.6","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.6","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"0e33836d212455d28751cd12ffda1ab703ecb366","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.6.tgz","fileCount":10,"integrity":"sha512-ObizXAWRw2nOz4zMiXP+UIhG1iUr90Z3nTM5nowpppjTI5OWqFjJcy/N6ihMMAwrhs0mhrzZoNB07UIHoKGouQ==","signatures":[{"sig":"MEQCIBvHNFc/SJCFLrcLcQy3O7fO+2IircHHAXXOpwTkgl/XAiA7XmLc0ddbdImY5C7GmPF/iZuLJ88zJ22vDXACaPC9nA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15614},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/65895671b129268cbdf06d253e789174/bigmistqke-vite-plugin-worker-proxy-0.0.6.tgz","_integrity":"sha512-ObizXAWRw2nOz4zMiXP+UIhG1iUr90Z3nTM5nowpppjTI5OWqFjJcy/N6ihMMAwrhs0mhrzZoNB07UIHoKGouQ==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.6_1737349973469_0.11048541389876165","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.7","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.7","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"68e68820fae6b9f3c264925697fdb395a09f07a3","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.7.tgz","fileCount":10,"integrity":"sha512-HD5q8RqXvPJd8Tz4qsnjdvjLQ5PwDFL/SGjun86l6SVF/3YXIeF9WxM/SFjcoLa/gIGI6ILW8bj20G9w7p0klw==","signatures":[{"sig":"MEQCIDYH9n4e958ZRJg/2GbTVVgq7WykgNvAK89hJHS1jPHZAiAW2hn3ldNM+9HhaWkoitWWh/FIzthMORKhC7CQkZ590g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16337},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.7.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/4ac65546fa44588dbcdbc24a3c7f8b06/bigmistqke-vite-plugin-worker-proxy-0.0.7.tgz","_integrity":"sha512-HD5q8RqXvPJd8Tz4qsnjdvjLQ5PwDFL/SGjun86l6SVF/3YXIeF9WxM/SFjcoLa/gIGI6ILW8bj20G9w7p0klw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.7_1737380776418_0.8954294201866062","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.9","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.9","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"28a0d9d5e0ee9d1eb536e24d4e71d42758ab2c5f","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.9.tgz","fileCount":10,"integrity":"sha512-1jOlV3uh7lOzErjzknxeSK9onUd8PANgNS8SQ0cXSPu5ejc8rO7Ty3rfI5L4lHD0NNPuB2+2+prNjMOmtDFO3Q==","signatures":[{"sig":"MEYCIQDs79LQz1zRe3cLyFuF0MIeFuLPI7z2TsoRpxNWofRAYQIhAONsdT2MUn5hB6+YbnKrL4h/VSiOzKSTYk2RhphWTL/X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16337},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.9.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/3f701fc14bb59ddc4fdc1b4e5e8d14fc/bigmistqke-vite-plugin-worker-proxy-0.0.9.tgz","_integrity":"sha512-1jOlV3uh7lOzErjzknxeSK9onUd8PANgNS8SQ0cXSPu5ejc8rO7Ty3rfI5L4lHD0NNPuB2+2+prNjMOmtDFO3Q==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.9_1737383086303_0.27488548811479463","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.10","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.10","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"98489084d9dbd270d3a4fee70278b5e6330be2f9","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.10.tgz","fileCount":10,"integrity":"sha512-aVFAvEKJqKHgqgY33zgBvGwHUZmnwCx8yOTMDwAlzBQos2srYapY9rGeNjZ/2KIV13onII40AFEx5l4WGweeOw==","signatures":[{"sig":"MEQCIBhUdDftjlH/AzjkOVqQEFzctuz4Rkdm+Z5SteqKFDbZAiBMkGpcKDiSpbVpzjXc3WtajrL6JBC0V2qW5h1jttioPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15539},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.10.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/479bebdb3eb9524de778d21be1be4ca9/bigmistqke-vite-plugin-worker-proxy-0.0.10.tgz","_integrity":"sha512-aVFAvEKJqKHgqgY33zgBvGwHUZmnwCx8yOTMDwAlzBQos2srYapY9rGeNjZ/2KIV13onII40AFEx5l4WGweeOw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.10_1737383950653_0.9651751481613138","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.11","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.11","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"6cad4eb768cceb382a9dc9f49b48a069f6c84d10","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.11.tgz","fileCount":10,"integrity":"sha512-m447ySG7RHtROz5oqPj7yWKFpRTIHXsS+NTe3howIbOQ7ZYxh9nt/E6ZrLdSp/Oo9OV5V/VZkPOsWMhiYA5Ztw==","signatures":[{"sig":"MEQCICyKB8wmDccpOsUyp2qJNtdFlIT0DE10xyz9qOeQqch6AiADGRxrm0VzkNykdBtKhqO/d3jnN9NT7LH7c2pWUHwIqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15398},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.11.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/5a9bb7d09025ae6cb7d540103ecb737e/bigmistqke-vite-plugin-worker-proxy-0.0.11.tgz","_integrity":"sha512-m447ySG7RHtROz5oqPj7yWKFpRTIHXsS+NTe3howIbOQ7ZYxh9nt/E6ZrLdSp/Oo9OV5V/VZkPOsWMhiYA5Ztw==","_npmVersion":"10.2.4","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.11_1737396546646_0.19490292144320942","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.12","_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.12","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"dist":{"shasum":"a562daa44ab10bc3184a1635a4947196d0b02def","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.12.tgz","fileCount":10,"integrity":"sha512-DJwAeYFsBaNvP4b7bUYmx7RFboU5ZMuaonJSt6lQJZNSRkNqQzDJFMJU5Uy2hMaM+Jjth3s+u2Vg7Pf/7SKScQ==","signatures":[{"sig":"MEUCIQCm95y2l4YXLAikr5OhNJGz2gX0xg6ApFCWa1XftW39yAIgcZMZlr++CSelXBkog4/F9JBkCGWC5GDIrB22CbD/LQM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15399},"main":"./dist/index.cjs","type":"module","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.12.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/b5463e3dfe3b8827651663860aa1e295/bigmistqke-vite-plugin-worker-proxy-0.0.12.tgz","_integrity":"sha512-DJwAeYFsBaNvP4b7bUYmx7RFboU5ZMuaonJSt6lQJZNSRkNqQzDJFMJU5Uy2hMaM+Jjth3s+u2Vg7Pf/7SKScQ==","_npmVersion":"10.9.2","description":"Vite integration of @bigmistqke/worker-proxy.","directories":{},"_nodeVersion":"22.13.1","dependencies":{"tsup":"^8.3.5"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.3","@types/node":"^20.11.0"},"peerDependencies":{"vite":"^5.4.2","@bigmistqke/worker-proxy":"^0.0.11"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-worker-proxy_0.0.12_1738347350809_0.9913647138605186","host":"s3://npm-registry-packages-npm-production"}},"0.0.13":{"name":"@bigmistqke/vite-plugin-worker-proxy","version":"0.0.13","type":"module","description":"Vite integration of @bigmistqke/worker-proxy.","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./client":{"types":"./client.d.ts"}},"devDependencies":{"@types/node":"^20.11.0","typescript":"^5.5.3"},"peerDependencies":{"@bigmistqke/worker-proxy":"^0.0.13","vite":"^5.4.2"},"dependencies":{"tsup":"^8.3.5"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts"},"_id":"@bigmistqke/vite-plugin-worker-proxy@0.0.13","_integrity":"sha512-Tnw36A3aG+9izlgEaAdk7Gfeq58mRyYiyYeSOshvxhhg+Sluregtbqnhr9G9sA9IEgdxYoseZAKpzMVtswu0aw==","_resolved":"/private/var/folders/kf/33x7c6xs76l2v21jmt7lmhpm0000gn/T/9c08113fdebc99044a7f94ac7677e2fb/bigmistqke-vite-plugin-worker-proxy-0.0.13.tgz","_from":"file:bigmistqke-vite-plugin-worker-proxy-0.0.13.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Tnw36A3aG+9izlgEaAdk7Gfeq58mRyYiyYeSOshvxhhg+Sluregtbqnhr9G9sA9IEgdxYoseZAKpzMVtswu0aw==","shasum":"edae70ffb94c824e3c1399bb8412bd880e66964a","tarball":"https://registry.npmjs.org/@bigmistqke/vite-plugin-worker-proxy/-/vite-plugin-worker-proxy-0.0.13.tgz","fileCount":10,"unpackedSize":17044,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEpZtYcblHHvnjMUhkNiIqt+x96NGPDqVLYO8z+VsMxWAiEA22bqvkdyGK/LGt9U7noujHg3DO2yGNEzkV034ha7gXs="}]},"_npmUser":{"name":"bigmistqke","email":"vandijckv@gmail.com"},"directories":{},"maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-worker-proxy_0.0.13_1745958588234_0.23045371463474584"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-17T13:45:28.923Z","modified":"2025-04-29T20:29:48.611Z","0.0.1":"2024-12-17T13:45:29.224Z","0.0.2":"2024-12-17T13:56:36.730Z","0.0.3":"2024-12-17T14:06:53.949Z","0.0.4":"2024-12-17T14:51:30.090Z","0.0.5":"2024-12-17T15:59:05.274Z","0.0.6":"2025-01-20T05:12:53.652Z","0.0.7":"2025-01-20T13:46:16.646Z","0.0.9":"2025-01-20T14:24:46.489Z","0.0.10":"2025-01-20T14:39:10.829Z","0.0.11":"2025-01-20T18:09:06.843Z","0.0.12":"2025-01-31T18:15:50.997Z","0.0.13":"2025-04-29T20:29:48.403Z"},"description":"Vite integration of @bigmistqke/worker-proxy.","maintainers":[{"name":"bigmistqke","email":"vandijckv@gmail.com"}],"readme":"# `@bigmistqke/vite-plugin-worker-proxy`\n\nVite plugin integration of `@bigmistqke/worker-proxy`, automatically wrapping the default exports of `*?worker-proxy` files in a `WorkerProxy`.\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Basic Example](#basic-example)\n- [$transfer](#transfer) _Transfer `Transferables`_\n- [$async](#async) _Await responses of worker-methods_\n- [$port](#port) _Expose a WorkerProxy's api to another WorkerProxy_\n- [Callbacks](#callbacks) _Serialize callbacks to workers_\n\n## Getting Started\n\n**Install Package**\n\npnpm\n\n```bash\npnpm add --save-dev @bigmistqke/vite-plugin-worker-proxy\npnpm add @bigmistqke/worker-proxy\n```\n\nnpm\n\n```bash\nnpm add --save-dev @bigmistqke/vite-plugin-worker-proxy\nnpm add @bigmistqke/worker-proxy\n```\n\nyarn\n\n```bash\nyarn add --dev @bigmistqke/vite-plugin-worker-proxy\nyarn add --dev @bigmistqke/worker-proxy\n```\n\n**Add Types**\n\nTo augment the type `*?worker-proxy` imports we need to include `@bigmistqke/vite-plugin-worker-proxy/client` in the `tsconfig.json`.\n\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\"vite/client\", \"@bigmistqke/vite-plugin-worker-proxy/client\"]\n  }\n}\n```\n\n## Basic Example\n\n**main.ts**\n\n```tsx\nimport type WorkerApi from './worker'\nimport Worker from './worker?worker-proxy'\n\n// Create WorkerProxy\nconst worker = new Worker<typeof WorkerApi>()\n\n// Call ping-method of worker\nworker.ping()\n\n// Call log-method of worker.logger\nworker.logger.log('hello', 'bigmistqke')\n```\n\n**worker.ts**\n\n```tsx\nclass Logger {\n  log(...args: Array<string>) {\n    console.log(...args)\n  }\n}\n\n// Default export the methods you want to expose.\nexport default {\n  logger: new Logger(),\n  ping() {\n    console.log('ping')\n  }\n}\n```\n\n<details>\n<summary>Only **paths that lead to methods** are available from the worker-proxy.</summary>\n\nAll non-function values (even deeply nested ones) are stripped out from the types.\n\n```ts\n// worker.ts\nexport default {\n  state: 'ignore'\n  nested: {\n    state: 'ignore',\n    ignored: {\n      state: 'ignore'\n    },\n    method() {\n      return 'not ignored'\n    }\n  }\n}\n\n// main.ts\nimport type Logger from './worker.ts'\nimport Worker from './worker.ts?worker-proxy'\n\nconst workerProxy = new Worker<Logger>()\n```\n\nThe resulting type of `workerProxy` will be:\n\n```ts\n{\n  nested: {\n    method(): string\n  }\n}\n```\n\n</details>\n\n## $async\n\nAwait responses of WorkerProxy-methods with `worker.$async.method(...)`\n\n**main.ts**\n\n```tsx\nimport Worker from './worker?worker-proxy'\nimport type WorkerMethods from './worker'\n\nconst worker = new Worker<typeof WorkerMethods>()\n\n// Call async version of ask-method\nworker.$async.ask('question').then(console.log)\n```\n\n**worker.ts**\n\n```tsx\nexport default {\n  ask(question: string) {\n    return 'Answer'\n  }\n}\n```\n\n## $transfer\n\nTransfer `Transferables` to/from WorkerProxies with `$transfer(...)`\n\n**main.ts**\n\n```tsx\nimport { $transfer } from '@bigmistqke/worker-proxy'\nimport Worker from './worker?worker-proxy'\nimport type WorkerMethods from './worker'\n\nconst worker = new Worker<typeof WorkerMethods>()\n\nconst buffer = new ArrayBuffer()\n\n// Transfer buffer to worker\nworker.setBuffer($transfer(buffer, [buffer]))\n\n// Call async version of getBuffer and log awaited results\nworker.$async.getBuffer().then(console.log)\n```\n\n**worker.ts**\n\n```tsx\nlet buffer: ArrayBuffer\nexport default {\n  setBuffer(_buffer: ArrayBuffer) {\n    buffer = _buffer\n  },\n  getBuffer() {\n    // Transfer buffer from worker back to main thread\n    return $transfer(buffer, [buffer])\n  }\n}\n```\n\n## $port\n\nExpose a WorkerProxy's API to another WorkerProxy with `worker.$port()` and `createWorkerProxy(port)`:\n\n- `worker.$port()` returns a branded `MessagePort`:\n  - `WorkerProxyPort<T> = MessagePort & { $: T }`\n- `createWorkerProxy` accepts `Worker` and `WorkerProxyPort` as argument.\n  - When given a `WorkerProxyPort` it infers its type from the branded type.\n\n**main.ts**\n\n```tsx\nimport { $transfer } from '@bigmistqke/worker-proxy'\nimport HalloWorker from './hallo-worker?worker-proxy'\nimport type HalloMethods from './hallo-worker'\nimport GoodbyeWorker from './goodbye-worker?worker-proxy'\nimport type GoodbyeMethods from './goodbye-worker'\n\nconst halloWorker = new HalloWorker<typeof HalloMethods>()\nconst goodbyeWorker = new GoodbyeWorker<typeof GoodbyeMethods>()\n\n// Get a WorkerProxyPort of goodbyeWorker\nconst port = goodbyeWorker.$port()\n\n// Transfer the WorkerProxyPort to halloWorker\nhalloWorker.link($transfer(port, [port]))\n\nhalloWorker.hallo()\n```\n\n**hallo-worker.ts**\n\n```tsx\nimport { type WorkerProxy, type WorkerProxyPort, createWorkerProxy } from '@bigmistqke/worker-proxy'\nimport type GoodbyeMethods from './goodbye-worker'\n\nlet goodbyeWorker: WorkerProxy<typeof GoodbyeMethods>\n\nexport default {\n  hallo() {\n    console.log('hallo')\n    setTimeout(() => goodbyeWorker.goodbye(), 1000)\n  },\n  link(port: WorkerProxyPort<typeof GoodbyeMethods>) {\n    // Create WorkerProxy from the given WorkerProxyPort\n    goodbyeWorker = createWorkerProxy(port)\n  }\n}\n```\n\n**goodbye-worker.ts**\n\n```tsx\nexport default {\n  goodbye() {\n    console.log('goodbye')\n  }\n}\n```\n\n## Callbacks\n\nCallbacks are serialized and passed to the worker, but only when they are not embedded within objects or arrays.\n\n```tsx\n// ✅\nworker.callback(console.log)\nworker.callback('test', { id: 'user' }, console.log)\n\n// ❌\nworker.callback({ log: console.log })\n\n// ❌\nworker.callback([console.log])\n```\n\n**main.ts**\n\n```tsx\nimport type Methods from './worker.ts'\nimport Worker from './worker.ts?worker-proxy'\n\nconst worker = new Worker<typeof Methods>()\n\nworker.callback(console.log)\n```\n\n**worker.ts**\n\n```tsx\nexport default {\n  callback(cb: (message: string) => void) {\n    cb('hallo')\n    setTimeout(() => cb('world'), 1000)\n  }\n}\n```\n\n### Manually serialize/deserialize with `$callback` and `$apply`\n\nYou can also manually serialize and deserialize with `$callback` and `$apply`. This can be handy if you prefer explicitness or if you want to pass a callback nested inside object/array.\n\n**main.ts**\n\n```tsx\nimport type Methods from './worker.ts'\nimport { $callback } from '@bigmistqke/worker-proxy'\n\nconst worker = new Worker<typeof Methods>()\n\nworker.callback({ log: $callback(console.log) })\n```\n\n**worker.ts**\n\n```tsx\nimport { $apply, type Callback } from '@bigmistqke/worker-proxy'\n\nexport default {\n  callback({ log }: { log: Callback<(message: string) => void> }) {\n    $apply(log, 'hallo')\n    setTimeout(() => $apply(log, 'hallo'), 1000)\n  }\n}\n```\n","readmeFilename":"README.md"}