{"_id":"@0xcipher0/x402-fetch","_rev":"10-720fad66fbaa1f45daeb02b12177707f","name":"@0xcipher0/x402-fetch","dist-tags":{"latest":"0.6.16"},"versions":{"0.6.6":{"name":"@0xcipher0/x402-fetch","version":"0.6.6","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.6","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"db9001a826798123cee6f3728bd07cfadc61f3e1","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.6.tgz","fileCount":8,"integrity":"sha512-N7p1W7lJcB5Brvm86lpDOD1x7WxXw3f+EEsZrpfaV6sJ+i0kqt4pIekz1UEkDkLq6zP2Pwoh8bDOdT9NeDS/og==","signatures":[{"sig":"MEQCIFUznLyB+U+rpjHxn9LvGPPcifoRymmSLMKEn55vRLUuAiBbguVrVrMf4InJTMy4jEiS6UywjPrQ20q/W7tRteMuDg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25777},"main":"./dist/cjs/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"gitHead":"7e2006232cfa621ab6189330627faa4d7bba419a","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","x402":"workspace:^"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.6_1761398575144_0.6024032298627349","host":"s3://npm-registry-packages-npm-production"}},"0.6.7":{"name":"@0xcipher0/x402-fetch","version":"0.6.7","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.7","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"a554c8ef65a3044c2f747547110a3e7c2aeb1c65","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.7.tgz","fileCount":8,"integrity":"sha512-iSKvxsyZLxy/xlaIfyqT0M7u/82Wx5tLtEgWYSJ9Vm+lEKwi3IrNrHzArz/ti2qxm73/5BUgLaCPvpsO2V/4Qw==","signatures":[{"sig":"MEUCIQCbbGrQV3tSra7yiCdSPr3bS0YM5Gk2tT4sXCa/tPKEiQIgAiSi02Fw16Aw2mVtv926WpyMVY9H8EOuBs9NAah+GwE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25777},"main":"./dist/cjs/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"gitHead":"7e2006232cfa621ab6189330627faa4d7bba419a","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","x402":"workspace:^"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.7_1761399037494_0.3735063778009504","host":"s3://npm-registry-packages-npm-production"}},"0.6.8":{"name":"@0xcipher0/x402-fetch","version":"0.6.8","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.8","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"4e021ea43006b76a4bc2ff7aba2d5bf8c5bc329d","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.8.tgz","fileCount":8,"integrity":"sha512-EGo2Ux02Ab2o0wkPNLrrWcdYNFwfpZrEcoh6oM4h/ZRrxCbYdsu8xUQhzHwgeM4nxFCJamIrcF7r3paUgzSx3A==","signatures":[{"sig":"MEUCIQCXUCRsucedgI91ojhtAZLtxZWzM8AQDkeFJ5LOzE8lbgIgahWlqtNsfRPmneCByL9IxyeWqOpgGS1WIPnQ9R7JIBM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25777},"main":"./dist/cjs/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"gitHead":"7e2006232cfa621ab6189330627faa4d7bba419a","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","x402":"workspace:^"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.8_1761399510840_0.5296042355059478","host":"s3://npm-registry-packages-npm-production"}},"0.6.10":{"name":"@0xcipher0/x402-fetch","version":"0.6.10","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.10","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"c980d8454ae5d48edf15d9694736a1ba068621c2","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.10.tgz","fileCount":8,"integrity":"sha512-Uex6lcs+IqMm4WZHEc+E4/YaTdxoLnG3r4hb2QC1FztccK/x4cszGriCBmEWdP14zJUFnUvnnHbNmGaN+4Ivxg==","signatures":[{"sig":"MEQCIGU/WfORW/8PTTU+3mOJ+BbMNBOXeeEPNW2/WpFYdcs+AiABv7wdpiRhyGuWcNGKCjUrYiG/P35stqPUhctVMw6R0A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25772},"main":"./dist/cjs/index.js","_from":"file:0xcipher0-x402-fetch-0.6.10.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/5a076efdfc810794be3e731eba168c47/0xcipher0-x402-fetch-0.6.10.tgz","_integrity":"sha512-Uex6lcs+IqMm4WZHEc+E4/YaTdxoLnG3r4hb2QC1FztccK/x4cszGriCBmEWdP14zJUFnUvnnHbNmGaN+4Ivxg==","repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","x402":"^0.6.6"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.10_1761400645036_0.27036682117341515","host":"s3://npm-registry-packages-npm-production"}},"0.6.11":{"name":"@0xcipher0/x402-fetch","version":"0.6.11","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.11","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"c63f5513213c398df22cda2ead7917dba5ac4485","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.11.tgz","fileCount":8,"integrity":"sha512-k7abM9wO3TIXAE7Cd6TS0OiIIJTKO+hrrL0gEJzm5pWhqcvmUFXKSyxvyHUwSKdY9ft9zi7F9ek89MozFe1k6Q==","signatures":[{"sig":"MEUCIQClcTp6QFAhONl7caq/rJ2qiYe+REAfy1Hd4kq3Cj6oGAIgI1HkD+sfUO43o94W8F4/QJyEYasRNR8ThA/VSIMbERk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26091},"main":"./dist/cjs/index.js","_from":"file:0xcipher0-x402-fetch-0.6.11.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/80f957faeb23417798155e8f46e42815/0xcipher0-x402-fetch-0.6.11.tgz","_integrity":"sha512-k7abM9wO3TIXAE7Cd6TS0OiIIJTKO+hrrL0gEJzm5pWhqcvmUFXKSyxvyHUwSKdY9ft9zi7F9ek89MozFe1k6Q==","repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@0xcipher0/x402":"^0.6.7"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.11_1761403397301_0.5971433084342608","host":"s3://npm-registry-packages-npm-production"}},"0.6.12":{"name":"@0xcipher0/x402-fetch","version":"0.6.12","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.12","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"329d69670b12984f8534f36cc79a9a0373fa4afa","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.12.tgz","fileCount":8,"integrity":"sha512-NUnlKEV8sp0BDQ6Flv30mRnJ76yt2mmaKeyzmufVcD02KNAxOH+DcA34YBJ64DleqI2joPo/ZJjB1FX/n2OhfQ==","signatures":[{"sig":"MEUCIQCslk9e8jXfja8017BUcZX8sGcy6XuemqiXWC7Vd4q7ZAIgF+GQ0IJwkpfNA5pY+tySEQb7+3jcRZb6ETcJqNGykAo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26091},"main":"./dist/cjs/index.js","_from":"file:0xcipher0-x402-fetch-0.6.12.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/a7b76016ebfdb38cd882c3dda6fc19a9/0xcipher0-x402-fetch-0.6.12.tgz","_integrity":"sha512-NUnlKEV8sp0BDQ6Flv30mRnJ76yt2mmaKeyzmufVcD02KNAxOH+DcA34YBJ64DleqI2joPo/ZJjB1FX/n2OhfQ==","repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@0xcipher0/x402":"^0.6.8"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.12_1761407012016_0.5721727468859459","host":"s3://npm-registry-packages-npm-production"}},"0.6.13":{"name":"@0xcipher0/x402-fetch","version":"0.6.13","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.13","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"729c6154eaa370fb2630d9501c253e4533ffc945","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.13.tgz","fileCount":8,"integrity":"sha512-CvLzbbdHJ2Hv1qTIWo2X3V9M3cQ7E+3FwVpjcUq2JtQSOpwMg0BB8Q5YxhXqyGf0uROfvJGvmjRXhnRZGtEpwg==","signatures":[{"sig":"MEUCIQDljyb+FN4VIyoWPyBgzIuwDGjT4F5J9iucpG8V0OeiAAIgDYm799PT2sXAHG+zqB5GxX7ATUmunaDl3KNNfl823JI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26091},"main":"./dist/cjs/index.js","_from":"file:0xcipher0-x402-fetch-0.6.13.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/44c0a3dfdc45dc66776a124714b9e68a/0xcipher0-x402-fetch-0.6.13.tgz","_integrity":"sha512-CvLzbbdHJ2Hv1qTIWo2X3V9M3cQ7E+3FwVpjcUq2JtQSOpwMg0BB8Q5YxhXqyGf0uROfvJGvmjRXhnRZGtEpwg==","repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@0xcipher0/x402":"^0.6.9"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.13_1761411893570_0.8849263539031011","host":"s3://npm-registry-packages-npm-production"}},"0.6.14":{"name":"@0xcipher0/x402-fetch","version":"0.6.14","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.14","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"4f21f1374409768b7ecd343ea66fdb6e4c55dff6","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.14.tgz","fileCount":8,"integrity":"sha512-95iUcA+oV8nHdhwDYyxY7FMcBletbDylJIW7yad/bCiG353gVhwC4zjDE6540XMxtAHEzCjCx7Nzh/78Ki6G9w==","signatures":[{"sig":"MEUCIDKosz6pv10UNVYXG5RUWwap2W3Bm/TutBTgl2v7zQPgAiEAoDM2djxCAiL5EUgoad9YcqP6BOMfYbGkLUk+ijXBybA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26092},"main":"./dist/cjs/index.js","_from":"file:0xcipher0-x402-fetch-0.6.14.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/7c0fac8d39129e4e8a76a0d1a3626620/0xcipher0-x402-fetch-0.6.14.tgz","_integrity":"sha512-95iUcA+oV8nHdhwDYyxY7FMcBletbDylJIW7yad/bCiG353gVhwC4zjDE6540XMxtAHEzCjCx7Nzh/78Ki6G9w==","repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@0xcipher0/x402":"^0.6.10"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.14_1761413043878_0.2793254756376038","host":"s3://npm-registry-packages-npm-production"}},"0.6.15":{"name":"@0xcipher0/x402-fetch","version":"0.6.15","keywords":[],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@0xcipher0/x402-fetch@0.6.15","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"dist":{"shasum":"25a37baee7f0d50e95a79ce1797b5d9be33ca450","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.15.tgz","fileCount":8,"integrity":"sha512-NYuzJ4FLPup7tuPULoGdz4mlq63knWJOZBAbg90gqvtYjS2E4WtvzJqLOZeLYcvJqBRh57Ev0AgIC4V8AYGWeg==","signatures":[{"sig":"MEUCIEMWn0XReDten3XpEkoCWMv1YP1QOqKZgnrdinhtWKTvAiEAxICNv+cIy+sq147ryW2fcUbS8NM1YIvmM3d5TEt8BWA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26092},"main":"./dist/cjs/index.js","_from":"file:0xcipher0-x402-fetch-0.6.15.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/ee61c1560a6660f9f3f8dea17b436600/0xcipher0-x402-fetch-0.6.15.tgz","_integrity":"sha512-NYuzJ4FLPup7tuPULoGdz4mlq63knWJOZBAbg90gqvtYjS2E4WtvzJqLOZeLYcvJqBRh57Ev0AgIC4V8AYGWeg==","repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Payment Protocol","directories":{},"_nodeVersion":"22.9.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@0xcipher0/x402":"^0.6.12"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/x402-fetch_0.6.15_1761416142235_0.6391952765337778","host":"s3://npm-registry-packages-npm-production"}},"0.6.16":{"name":"@0xcipher0/x402-fetch","version":"0.6.16","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/index.d.ts","keywords":[],"license":"Apache-2.0","author":{"name":"Coinbase Inc."},"repository":{"type":"git","url":"git+https://github.com/coinbase/x402.git"},"description":"x402 Payment Protocol","devDependencies":{"@types/node":"^22.13.4","@eslint/js":"^9.24.0","eslint":"^9.24.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","eslint-plugin-import":"^2.31.0","prettier":"3.5.2","tsup":"^8.4.0","tsx":"^4.19.2","typescript":"^5.7.3","vite-tsconfig-paths":"^5.1.4","vitest":"^3.0.5","vite":"^6.2.6"},"dependencies":{"viem":"^2.21.26","zod":"^3.24.2","@0xcipher0/x402":"^0.6.14"},"exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"start":"tsx --env-file=.env index.ts","test":"vitest run","test:watch":"vitest","build":"tsup","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\"","lint":"eslint . --ext .ts --fix","lint:check":"eslint . --ext .ts"},"_id":"@0xcipher0/x402-fetch@0.6.16","bugs":{"url":"https://github.com/coinbase/x402/issues"},"homepage":"https://github.com/coinbase/x402#readme","_integrity":"sha512-R4YREvdOZAIm+MSX4M3kkAZRfauu/iME9uV5PKnHJwVXgKyTXaPOT5Y6dAsvtKhgaqHX/4eEyosbgm9CgCSI2g==","_resolved":"/private/var/folders/cd/k3m232p55xjcwcbvxjf7sfrr0000gn/T/db89e5d98bcf994671f84ddfb2f413d0/0xcipher0-x402-fetch-0.6.16.tgz","_from":"file:0xcipher0-x402-fetch-0.6.16.tgz","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-R4YREvdOZAIm+MSX4M3kkAZRfauu/iME9uV5PKnHJwVXgKyTXaPOT5Y6dAsvtKhgaqHX/4eEyosbgm9CgCSI2g==","shasum":"df7abe01c86acea241c4dce51d58d08bf7820003","tarball":"https://registry.npmjs.org/@0xcipher0/x402-fetch/-/x402-fetch-0.6.16.tgz","fileCount":8,"unpackedSize":26092,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCh1M+R/BpGhMEInZZsWCEwbwvxYfwqHIAQ2vpvhjT07QIhAJGOEMxaG+kbRw0dNsxDjz1GWYBBemAC2CS2o6byN2ux"}]},"_npmUser":{"name":"0xcipher0","email":"cipher0.dev@outlook.com"},"directories":{},"maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402-fetch_0.6.16_1761462902702_0.9297581478482686"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-25T13:22:55.047Z","modified":"2025-10-26T07:15:03.109Z","0.6.6":"2025-10-25T13:22:55.341Z","0.6.7":"2025-10-25T13:30:37.750Z","0.6.8":"2025-10-25T13:38:31.056Z","0.6.10":"2025-10-25T13:57:25.229Z","0.6.11":"2025-10-25T14:43:17.490Z","0.6.12":"2025-10-25T15:43:32.328Z","0.6.13":"2025-10-25T17:04:53.820Z","0.6.14":"2025-10-25T17:24:04.068Z","0.6.15":"2025-10-25T18:15:42.439Z","0.6.16":"2025-10-26T07:15:02.903Z"},"bugs":{"url":"https://github.com/coinbase/x402/issues"},"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","homepage":"https://github.com/coinbase/x402#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/coinbase/x402.git"},"description":"x402 Payment Protocol","maintainers":[{"name":"0xcipher0","email":"cipher0.dev@outlook.com"}],"readme":"# x402-fetch\n\nA utility package that extends the native `fetch` API to automatically handle 402 Payment Required responses using the x402 payment protocol. This package enables seamless integration of payment functionality into your applications when making HTTP requests.\n\n## Installation\n\n```bash\nnpm install x402-fetch\n```\n\n## Quick Start\n\n```typescript\nimport { createWalletClient, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { wrapFetchWithPayment } from \"x402-fetch\";\nimport { baseSepolia } from \"viem/chains\";\n\n// Create a wallet client\nconst account = privateKeyToAccount(\"0xYourPrivateKey\");\nconst client = createWalletClient({\n  account,\n  transport: http(),\n  chain: baseSepolia,\n});\n\n// Wrap the fetch function with payment handling\nconst fetchWithPay = wrapFetchWithPayment(fetch, client);\n\n// Make a request that may require payment\nconst response = await fetchWithPay(\"https://api.example.com/paid-endpoint\", {\n  method: \"GET\",\n});\n\nconst data = await response.json();\n```\n\n## API\n\n### `wrapFetchWithPayment(fetch, walletClient, maxValue?, paymentRequirementsSelector?)`\n\nWraps the native fetch API to handle 402 Payment Required responses automatically.\n\n#### Parameters\n\n- `fetch`: The fetch function to wrap (typically `globalThis.fetch`)\n- `walletClient`: The wallet client used to sign payment messages (must implement the x402 wallet interface)\n- `maxValue`: Optional maximum allowed payment amount in base units (defaults to 0.1 USDC)\n- `paymentRequirementsSelector`: Optional function to select payment requirements from the response (defaults to `selectPaymentRequirements`)\n\n#### Returns\n\nA wrapped fetch function that automatically handles 402 responses by:\n1. Making the initial request\n2. If a 402 response is received, parsing the payment requirements\n3. Verifying the payment amount is within the allowed maximum\n4. Creating a payment header using the provided wallet client\n5. Retrying the request with the payment header\n\n## Example\n\n```typescript\nimport { config } from \"dotenv\";\nimport { createWalletClient, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { wrapFetchWithPayment } from \"x402-fetch\";\nimport { baseSepolia } from \"viem/chains\";\n\nconfig();\n\nconst { PRIVATE_KEY, API_URL } = process.env;\n\nconst account = privateKeyToAccount(PRIVATE_KEY as `0x${string}`);\nconst client = createWalletClient({\n  account,\n  transport: http(),\n  chain: baseSepolia,\n});\n\nconst fetchWithPay = wrapFetchWithPayment(fetch, client);\n\n// Make a request to a paid API endpoint\nfetchWithPay(API_URL, {\n  method: \"GET\",\n})\n  .then(async response => {\n    const data = await response.json();\n    console.log(data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n```\n\n","readmeFilename":"README.md"}