{"_id":"@ct0/zod-fetch","_rev":"19-85b0fb3435a46d57923e00e28c8e4b04","name":"@ct0/zod-fetch","dist-tags":{"latest":"0.6.1"},"versions":{"0.0.1":{"name":"@ct0/zod-fetch","version":"0.0.1","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.0.1","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"b1214cb8128cadcb407f3d1282aad44ad704f49e","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.0.1.tgz","fileCount":7,"integrity":"sha512-F6z8pr9diPmlI0+ntZU5rmQwIzkWeJtQ+2tCYE9Y9u82FebRVy51VSQ7CU7SsUpYvyC7iiXcsXdQS+Ru/729Rw==","signatures":[{"sig":"MEQCIBWlpJtKOTy7+NS44hGhB1z0vjow4BAtOaFDimLD9L3fAiBMjvQzyyn+XfY17X0fajzOS9neYHF7LPf3PEn0DvfvcQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20842},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"649709d54cc8649afd3b70c4c09cc68ae69c8c2e","scripts":{"test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","publish":"npm publish --access=public --registry=https://registry.npmjs.org","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.3.3","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":"^3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.0.1_1709434353856_0.24626282448651282","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@ct0/zod-fetch","version":"0.0.2","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.0.2","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"f62b05d489494079821bddca1a9dfc812fdba931","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.0.2.tgz","fileCount":7,"integrity":"sha512-hTm0lkJeaSlPiPmGEKel53LkjIqeHV6B65ZC3sHC5WgBxjOoOYUTuPznRu26CtSKghM6GJ35QC2MwEm0QJ/rAw==","signatures":[{"sig":"MEUCIQCHbsUqLrjMLcZ+Lhy8QyvznMr90a896D3RyL7Te2SnhgIgHMUBnmR9cesv+w5QrwewDh3PlGDIFbwVDm5arrjz4Y4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23690},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"86892824818df995d8b2ecba0d24e53ec8c2fba0","scripts":{"test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","publish":"npm publish --access=public --registry=https://registry.npmjs.org","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.0.2_1709526578295_0.8853075626288192","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@ct0/zod-fetch","version":"0.0.3","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.0.3","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"2c74c6bc71b3806e3782887aab11df7cfde813c4","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.0.3.tgz","fileCount":7,"integrity":"sha512-+oS64Z6KgCnzlMs4UDoTWvjnc3msFQdczJPtAtrIagQx2EPLsIWCvOCc4iax4fJkh6J1r0GIHJTugDpclg8q6g==","signatures":[{"sig":"MEYCIQD9gFpMDm3qrSaHvmfovZMRFuMeRLvD6nUAiT9Gc1Y/TwIhAM+0oGw8GF79VhgT46TjlD3epI3ZsczT1rKp1ZYxA4qR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24091},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"638e1d0caaedb57f126c8a6ad0a1494d36426d88","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.0.3_1709532136157_0.07339027151228605","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@ct0/zod-fetch","version":"0.0.4","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.0.4","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"a3375eb4fa6efb9cdeb5e20ad73f2af2c07e162b","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.0.4.tgz","fileCount":7,"integrity":"sha512-Ew05+h0ti86rhjcQpHD2sM2Xer3exOHeAhdDSxV9XieG2zuDQlYNlhs2ACZKaXH+C8mw1HL4ti3wavBKTczxug==","signatures":[{"sig":"MEUCIDhizx/p8biq9DXFU1VR2smAyXUFb5+Mse6Kv3deQ2OMAiEA22paQDL/gLnXBIZgeAKuMIest+KKJlWgq3ChlODkxjk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25018},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"357e3bb004efa9f842b718325dadd80982ca18be","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.0.4_1709617172660_0.7553554542184246","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@ct0/zod-fetch","version":"0.0.5","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.0.5","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"806534041bf0dc64b5ffa027bfa7f4581c80c166","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.0.5.tgz","fileCount":7,"integrity":"sha512-ScrYVcVNM/Gq4nRJiLBWLLhV6fsvSyjRJqa6j5J3ybSx0vYnr8RptwRxI3rZXnA0DsrZnsnO1ywwQwKXMoM4aA==","signatures":[{"sig":"MEQCIDqxnKFexvaua2WADfXul0b8OPZW3qxRDvus1Ih3voRdAiAKOA0yeEqCIovsCfzheoqsGOeOMPlPC1/VVFWGrEGHhw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24989},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"357e3bb004efa9f842b718325dadd80982ca18be","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.0.5_1709617803250_0.720634645299975","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@ct0/zod-fetch","version":"0.1.0","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.1.0","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"58e07b0f84734ab1b8c265fe14ef637ac7fabc0f","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.1.0.tgz","fileCount":7,"integrity":"sha512-gYi61hd2Bi4YLBe6Q650EXWwCytYp2mSq88mVdp2rZ/VVs3reIGhBRc3WyS+eatjRr+xY7XfZz8DeoahJ50Jww==","signatures":[{"sig":"MEUCIQDFuzeg6TXrbrqtMhX1KAAoqGoggua1Z3eWlqZ+PtHBwgIgYmTpZLEv8NyrpRle5lnb/DyIlQlIT5YkZuxXZFlPqds=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24672},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"3e7d14671153ab7745e00a376745912d18438961","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.1.0_1709964600933_0.14359020546938228","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@ct0/zod-fetch","version":"0.2.0","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.2.0","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"d4504028aa0c07d8782cbf5f2ebb2f20245dccd5","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.2.0.tgz","fileCount":7,"integrity":"sha512-yjJDONyKrMYcV14jkbyP3j1pJ7kCiF4Cws536oD8nIfeWE0vMTWJ3TuTTP54ZIBRBtVJeIH8SGgI5aU/QDHJ0A==","signatures":[{"sig":"MEUCIBBn86Ea+O2CrH122Un5Ff+qSuiJhW2nIQZ5ojLzyJLNAiEA+fUqnQ0jImI54NwVIxy6lFqF5Jzc0UShcOHRS3MSij4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26270},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"7248d3e465cc646efa725bd94b668a105675d665","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.2.0_1710414750010_0.5479368236914994","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@ct0/zod-fetch","version":"0.2.1","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.2.1","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"5c87926fc333f51f08394e79cce0ef725582fc70","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.2.1.tgz","fileCount":7,"integrity":"sha512-7CCxPp1JMh28qSUgNxigfU7HQbInoWp4ZS601hI9V4jb9HjebI7phMZc7jF8LZh0M0bpmtnEi56fgDvC6AkkPA==","signatures":[{"sig":"MEQCICG//8hF+AovPvXSxs0o+wZF+HFgzY5RLwP6VXpSoLD4AiA14WzHii/2OefEmyZ691nz+vZtns7zjj+/srwKraFLqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27000},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"f1892fe9c8f0177bbfd7bdc4e0cdf4ccda2d8fa5","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.2.4","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"21.6.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.2.1_1716799036800_0.916921864085037","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@ct0/zod-fetch","version":"0.3.0","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.3.0","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"bc1cb5fe2620fd756cbca61ffce698d8716d64d0","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.3.0.tgz","fileCount":7,"integrity":"sha512-bVQElWNCmi5f/INa7eRsudCu0Kffb+SeevjZ7huNIHe9Y3PGgYzeWxlC1IcE9hpy5CuLJmZbR4qSpOiqLgCGjw==","signatures":[{"sig":"MEQCIBQTNmNkofj6ioI95Z9XcAiNn3U87yoIujUbPOScUPbDAiAt1ZI33O0eJf5l2oO7/pcD/o9vkPN8qD3Fr6V3NWQI8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28042},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"f1892fe9c8f0177bbfd7bdc4e0cdf4ccda2d8fa5","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.7.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.3.0_1718003067660_0.17345455630972584","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"@ct0/zod-fetch","version":"0.3.1","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.3.1","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"52be2de2ad220673906832c94e72718775602e6b","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.3.1.tgz","fileCount":7,"integrity":"sha512-PrXENPSr6sS0DmzxGOn27wkS7w3N8jVarXXnzNP/CF6NNOpn+Cx7LruCEUheCxH9vGaL7pqgNUKxbTIDP0Iv1g==","signatures":[{"sig":"MEQCIEzEefT+xUJMecc5cK3vFgMSSUuKpHeU05LxgbY4ophjAiAWs8c58pXVEwlJNweUc7pZHb6dU+JFzHfliQkv26YHCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28042},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"6656d1b9f42b6c02576093c5a59a83c0bd3cd8f6","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.7.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.3.1_1718004923676_0.3212378257540196","host":"s3://npm-registry-packages"}},"0.3.2":{"name":"@ct0/zod-fetch","version":"0.3.2","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.3.2","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"78913d748eccf03cf2ba8230e80aa263631ecfec","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.3.2.tgz","fileCount":7,"integrity":"sha512-RWNaFxn9Hu0p/g/yPcfVld7tfJLApAuf4FTYH6fZW+u3cuPlP8DUGo2oEJjbi4/ztDsOA3CkXclNtZOPA/w9vw==","signatures":[{"sig":"MEUCIQD0FPDM2E0xUWx/rgtC0wLH3NtuwJuiO8208oehs+JiUwIgZNF98dPyCg/yBwcUNXhMeQbYZeuokfkKoeoQ1iwLjWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28053},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"6656d1b9f42b6c02576093c5a59a83c0bd3cd8f6","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.7.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.3.2_1718005380541_0.46077411589633677","host":"s3://npm-registry-packages"}},"0.3.3":{"name":"@ct0/zod-fetch","version":"0.3.3","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.3.3","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"2f5473ef3e64fd3374c43fa4b1fc1bba40d06b60","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.3.3.tgz","fileCount":7,"integrity":"sha512-TRO9TDe2GYn2N2QOOpPwtpi6KHLDkDwVQTafq8G5JyNfBn8v7ndELDz+Rlz8dyz7Min5yUz/988L9WfRZEgvtw==","signatures":[{"sig":"MEQCIDc+ukEy4//wQs9iGN2gwHCZ7NdWaSoHPmitlVD4E72ZAiAm4E1lqjCmoW7ECAgQJbJ3IRS4ZnL5+p+WmkThA/8liQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28213},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"3cdf386af38f716c6a223232f2193bca2d218bb4","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.7.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.6.2","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.3.3_1718008429318_0.7197323033556624","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@ct0/zod-fetch","version":"0.4.0","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.4.0","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"48fefa036a3199171c54bdf3d677d7a1ad1b1665","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.4.0.tgz","fileCount":7,"integrity":"sha512-TEi3zL9+gFhdx1gm2hMmAiNOvyNZUMamCpVSV3BY62LNYWT/BCW9U9XxnA3DS+nkS2mlnRS3GJbrTP/bXfjT/g==","signatures":[{"sig":"MEUCIQD2YkMxZUc9eZ8Ndzuopa1K0ZvtceIuiNuNe9nXAMVAuQIgG7McBZ2WDHAPiZ6JM9l0H9RtPnNTkgXb7sCB2etV/OY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29806},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"83d5546b17fbe388b52cce133806559da59e5d51","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.7.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tslib":"2.6.3","ts-jest":"^29.1.2","prettier":"3.3.2","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.4.0_1720533820216_0.7379561797749989","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"@ct0/zod-fetch","version":"0.4.1","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.4.1","maintainers":[{"name":"~luyao","email":"15202496595@163.com"},{"name":"tangdaguang","email":"daguang.tang@chaitin.com"},{"name":"delong","email":"w.del@qq.com"}],"dist":{"shasum":"463f891ececeea9ace18c2fa71dc7d95269eda3f","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.4.1.tgz","fileCount":7,"integrity":"sha512-utAePL4lOejeKEM9MLtTL2OXxx13k+Ow0HZcF7V6auDVbrYieNVjbsearlTyosJ/OwlmqOl2KN+wVNQitYTWkA==","signatures":[{"sig":"MEYCIQDx0iEThENE/BJ7BgVEfdZXKtiFVMxMggDBpSo8OSpD0wIhAI8Qe/q+HeybGFJFqnGCZLNf7JaffHPrDpu9oHEUWXTN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30475},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"8ae4cefad83d30debd2f4dc1737145344edad6a0","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.7.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tslib":"2.6.3","ts-jest":"^29.1.2","prettier":"3.3.2","typescript":">= 5","@types/jest":"^29.5.12","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.4.1_1720536268630_0.7478774780145443","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@ct0/zod-fetch","version":"0.5.0","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.5.0","maintainers":[{"name":"delong","email":"w.del@qq.com"},{"name":"tangdaguang","email":"daguang.tang@aliyun.com"}],"dist":{"shasum":"e100f4a1bc589b759945847b6020b7605b894f52","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.5.0.tgz","fileCount":7,"integrity":"sha512-dRgbsziZNV1ghi8nIJzVFfh8ZKwgRfCYyzLOi3nksNEeLAiFl5UwxfSrsYk7A7/AfyJjUWZ5zL5kkXAdcoLixA==","signatures":[{"sig":"MEUCIQCgSE7DYeG5psvttaCcEGOoxXV2eAyCtYJn6yQWC3uZHgIgbayHqElBITM5adu9I3/wjlb3EGbiMUt5r06GllKpVKw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30320},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"67ccd7d5b917a5b555b6a1aa01d074e7a2b377d8","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.9.2","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"23.6.1","dependencies":{"zod":"3.24.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tslib":"2.8.1","ts-jest":"29.2.5","prettier":"3.5.0","typescript":"5.7.3","@types/jest":"29.5.14","rollup-plugin-dts":"6.1.1","@rollup/plugin-terser":"0.4.4","@rollup/plugin-typescript":"12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.5.0_1739354831338_0.28118934478048985","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@ct0/zod-fetch","version":"0.6.0","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.6.0","maintainers":[{"name":"delong","email":"w.del@qq.com"},{"name":"tangdaguang","email":"daguang.tang@aliyun.com"}],"dist":{"shasum":"3a5de2557de3f22c98cd6c9757118f6a9650369b","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.6.0.tgz","fileCount":7,"integrity":"sha512-T9al9SrY5TdgC+SNWL7tATEdmwupu9lEIsw0Nsp4HsRwd6pIcMyr/i2qgB4a2R5aGMxb13oN1ksQHQrHGIHFmg==","signatures":[{"sig":"MEQCIHa2ud0T2yDk2lIhenIV1p9TBgaWEZyEPgl5t07+TA9CAiBg9zOV/LDYOrmawnudlp6OP3GSDybCMHD3FIO4dtvK6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30075},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"9172c34d525f23b152ab001d39ef62afc9e60756","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"9.2.0","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"18.19.1","dependencies":{"zod":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tslib":"2.8.1","ts-jest":"29.2.5","prettier":"3.5.0","typescript":"5.7.3","@types/jest":"29.5.14","rollup-plugin-dts":"6.1.1","@rollup/plugin-terser":"0.4.4","@rollup/plugin-typescript":"12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.6.0_1752722071970_0.6508531364173658","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@ct0/zod-fetch","version":"0.6.1","author":"","license":"MIT","_id":"@ct0/zod-fetch@0.6.1","maintainers":[{"name":"delong","email":"w.del@qq.com"},{"name":"tangdaguang","email":"daguang.tang@aliyun.com"}],"dist":{"shasum":"c934f563f17a2a6b5121b8929ee92fd3a8fbf4a2","tarball":"https://registry.npmjs.org/@ct0/zod-fetch/-/zod-fetch-0.6.1.tgz","fileCount":7,"integrity":"sha512-IVxBTeq0nTtup8SABkp1dphonHSitiit/NjnTtbmyj+/G6JFrfu1J5tChE4NIewCOjPlcISbnyJyChGsXcptyg==","signatures":[{"sig":"MEUCICpuas9K9aSkow568vYgSIb05/7j6ik7qCNwY/vs9ER1AiEAzV+yAZ0C/5mJBuJZ4nM51E/nWIOXG+60cNEy0SBXWh4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30086},"main":"dist/cjs/index.js","types":"types/index.d.ts","module":"dist/es/index.js","gitHead":"2dd8d5dfa5b0b913c8d963791c870df4d0006f89","scripts":{"pub":"npm publish --access=public --registry=https://registry.npmjs.org","test":"jest --coverage","build":"node scripts/build.js; rollup -c scripts/declare.config.mjs","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx}\"","version":"node scripts/version.js"},"_npmUser":{"name":"delong","email":"w.del@qq.com"},"repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"_npmVersion":"10.9.2","description":"Typed api request based on `Fetch` and `zod`","directories":{},"_nodeVersion":"23.9.0","dependencies":{"zod":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tslib":"2.8.1","ts-jest":"29.4.2","prettier":"3.6.2","typescript":"5.9.2","@types/jest":"29.5.14","rollup-plugin-dts":"6.1.1","@rollup/plugin-terser":"0.4.4","@rollup/plugin-typescript":"12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/zod-fetch_0.6.1_1758033052618_0.2563072444463885","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-03-03T02:52:33.781Z","modified":"2026-04-08T11:52:15.788Z","0.0.1":"2024-03-03T02:52:34.008Z","0.0.2":"2024-03-04T04:29:38.450Z","0.0.3":"2024-03-04T06:02:16.337Z","0.0.4":"2024-03-05T05:39:32.836Z","0.0.5":"2024-03-05T05:50:03.429Z","0.1.0":"2024-03-09T06:10:01.113Z","0.2.0":"2024-03-14T11:12:30.149Z","0.2.1":"2024-05-27T08:37:16.937Z","0.3.0":"2024-06-10T07:04:27.861Z","0.3.1":"2024-06-10T07:35:23.826Z","0.3.2":"2024-06-10T07:43:00.706Z","0.3.3":"2024-06-10T08:33:49.479Z","0.4.0":"2024-07-09T14:03:40.377Z","0.4.1":"2024-07-09T14:44:28.835Z","0.5.0":"2025-02-12T10:07:11.497Z","0.6.0":"2025-07-17T03:14:32.152Z","0.6.1":"2025-09-16T14:30:52.783Z"},"license":"MIT","repository":{"url":"git+https://gitee.com/ct0/zod-fetch","type":"git"},"description":"Typed api request based on `Fetch` and `zod`","maintainers":[{"email":"w.del@qq.com","name":"delong"},{"email":"daguang.tang@aliyun.com","name":"tangdaguang"},{"email":"lin-xii@qq.com","name":"lin.xii"}],"readme":"# @ct0/zod-fetch\n\n通过 API 调用得到的数据往往缺少 ts 类型，解决方法一般是有两种\n\n1. 人工编写 types 声明文件\n2. 工具生成接口对应的描述文件\n\n这样处理以后，得到的是**静态类型标记**。可能存在的问题\n\n1. 标记类型与实际类型不符\n2. 因为生成工具的问题，导致生成的标记类型异常\n\n从以上问题出发，提出了一种方法，使用兼容 ts 类型的运行时类型校验，来编写接口校验方法，省略了接口类型静态声明，还能保证运行时的类型正确。\n\n底层依赖 2 个功能\n\n- [zod](https://zod.dev/): 运行时类型校验库\n- [fetch](https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API/Using_Fetch)： 内置 ajax 请求方法\n\n### Installation\n\n```sh\nnpm i @ct0/zod-fetch\n```\n\n### Usage\n\n```ts\n// 引用创建方法\nimport { create } from \"@ct0/zod-fetch\";\n// 使用前必须新建实例\nconst api = create();\n// 一个项目中不同的请求配置可以创建不同的实例，使用不同的插件\n```\n\n### Example\n\n例子：获取用户信息\n\n```ts\nimport { create } from \"@ct0/zod-fetch\";\nimport z from \"zod\";\n\napi = create(\"/api\");\n\nfunction getUser() {\n  const schema = z.object({ id: z.number(), name: z.string() });\n  return api.Get(schema)(\"/user/info\");\n}\n```\n\n添加插件\n\n```ts\nimport { create } from \"@ct0/zod-fetch\";\n\n// 创建实例后，\nconst { use, Get, Post, Put, Delete } = create(\"/api\", [\n  {\n    name: \"plugin name\",\n    request: (init) => {\n      // 这里可以修改用于发送请求的配置\n      // 配置参数 https://developer.mozilla.org/zh-CN/docs/Web/API/fetch#init\n      return init;\n    },\n    response: (data) => {\n      /* \n        这里处理返回的数据，注意：每个插件的输入来自上一个插件的输出，\n        第一个插件的输入是 http 的 Response\n        */\n      return data;\n    },\n  },\n]);\n\n// 还可以添加新插件\n// 下面插件，标记发送请求的内容都是 json\nuse({\n  name: \"new plugin\",\n  request: (init) => {\n    init.headers = { \"Content-Type\": \"application/json\", ...init.headers };\n    return init;\n  },\n});\n```\n\n更多例子，查看 example 目录\n\n### 开发\n\n```sh\n# 发布\nnpm publish --access=public --registry=https://registry.npmjs.org\n```\n\n### TODO\n\n- [ ] source code\n  - [x] index\n  - [x] core\n  - [x] utils\n  - [x] plugins\n    - [x] json\n- [ ] docoument\n- [x] test\n- [ ] refine zod errors\n","readmeFilename":"README.md"}