{"_id":"@alibaba_inc/fetch_worker","_rev":"11-2da1edda5c04890b21793c79d85d4070","name":"@alibaba_inc/fetch_worker","dist-tags":{"latest":"1.1.6"},"versions":{"1.0.0":{"name":"@alibaba_inc/fetch_worker","version":"1.0.0","keywords":["typescript","match"],"author":{"name":"alibaba-inc"},"license":"MIT","_id":"@alibaba_inc/fetch_worker@1.0.0","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"dist":{"shasum":"00aa386db4c137006bcb23f5b70dfa3539d55e8e","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.0.0.tgz","fileCount":6,"integrity":"sha512-J+v/6l5a/tMWt//kRSWloAEQCJLxzf6WGOEAoKUHZYZiBZjAIp+MaxBesIn3qE7BbB6aCSkOcH88/voScAOGhQ==","signatures":[{"sig":"MEUCIQCPg4bJ+dUiyt79XnwQaHN3oD+madPN3bT25udXcUtCrgIgLzFoI7PDY81WzZ/vitm+R4aHAvF/nzZtkn0u6ynP3YE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4308},"main":"dist/fetchWorker.umd.js","types":"dist/types/index.d.ts","module":"dist/fetchWorker.es.js","scripts":{"pack":"npm pack","build":"vite build && tsc"},"_npmUser":{"name":"alibaba_inc","actor":{"name":"alibaba_inc","type":"user","email":"yuxiao33344520@sina.com"},"email":"yuxiao33344520@sina.com"},"repository":{"url":"git+https://github.com/alibaba-inc/fetch_worker.git","type":"git"},"_npmVersion":"8.19.4","description":"fetch_worker","directories":{},"_nodeVersion":"16.20.2","dependencies":{"vite":"^5.0.0","typescript":"^5.8.3","@types/node":"^24.0.3","@types/react":"^19.1.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fetch_worker_1.0.0_1751266535720_0.5954324798163382","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alibaba_inc/fetch_worker","version":"1.0.1","keywords":["typescript","fetch_worker"],"author":{"name":"alibaba-inc"},"license":"MIT","_id":"@alibaba_inc/fetch_worker@1.0.1","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"dist":{"shasum":"f36bf355e802b31555110967211463f8a7fd9345","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.0.1.tgz","fileCount":6,"integrity":"sha512-JMx5Mkk9Ot+blRyX9rueP7Z3I/rQy7+NWFb26wUjYzjfpHzHfBt0XHm0KRql+kWTf0JNsUyPoPZp5ZTVGsRIug==","signatures":[{"sig":"MEYCIQDRSySwyvr2IoGW8RHSNNJ/+CB5cZSxDFBf/9spADfN5AIhAN/LMG9EnwFhCMwVCL+RlpqwekhCewXLsg6yvGSU6qLX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3071},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"build":"tsc && terser ./build/index.js -o ./dist/index.js -c -m && terser ./build/fetch.js -o ./dist/fetch.js -c -m","do-pack":"npm run build && npm pack","do-publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"},"repository":{"url":"git+https://github.com/alibaba-inc/fetch_worker.git","type":"git"},"_npmVersion":"8.19.4","description":"fetch_worker","directories":{},"_nodeVersion":"16.20.2","dependencies":{"terser":"^5.43.1","typescript":"^5.8.3","@types/node":"^24.0.3","@types/react":"^19.1.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fetch_worker_1.0.1_1752484500439_0.21620953747830818","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@alibaba_inc/fetch_worker","version":"1.0.7","keywords":["typescript","fetch_worker"],"author":{"name":"alibaba-inc"},"license":"MIT","_id":"@alibaba_inc/fetch_worker@1.0.7","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"dist":{"shasum":"4a0fd30a889a092e0d146b5c3e4afa1245caa266","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.0.7.tgz","fileCount":6,"integrity":"sha512-PDpMQ/9Mphn7OUCR/bztKZ+EPE0der9fy/lc2FK19XDKIoSkJp3H/FAHy8RWEPl8XHDGa1oaCyv//3mQDVHzSw==","signatures":[{"sig":"MEQCIHjg7IA3ZQNhlTBIAAINAXSSuKApZof3CVmbGWCsuZkXAiBk5HHiVvwuqkXl1P7236RZ/ANMp1SsVld5MhcS9M8kwg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3108},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"build":"tsc && terser ./build/index.js -o ./dist/index.js -c -m && terser ./build/fetch.js -o ./dist/fetch.js -c -m","do-pack":"npm run build && npm pack","do-publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"},"repository":{"url":"git+https://github.com/alibaba-inc/fetch_worker.git","type":"git"},"_npmVersion":"8.19.4","description":"fetch_worker","directories":{},"_nodeVersion":"16.20.2","dependencies":{"terser":"^5.43.1","typescript":"^5.8.3","@types/node":"^24.0.3","@types/react":"^19.1.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fetch_worker_1.0.7_1752552407670_0.09532720264222849","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@alibaba_inc/fetch_worker","version":"1.1.2","keywords":["typescript","fetch_worker"],"author":{"name":"alibaba-inc"},"license":"MIT","_id":"@alibaba_inc/fetch_worker@1.1.2","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"dist":{"shasum":"7bffc953b1a748c5006d3e12076d7b909fcd9a67","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.1.2.tgz","fileCount":6,"integrity":"sha512-8xQFLJ5WMiGK86UzqMAg4C4MfYBEnp62R9DXNWNkXgaqIBE/ZoURXpZuKmjqjtr3mderRzVpnOzxnmrAAKtbGw==","signatures":[{"sig":"MEQCIA5zqRMIEMY8iIBcrw/XEevR/441Q9F33FUTn4BD6twnAiA6YmjlFBvdOgNoZjYCEVv3xQ31cg7Czq3Q/ESCxsJltw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3116},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"build":"tsc && terser ./build/index.js -o ./dist/index.js -c -m && terser ./build/fetch.js -o ./dist/fetch.js -c -m","do-pack":"npm run build && npm pack","do-publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"},"repository":{"url":"git+https://github.com/alibaba-inc/fetch_worker.git","type":"git"},"_npmVersion":"8.19.4","description":"fetch_worker","directories":{},"_nodeVersion":"16.20.2","dependencies":{"terser":"^5.43.1","typescript":"^5.8.3","@types/node":"^24.0.3","@types/react":"^19.1.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fetch_worker_1.1.2_1769604842829_0.5612488013315844","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@alibaba_inc/fetch_worker","version":"1.1.3","keywords":["typescript","fetch_worker"],"author":{"name":"alibaba-inc"},"license":"MIT","_id":"@alibaba_inc/fetch_worker@1.1.3","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"dist":{"shasum":"293b90af6360b267d7d58b6189dcd854b676097e","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.1.3.tgz","fileCount":6,"integrity":"sha512-8DgAZY2+zhTffQeI9KGYBs1s/UfwdKNcTobft6LxGV5RmPppcjFomujIfWME+P1JVZ36FTEEuKGRHyYPaT2Iyw==","signatures":[{"sig":"MEUCIQDwgjlpHxNfSploEA7k5oquZExMZr1N63BTfsdoiEnb2QIgSAH5NDnQw9gSOhmtK6RqMlNCczp4gCu47RcFWldwfo8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3378},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"build":"tsc && terser ./build/index.js -o ./dist/index.js -c -m && terser ./build/fetch.js -o ./dist/fetch.js -c -m","do-pack":"npm run build && npm pack","do-publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"},"repository":{"url":"git+https://github.com/alibaba-inc/fetch_worker.git","type":"git"},"_npmVersion":"8.19.4","description":"fetch_worker","directories":{},"_nodeVersion":"16.20.2","dependencies":{"terser":"^5.43.1","typescript":"^5.8.3","@types/node":"^24.0.3","@types/react":"^19.1.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fetch_worker_1.1.3_1769607030885_0.7759116130831298","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@alibaba_inc/fetch_worker","version":"1.1.5","keywords":["typescript","fetch_worker"],"author":{"name":"alibaba-inc"},"license":"MIT","_id":"@alibaba_inc/fetch_worker@1.1.5","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"dist":{"shasum":"ee6793d23ccd783fb33caa6032e52d3ca82a44ff","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.1.5.tgz","fileCount":6,"integrity":"sha512-erWw2OIj3TlxGhimhVywywgTDLQ2oxTuvdv1eOPoRE1MVz9NPUKh4VCL1Nyp+FtSuT1X7PE8/cyK8kReGL/NaA==","signatures":[{"sig":"MEYCIQD1uIpOrOjkHLDbTYPUoIlAVbbkIWOrzUQiw3V6N8IrfgIhAI7jLxgFBE030TG9zMtOTjWttt3oodbDzPIaQcwbik9l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3145},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"build":"tsc && terser ./build/index.js -o ./dist/index.js -c -m && terser ./build/fetch.js -o ./dist/fetch.js -c -m","do-pack":"npm run build && npm pack","do-publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"},"repository":{"url":"git+https://github.com/alibaba-inc/fetch_worker.git","type":"git"},"_npmVersion":"8.19.4","description":"fetch_worker","directories":{},"_nodeVersion":"16.20.2","dependencies":{"terser":"^5.43.1","typescript":"^5.8.3","@types/node":"^24.0.3","@types/react":"^19.1.8"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fetch_worker_1.1.5_1769607544833_0.22353119836612345","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"@alibaba_inc/fetch_worker","version":"1.1.6","description":"fetch_worker","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc && terser ./build/index.js -o ./dist/index.js -c -m && terser ./build/fetch.js -o ./dist/fetch.js -c -m","do-publish":"npm run build && npm publish --access public","do-pack":"npm run build && npm pack"},"keywords":["typescript","fetch_worker"],"author":{"name":"alibaba-inc"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alibaba-inc/fetch_worker.git"},"dependencies":{"@types/node":"^24.0.3","@types/react":"^19.1.8","terser":"^5.43.1","typescript":"^5.8.3"},"bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"homepage":"https://github.com/alibaba-inc/fetch_worker#readme","_id":"@alibaba_inc/fetch_worker@1.1.6","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KrLL4nNpmSd5nD2woHMFgiMVvi6CO4AMCuykqkDhgho01BwX4U9Y4kkgNWmNTy4lZkV0as/Ie0bNwqM5SwjQMA==","shasum":"5cf61baac2b0d9ba2dc3c095d887672b7a003b13","tarball":"https://registry.npmjs.org/@alibaba_inc/fetch_worker/-/fetch_worker-1.1.6.tgz","fileCount":6,"unpackedSize":3124,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFykQoWokutdR5vRVbtgKnGu4WSX3zLOP5m+7Z4u1GfeAiEAvv/2lmIAIPEzSj7e0wfrY6A1pS0iuwwx/0H+BcC7ktQ="}]},"_npmUser":{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"},"directories":{},"maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_worker_1.1.6_1769611110821_0.8102253614320833"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-30T06:55:35.593Z","modified":"2026-01-28T14:38:31.069Z","1.0.0":"2025-06-30T06:55:35.878Z","1.0.1":"2025-07-14T09:15:00.641Z","1.0.5":"2025-07-15T03:47:20.418Z","1.0.6":"2025-07-15T04:03:00.946Z","1.0.7":"2025-07-15T04:06:47.868Z","1.1.2":"2026-01-28T12:54:02.975Z","1.1.3":"2026-01-28T13:30:31.035Z","1.1.5":"2026-01-28T13:39:04.978Z","1.1.6":"2026-01-28T14:38:30.964Z"},"bugs":{"url":"https://github.com/alibaba-inc/fetch_worker/issues"},"author":{"name":"alibaba-inc"},"license":"MIT","homepage":"https://github.com/alibaba-inc/fetch_worker#readme","keywords":["typescript","fetch_worker"],"repository":{"type":"git","url":"git+https://github.com/alibaba-inc/fetch_worker.git"},"description":"fetch_worker","maintainers":[{"name":"alibaba_inc","email":"yuxiao33344520@sina.com"}],"readme":"# fetchWorker\r\n\r\n## 安装\r\n\r\n```bash\r\nnpm install @alibaba_inc/fetch_worker\r\n```\r\n\r\n```typescript\r\nimport fetch_worker from \"@alibaba_inc/fetch_worker\";\r\n\r\nfetch_worker(\r\n\t{\r\n\t\turl: \"https://example.org/get?a=1&b=2\",\r\n\t\tsendParams: {\r\n\t\t\tmethod: \"GET\",\r\n\t\t},\r\n\t},\r\n\t(rs) => {\r\n\t\tconsole.log(rs);\r\n\t}\r\n);\r\n\r\nfetch_worker(\r\n\t{\r\n\t\turl: \"https://example.org/post\",\r\n\t\tsendParams: {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\tbody: JSON.stringify({ a: 1, b: 2 }),\r\n\t\t},\r\n\t},\r\n\t(rs) => {\r\n\t\tconsole.log(rs);\r\n\t}\r\n);\r\n\r\nfetch_worker(\r\n\t{\r\n\t\turl: \"https://example.org/post\",\r\n\t\tsendParams: {\r\n\t\t\theaders: {\r\n\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",\r\n\t\t\t},\r\n\t\t\tmethod: \"POST\",\r\n\t\t\tbody: \"A=1&B=2\",\r\n\t\t},\r\n\t},\r\n\t(rs) => {\r\n\t\tconsole.log(rs);\r\n\t}\r\n);\r\n```\r\n","readmeFilename":"README.md"}