{"_id":"@sapiom/fetch","_rev":"15-e62dd0827e2aaee276b6b6fdd854675d","name":"@sapiom/fetch","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@sapiom/fetch","version":"0.1.0","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.1.0","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"}],"homepage":"https://github.com/sapiom/sapiom-javascript/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-javascript/issues"},"dist":{"shasum":"0903b855c813b671bbcd5ac238ede0b083bdbd1d","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.1.0.tgz","fileCount":30,"integrity":"sha512-2Em+GL1Z1kt3FciHJp5SEakrlrmtg4HYN8CBM+eIuGmdyhZ1u77rQhXZZ7/Oty0RC0+QkKIsyTmS+KcQBonZ+g==","signatures":[{"sig":"MEUCIQDfamaQuGmoQFmt2V19nM1qd0SQRiHSce+eYDaA3OnuSAIgGywaHlB/6iL0teluhZwen6sSW4bHcPjLA2wDKtIMy+Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":129563},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.1.0.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.build.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/private/var/folders/2l/xbt6jq_x4qj_3hv5719lvhf80000gn/T/a90424ea829905f0283cbd58751eb937/sapiom-fetch-0.1.0.tgz","_integrity":"sha512-2Em+GL1Z1kt3FciHJp5SEakrlrmtg4HYN8CBM+eIuGmdyhZ1u77rQhXZZ7/Oty0RC0+QkKIsyTmS+KcQBonZ+g==","repository":{"url":"git+https://github.com/sapiom/sapiom-javascript.git","type":"git","directory":"packages/fetch"},"_npmVersion":"11.6.0","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"24.8.0","dependencies":{"@sapiom/core":"^0.1.0"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.1.0_1762979219188_0.7265984645827308","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@sapiom/fetch","version":"0.1.1","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.1.1","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"8ede324b3ba23d5141fd6b0ba46c9f7f8a0eb10c","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.1.1.tgz","fileCount":50,"integrity":"sha512-2QYaG7K3G9KYf5ye3UeJs3ioN/+jDCI/Ns74sHackQhWB8gBnFL/J+YyMLDWktu/JxSTJTsb4npsE/X+c5PHZQ==","signatures":[{"sig":"MEUCIF5Y1X69tCI/m+d+WvN1MbOwkEgKTa/1eU7Kk24hlR52AiEAkYmUAYrp9cEPGqlXc2K3TVwh/h/mG6jK/RaBg75p0+A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":219289},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.1.1.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/private/var/folders/2l/xbt6jq_x4qj_3hv5719lvhf80000gn/T/b051759d10c267a6a27f6c316191ce24/sapiom-fetch-0.1.1.tgz","_integrity":"sha512-2QYaG7K3G9KYf5ye3UeJs3ioN/+jDCI/Ns74sHackQhWB8gBnFL/J+YyMLDWktu/JxSTJTsb4npsE/X+c5PHZQ==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"11.6.0","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"24.8.0","dependencies":{"@sapiom/core":"0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.1.1_1764718046933_0.13492345718482368","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@sapiom/fetch","version":"0.1.2","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.1.2","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"9b6dce7c71052c249c8d2ad16ee5e6fa1edadf45","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.1.2.tgz","fileCount":30,"integrity":"sha512-7jsXBwE4TbVGne+nVX9aHe1ItAnmbtgbNXqFaLyuIJmuw8EXWWBaJqTIafvEqZlfpFf/4t0arRjrJLenk+nNOw==","signatures":[{"sig":"MEQCIHcRy1ipocsV5G6K5prElauaiHHUoOKuFQcHfJC0yZ3+AiApnXq9QMLNPu7JOU3by8riDIFAeNS0yBuR8hS5Ynm5QQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":158190},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.1.2.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/2717cf903bac1834490967b3a4cb9562/sapiom-fetch-0.1.2.tgz","_integrity":"sha512-7jsXBwE4TbVGne+nVX9aHe1ItAnmbtgbNXqFaLyuIJmuw8EXWWBaJqTIafvEqZlfpFf/4t0arRjrJLenk+nNOw==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.1.2_1765571596073_0.13573009288680593","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@sapiom/fetch","version":"0.2.0","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.2.0","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"8a2105123a664bc265f89936de16d7ab9d557e8e","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.2.0.tgz","fileCount":30,"integrity":"sha512-P56IQfDOyUnIKmt9H/tVTryRTI7mF3wujoZfok0ftv9jp2JhgXdhbwDT3IedqpYX4jn71VJcASVBC04NRRCTSA==","signatures":[{"sig":"MEUCIH2DVa0aM1BCTXvfR7FKFJP7f2sSsWTwIXnAkuc0doFAAiEA9Uflp6VeaN2VL9xwfq2n4FU+JZPodptpkL+MlmKuCp8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160055},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.2.0.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/855b1db4af4195fce032dfdd0e5f329f/sapiom-fetch-0.2.0.tgz","_integrity":"sha512-P56IQfDOyUnIKmt9H/tVTryRTI7mF3wujoZfok0ftv9jp2JhgXdhbwDT3IedqpYX4jn71VJcASVBC04NRRCTSA==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.2.0_1768595635874_0.08132168037973075","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@sapiom/fetch","version":"0.2.1","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.2.1","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"e07027da2774e007d15fce15715818e1fb5c4fd3","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.2.1.tgz","fileCount":30,"integrity":"sha512-u+8GtqL7BZC6jDuJNQWjxb8zNPOiZN7rVl2fih5NrVGCFuQO+L+Dm+SYZHmWrLqsmdrDcTSKAxYCL0vKQRVXog==","signatures":[{"sig":"MEUCIQCsY+XlrPgm1SSIAnuiga6w+mDRYAzp134mbJRTdAPRaAIgHaDdYKrfSOizUeSXjytUjnhzavw6Rkuoh2KD4zI2odI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160439},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.2.1.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/1a5b15184440f29592b29ca625d6adac/sapiom-fetch-0.2.1.tgz","_integrity":"sha512-u+8GtqL7BZC6jDuJNQWjxb8zNPOiZN7rVl2fih5NrVGCFuQO+L+Dm+SYZHmWrLqsmdrDcTSKAxYCL0vKQRVXog==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.2.1_1768853725888_0.14782964206598215","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@sapiom/fetch","version":"0.2.2","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.2.2","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"0f872342a7069c6855ac1e84ced25e375bf14a0c","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.2.2.tgz","fileCount":31,"integrity":"sha512-ChTriCgehgDer2uBra+toSa/+WbTt0nJC0w1iK3nppaRVNnokvFGxtTvLF9s1Io1CYOMWyLrP6mTyUsD+o0muw==","signatures":[{"sig":"MEUCIQCQxYR9QWJq96LaE8R01Tmzw2c2CQ4Lik1DvYXg2Sxf0gIgLyMC5XVhQpT5unnf08BEg11ZsA4tPbaI8RPHtefCVpA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":161713},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.2.2.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm && npm run build:esm-pkg","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","build:esm-pkg":"echo '{\"type\": \"module\"}' > dist/esm/package.json","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/b65aba2f70dc4925388dac6f5d12c0a7/sapiom-fetch-0.2.2.tgz","_integrity":"sha512-ChTriCgehgDer2uBra+toSa/+WbTt0nJC0w1iK3nppaRVNnokvFGxtTvLF9s1Io1CYOMWyLrP6mTyUsD+o0muw==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.2.2_1769531933303_0.4222747361799666","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@sapiom/fetch","version":"0.3.0","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.3.0","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"9595d1934fb9b1f9adf66d4bcf8f181c0d6fc46b","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.3.0.tgz","fileCount":31,"integrity":"sha512-3OfjoNnTjzXlZDRc23iDhsb+Cm4T2Qsa2UsPvv/63iI87ghTuFO0jnBN0zioA80DUvYtQW7gUjhulCh0hGRqTg==","signatures":[{"sig":"MEYCIQDKl30fezO6WjCZZTmIq8PQgmGFm5xXqEc+oSA36IbYIQIhAIaqAd1Orkodyo0ICXs5f/JnZ7+R7wYPg0mAZ87q9sbq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":163739},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.3.0.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm && npm run build:esm-pkg","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","build:esm-pkg":"echo '{\"type\": \"module\"}' > dist/esm/package.json","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/070ef0b1baac41a27f6cbcc9209d7cf8/sapiom-fetch-0.3.0.tgz","_integrity":"sha512-3OfjoNnTjzXlZDRc23iDhsb+Cm4T2Qsa2UsPvv/63iI87ghTuFO0jnBN0zioA80DUvYtQW7gUjhulCh0hGRqTg==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.3.0_1771021600702_0.457142944585498","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@sapiom/fetch","version":"0.4.0","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.4.0","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"f6427f6a7dff6ab5e9b7d0a75e59761c269a3a55","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.4.0.tgz","fileCount":31,"integrity":"sha512-w/bIh+PwZJdobog4WZWYr7eWv219jF1SeqyAnGdVruQv+3EnUX/2ZuO0xh6yVVcqUmf7w9MRjCi9x5Mqj4jbxg==","signatures":[{"sig":"MEUCIQCkroAcd3ptnLsRrO+G51TIR4djvV18g+k/q7FI6UOrmwIgboiN8UBx1b+PKO3lJqTVu9l2WSX31FbYpb8+1Txc3m8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":164391},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.4.0.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm && npm run build:esm-pkg","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","build:esm-pkg":"echo '{\"type\": \"module\"}' > dist/esm/package.json","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/f9d07c4837ec619aabf987d61712b15b/sapiom-fetch-0.4.0.tgz","_integrity":"sha512-w/bIh+PwZJdobog4WZWYr7eWv219jF1SeqyAnGdVruQv+3EnUX/2ZuO0xh6yVVcqUmf7w9MRjCi9x5Mqj4jbxg==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.4.0_1772483347392_0.05621564801609735","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@sapiom/fetch","version":"0.5.0","keywords":["sapiom","sdk","fetch","http","payment","402"],"author":{"name":"Sapiom"},"license":"MIT","_id":"@sapiom/fetch@0.5.0","maintainers":[{"name":"sapiom-dev","email":"david@sapiom.ai"},{"name":"ilan.z","email":"ilan@sapiom.ai"},{"name":"dave_sapiom","email":"david.witwer@sapiom.ai"},{"name":"sommaht","email":"alecs.mccormick@gmail.com"}],"homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"dist":{"shasum":"894b7a683838bbf8cb974c1c5cddca7f105ef2d5","tarball":"https://registry.npmjs.org/@sapiom/fetch/-/fetch-0.5.0.tgz","fileCount":31,"integrity":"sha512-aueInzvDHlXliem49aubTsY8aiG/6T9CpHJ5mEFoR/HjE6o8MC2AXS7pHlImzohRGPKffAMTEw+2zqQyQN6/Ug==","signatures":[{"sig":"MEUCIQCNc6UGi6ayxHa0mV/EbvD1vKpQe1K8CDkLjVHhIJLapQIgL0KyPV9US2DQGlx2KLe/kW8cl7d8t5GBHvK25r9S74Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":177529},"main":"./dist/cjs/index.js","_from":"file:sapiom-fetch-0.5.0.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/cjs/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"dev":"tsc --watch --project tsconfig.cjs.json","lint":"eslint src --ext .ts","test":"jest","build":"npm run build:cjs && npm run build:esm && npm run build:esm-pkg","clean":"rm -rf dist *.tsbuildinfo","format":"prettier --write \"src/**/*.ts\"","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","typecheck":"tsc --noEmit","test:watch":"jest --watch","build:esm-pkg":"echo '{\"type\": \"module\"}' > dist/esm/package.json","test:coverage":"jest --coverage"},"_npmUser":{"name":"sapiom-dev","email":"david@sapiom.ai"},"_resolved":"/tmp/ca01411499877cb5b9bd3b70833a8cbe/sapiom-fetch-0.5.0.tgz","_integrity":"sha512-aueInzvDHlXliem49aubTsY8aiG/6T9CpHJ5mEFoR/HjE6o8MC2AXS7pHlImzohRGPKffAMTEw+2zqQyQN6/Ug==","repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"_npmVersion":"10.8.2","description":"Fetch API integration for Sapiom SDK","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@sapiom/core":"0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","undici":"^7.16.0","ts-jest":"^29.1.2","prettier":"^3.2.5","typescript":"^5.4.2","@types/jest":"^29.5.14","@types/node":"^20.11.30","@fetch-mock/jest":"^0.2.17","@typescript-eslint/parser":"^7.3.1","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.5.0_1773175478544_0.5606799301176506","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-11-12T20:26:58.731Z","modified":"2026-08-04T05:03:13.877Z","0.1.0":"2025-11-12T20:26:59.337Z","0.1.1":"2025-12-02T23:27:27.145Z","0.1.2":"2025-12-12T20:33:16.240Z","0.2.0":"2026-01-16T20:33:56.025Z","0.2.1":"2026-01-19T20:15:26.038Z","0.2.2":"2026-01-27T16:38:53.466Z","0.3.0":"2026-02-13T22:26:40.907Z","0.4.0":"2026-03-02T20:29:07.569Z","0.5.0":"2026-03-10T20:44:38.693Z"},"bugs":{"url":"https://github.com/sapiom/sapiom-js/issues"},"author":{"name":"Sapiom"},"license":"MIT","homepage":"https://github.com/sapiom/sapiom-js/tree/main/packages/fetch#readme","keywords":["sapiom","sdk","fetch","http","payment","402"],"repository":{"url":"git+https://github.com/sapiom/sapiom-js.git","type":"git","directory":"packages/fetch"},"description":"Fetch API integration for Sapiom SDK","maintainers":[{"email":"david@sapiom.ai","name":"sapiom-dev"},{"email":"ilan@sapiom.ai","name":"ilan.z"},{"email":"dave@sapiom.ai","name":"dave_sapiom"},{"email":"yash@sapiom.ai","name":"ynadge"}],"readme":"# @sapiom/fetch\n\n[![npm version](https://badge.fury.io/js/%40sapiom%2Ffetch.svg)](https://www.npmjs.com/package/@sapiom/fetch)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n> ⚠️ **Beta Status:** Currently in v0.x. API may change before v1.0.0. Production-ready and actively maintained.\n\nFetch API integration for Sapiom SDK providing automatic payment handling (402 errors) and pre-emptive authorization.\n\n## Installation\n\n```bash\nnpm install @sapiom/fetch\n```\n\n**Note:** Requires Node.js 18+ (native fetch).\n\n## Quick Start\n\n```typescript\nimport { createFetch } from '@sapiom/fetch';\n\nconst fetch = createFetch({\n  apiKey: process.env.SAPIOM_API_KEY\n});\n\n// Drop-in replacement for native fetch\nconst response = await fetch('https://api.example.com/data');\nconst data = await response.json();\n```\n\n## Features\n\n- ✅ Drop-in replacement for native fetch\n- ✅ Automatic 402 payment handling\n- ✅ Pre-emptive authorization\n- ✅ Full TypeScript support\n- ✅ Uses native Fetch API (no additional HTTP client needed)\n- ✅ Environment variable configuration\n\n## Configuration\n\n```typescript\nimport { createFetch } from '@sapiom/fetch';\n\nconst fetch = createFetch({\n  // Required (or use SAPIOM_API_KEY environment variable)\n  apiKey: 'sk_...',\n\n  // Optional - Control\n  enabled: true,              // Enable Sapiom handling (default: true)\n  failureMode: 'open',        // 'open' | 'closed' (default: 'open')\n                              // 'open': Allow requests if Sapiom fails (prioritizes availability)\n                              // 'closed': Block requests if Sapiom fails (prioritizes security)\n\n  // Optional - Default metadata (applied to all requests)\n  agentName: 'my-agent',      // Agent identifier\n  agentId: 'agent-123',       // Agent UUID or numeric ID\n  serviceName: 'my-service',  // Service name for transactions\n  traceId: 'trace-xyz',       // Internal trace UUID\n  traceExternalId: 'ext-456', // External trace identifier\n});\n```\n\n### Per-Request Overrides\n\nOverride configuration for individual requests using the `__sapiom` property:\n\n```typescript\n// Disable Sapiom for a specific request\nconst publicRequest = new Request('/api/public');\n(publicRequest as any).__sapiom = { enabled: false };\nawait fetch(publicRequest);\n\n// Override metadata for a specific request\nconst request = new Request('/api/resource', { method: 'POST' });\n(request as any).__sapiom = {\n  serviceName: 'different-service',\n  actionName: 'custom-action',\n  traceExternalId: 'ext-789'\n};\nawait fetch(request);\n```\n\n## Environment Variables\n\nAutomatically reads from environment:\n- `SAPIOM_API_KEY` (required)\n- `SAPIOM_BASE_URL` or `SAPIOM_API_URL` (optional)\n- `SAPIOM_TIMEOUT` (optional, in milliseconds)\n\n## License\n\nMIT © [Sapiom](../../LICENSE)\n\n## Links\n\n- [Documentation](https://docs.sapiom.ai)\n- [GitHub](https://github.com/sapiom/sapiom-js)\n- [NPM](https://www.npmjs.com/package/@sapiom/fetch)\n","readmeFilename":"README.md"}