{"_id":"@digitalcredentials/http-client","_rev":"12-a1903d0fab0bd214a0f55af75cf4fa72","name":"@digitalcredentials/http-client","dist-tags":{"latest":"5.0.4"},"versions":{"1.0.0":{"name":"@digitalcredentials/http-client","version":"1.0.0","keywords":["http","isomorphic","http client"],"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@1.0.0","maintainers":[{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"ulrich.gallersdoerfer@tum.de"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@tum.de"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"nyc":{"exclude":["tests"]},"dist":{"shasum":"d91cf75d46a94c0f4a141950ede48e6abf09bd7c","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-1.0.0.tgz","fileCount":10,"integrity":"sha512-fyNJvkLzsJE1ALZB8NuOs8+BTG/+OMqQ3GhARmhwfKFhJarHLh6Ajx7M2yj4pY3mZH9lk5OGgc4FelSSL36U9g==","signatures":[{"sig":"MEUCIBYnaNSwSUBhPhtHmYd5u7paGlSWFi6oq0aMh+5Eukh0AiEAw4xmFeJzvXshFzrcoUu2OKaUML23l/rtir29wPNpSMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpWRcCRA9TVsSAnZWagAAscEP/0jUX2ynsEjmcQIJXcNJ\nfDb724Kh5LMPkpVoKiuqCy815VyMxWGOm3rCcMU/2pdlJT23Yt43nscWIuZ1\n2P3fm41YgK7RzXSzx2FWL+MxCjbZNQHpMgRxe9O4vvXwAyLDSb+iyN75usZE\nwK6ubc0jA3mpzwpVbF4kDbAvmdhuYmqZO15IfYgBx45sgGWfFn9GGyn9MN96\nUCApajj7MgIhhKAIEOeiw+NvM3Mm5NYQ7SRSvC16/KRvpyFYzWEcvs8q0H7K\nw87EIBUmFYYNwqAttY1yaHc7QwzqxWuA1v+veoB/CVJnq+MztugUsz38F3sm\n2oqOeoEsO4/J4tTuh0gZNIx+RMo+oUiFJVt7wn7NWaKNpk6Qell/WgzxVti9\nJBx8CDA9VAxP9pDKnL1E1dqZjGcpovHVgSpDoQejB9GPppVo3qRtU66krDoJ\nyfijfHcqvO5hZORogLDwLtyZkolXSEm2bh5lZEsHREfA3TxASJAYbrKOdHj0\nXNKXmjw7CtrNTouhLsnaJz+WSpjNmxdnTpUJF0JbqhC/m7zX/sFE/mhJ+TrB\nKXr9jTsilTvnclDkRmUG+HXM0JABqXw4Zx5NY3j3EfkRZPQNNtR1X211fJ0i\n+lYA7c3YvltPLngHm6xAPwaKF0EV0nqDER6wPuDTyM6kXSRtdgDYAa3UkU2X\nRkX3\r\n=u8KR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/esm/index.js","engines":{"node":">=10.0.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"7e245021d99b2f5ce93dcbb309e2a421366204fa","scripts":{"lint":"eslint .","test":"npm run test-node","build":"npm run clear && npm run rollup && ./build-dist.sh","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js","prepare":"npm run build","rebuild":"npm run clear && npm run build","coverage":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","test-node":"cross-env NODE_ENV=test mocha -r esm --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","test-karma":"karma start karma.conf.js","test-watch":"cross-env NODE_ENV=test mocha -r esm --watch --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report"},"_npmUser":{"name":"kimhd","email":"kimdhamilton@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"6.14.8","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"14.8.0","dependencies":{"ky":"^0.25.1","ky-universal":"^0.8.2"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.22","nyc":"^15.1.0","chai":"^4.2.0","karma":"^5.0.9","mocha":"^8.3.2","eslint":"^7.2.0","rimraf":"^3.0.2","rollup":"^2.47.0","webpack":"^4.43.0","cross-env":"^7.0.2","karma-chai":"^0.1.0","@babel/core":"^7.10.2","detect-node":"^2.0.4","karma-mocha":"^2.0.1","karma-webpack":"^4.0.2","@babel/runtime":"^7.10.2","@babel/preset-env":"^7.10.2","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","karma-sourcemap-loader":"^0.3.7","karma-babel-preprocessor":"^8.0.1","eslint-config-digitalbazaar":"^2.5.0","@babel/plugin-transform-runtime":"^7.10.1","@babel/plugin-transform-modules-commonjs":"^7.10.1"},"_npmOperationalInternal":{"tmp":"tmp/http-client_1.0.0_1621451868373_0.4092512820374077","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@digitalcredentials/http-client","version":"1.2.1","keywords":["http","isomorphic","http client"],"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@1.2.1","maintainers":[{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"ulrich.gallersdoerfer@tum.de"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@tum.de"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"nyc":{"exclude":["tests"]},"dist":{"shasum":"993bf0dd4f0bf6adcfcb4df07c11b60c679780b7","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-1.2.1.tgz","fileCount":10,"integrity":"sha512-blW9fg63CeebHgM7s5cWyROb/JGitjNPesUlzYk+/5/qVtvEJFIfJpjsMCjvLku9Rht0hqEYBt1C8TK/Rpcfhw==","signatures":[{"sig":"MEUCIC2ijPguYFVKMW5uJqgDEpnZGPFjWRUA9p/1/S9jdjXXAiEA+2oZWGk7WZv0fq6Yz1ZCPVnajNN646/UyS7fw0xiLvI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12334},"main":"dist/index.js","module":"dist/esm/index.js","engines":{"node":">=10.0.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"957953c419fff0c66ed5f6d340e067af7ee53c46","scripts":{"lint":"eslint .","test":"npm run test-node","build":"npm run clear && npm run rollup && ./build-dist.sh","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js","prepare":"npm run build","rebuild":"npm run clear && npm run build","coverage":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","test-node":"cross-env NODE_ENV=test mocha -r esm --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","test-karma":"karma start karma.conf.js","test-watch":"cross-env NODE_ENV=test mocha -r esm --watch --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"6.14.13","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"ky":"^0.25.1","ky-universal":"^0.8.2"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.22","nyc":"^15.1.0","chai":"^4.2.0","karma":"^5.0.9","mocha":"^8.3.2","eslint":"^7.2.0","rimraf":"^3.0.2","rollup":"^2.47.0","webpack":"^5.41.1","cross-env":"^7.0.2","karma-chai":"^0.1.0","@babel/core":"^7.10.2","detect-node":"^2.0.4","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","@babel/runtime":"^7.10.2","@babel/preset-env":"^7.10.2","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","karma-sourcemap-loader":"^0.3.7","karma-babel-preprocessor":"^8.0.1","eslint-config-digitalbazaar":"^2.5.0","@babel/plugin-transform-runtime":"^7.10.1","@babel/plugin-transform-modules-commonjs":"^7.10.1"},"_npmOperationalInternal":{"tmp":"tmp/http-client_1.2.1_1633014544598_0.030294036799637825","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"@digitalcredentials/http-client","version":"1.2.2","keywords":["http","isomorphic","http client"],"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@1.2.2","maintainers":[{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"ulrich.gallersdoerfer@tum.de"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@tum.de"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"nyc":{"exclude":["tests"]},"dist":{"shasum":"8b09ab6f1e3aa8878d91d3ca51946ca8265cc92e","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-1.2.2.tgz","fileCount":10,"integrity":"sha512-YOwaE+vUDSwiDhZT0BbXSWVg+bvp1HA1eg/gEc8OCwCOj9Bn9FRQdu8P9Y/fnYqyFCioDwwTRzGxgJLl50baEg==","signatures":[{"sig":"MEYCIQDh6iDQLT3bplGgqTeqpzr/GY9BDL5j4bgH91NGa20WewIhALplN4sQqsMumIyb9sXuJ7arj3ov+zXPTx3IREkmrQL9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2D+XCRA9TVsSAnZWagAAFCIP/27x9pfzLsJ7ajjDY1E+\nH+/zyn3rBtYgUYeGJoDp78dYSLqQku/xlK37s5InUnZHqGWM8QZ/cgZJ1ti1\nDZm1KGwOiyoP5rq//7Nb6ybKNXQIWnSW3BPtrBtshWXPCk4lECPo5BkJ6Knj\nIOe6pWUR2+TGHaI1KyQ1ygv+bVY7knHmM6TQVUk+rjFmLCIeN4/JlNc/7zS3\n5gj1dV7oyf7fBpr/jTmwHvwoT766rjbq2KRNv/g5tuil9x6653cReLhlMRCl\nx0jPsjVVdJG0zc3KEqo3w1gucSqWQ97AClK7f1GmJKW7j5v2VYA1tPC3mTK+\ngrnZRln/s7MZII0tfwFcwgvqeU0EWnSWr3G7M5lVlvJ+4GkBam8c3pIWBYpE\nNSS5PAgs2k6WDeGNZAzuAA3lPF1YDI+CT/Wt1KvDy85RcL479hzVv5xOQR2s\nf0HKlftVWrQzl5JAKEaWHcsLEKa53+E+5YRJUBOEv+AyI3JD7CAvBXmqJtbs\nm7BfeHbydxOVnv27i2XFYnRm9JTzBiiIMAzVIa6klzjl2wL/aZiFrsSAFL5v\nJe4ccacvaJgEf1HLIc+LxPykp5zI4UnaUhrpSGXo9ROE3Ot+KvcMFni8JLKB\n7IZOQEzCkxTdkJJDdMYr1kEz60FfjIiSFFve2WKRUDc/HMEkIt+Xqve7FucP\n8Hea\r\n=BMJy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/esm/index.js","engines":{"node":">=12.0.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"4f827d88a22f62bf548207555b3f6e8ab7b6850e","scripts":{"lint":"eslint .","test":"npm run lint && npm run test-node && npm run test-karma","build":"npm run clear && npm run rollup && ./build-dist.sh","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js","prepare":"npm run build","rebuild":"npm run clear && npm run build","test-node":"cross-env NODE_ENV=test mocha -r esm --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","test-karma":"karma start karma.conf.js","test-watch":"cross-env NODE_ENV=test mocha -r esm --watch --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","coverage-report":"nyc report"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"6.14.13","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"ky":"^0.25.1","ky-universal":"^0.8.2"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","nyc":"^15.1.0","chai":"^4.3.4","karma":"^6.3.2","mocha":"^8.3.2","eslint":"^7.25.0","rimraf":"^3.0.2","rollup":"^2.47.0","webpack":"^5.36.2","cross-env":"^7.0.3","multibase":"^4.0.4","karma-chai":"^0.1.0","multicodec":"^3.0.1","detect-node":"^2.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","eslint-plugin-jsdoc":"^33.1.0","mocha-lcov-reporter":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^3.1.0","karma-sourcemap-loader":"^0.3.8","karma-babel-preprocessor":"^8.0.1","eslint-config-digitalbazaar":"^2.8.0"},"_npmOperationalInternal":{"tmp":"tmp/http-client_1.2.2_1633015321250_0.4377098826351724","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"@digitalcredentials/http-client","version":"5.0.0","keywords":["http","isomorphic","http client"],"author":{"url":"https://digitalbazaar.com/","name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com"},"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@5.0.0","maintainers":[{"name":"kezike","email":"kezike13@gmail.com"},{"name":"klemoie","email":"klemoie@mit.edu"},{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"npm@ulig.io"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@googlemail.com"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"b95c368e8023909a626f593c81ad86c1785199cf","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-5.0.0.tgz","fileCount":16,"integrity":"sha512-EpnmSTzKexmxgFPe7X2L3glQlM6OId0l+c3A6/AInxz5uqBkKYmM4XzGdIlfiz3bJVwlGG7fQonCyPxDDEjJmg==","signatures":[{"sig":"MEYCIQC7P6lgTvmsrLexaz7+XggNxyrjsKkSN41bugvRkg8FPQIhANSBaEcHvo/dXb/UpE93kbH6RMr0czjqsZvhCxYn2Uk7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22471},"main":"dist/index.js","type":"module","module":"dist/esm/index.js","browser":{"./tests/utils.cjs":"./tests/utils-browser.cjs","./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"engines":{"node":">=18.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"5b504dd99fe7312642a6f71396346376744aa0b9","scripts":{"lint":"eslint --ignore-pattern rollup.config.js .","test":"npm run test-node && npm run test-karma","build":"npm run clear && npm run rollup","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js && ./build-dist.sh","prepare":"npm run build","rebuild":"npm run clear && npm run build","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","test-karma":"karma start karma.conf.cjs","test-watch":"cross-env NODE_ENV=test mocha --watch --parallel --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"10.8.1","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"ky":"^1.0.1","undici":"^6.6.2"},"react-native":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","chai":"^4.3.7","cors":"^2.8.5","delay":"^5.0.0","karma":"^6.4.1","mocha":"^10.2.0","eslint":"^8.38.0","rimraf":"^6.0.1","rollup":"^3.20.2","express":"^4.18.2","webpack":"^5.79.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","detect-node":"^2.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","eslint-plugin-jsdoc":"^41.1.1","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^46.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.4.0","eslint-config-digitalbazaar":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/http-client_5.0.0_1722730590782_0.25439637209454546","host":"s3://npm-registry-packages"}},"5.0.1":{"name":"@digitalcredentials/http-client","version":"5.0.1","keywords":["http","isomorphic","http client"],"author":{"url":"https://digitalbazaar.com/","name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com"},"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@5.0.1","maintainers":[{"name":"kezike","email":"kezike13@gmail.com"},{"name":"klemoie","email":"klemoie@mit.edu"},{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"npm@ulig.io"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@googlemail.com"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"4097d17ccd63d71f021d998c4a7ce1410c620c35","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-5.0.1.tgz","fileCount":17,"integrity":"sha512-T9ou1vFyWAPt7mtNR8beM2xZM/YHnTAasXy37ObL5gK6FjttPPdKtvR/idKczLWVgqSjxRL9pp9KCbC5TvSiDA==","signatures":[{"sig":"MEUCIQDCvfgay3th8SGCkKnDpviuRk4APj708jsLR1TjJrq6SQIgAlH6CIjSM5Uze5OFkDsIQ0fAZVwf4PcxGLIo/Nx8mRw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22558},"main":"dist/index.js","type":"module","module":"dist/esm/index.js","browser":{"./tests/utils.cjs":"./tests/utils-browser.cjs","./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"engines":{"node":">=18.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"f4f5c5befd25c1d65e499612377f1fd0c8406faf","scripts":{"lint":"eslint --ignore-pattern rollup.config.js .","test":"npm run test-node && npm run test-karma","build":"npm run clear && npm run rollup","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js && ./build-dist.sh","prepare":"npm run build","rebuild":"npm run clear && npm run build","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","test-karma":"karma start karma.conf.cjs","test-watch":"cross-env NODE_ENV=test mocha --watch --parallel --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"10.8.1","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"ky":"^1.0.1","undici":"^6.6.2"},"react-native":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","chai":"^4.3.7","cors":"^2.8.5","delay":"^5.0.0","karma":"^6.4.1","mocha":"^10.2.0","eslint":"^8.38.0","rimraf":"^6.0.1","rollup":"^3.20.2","express":"^4.18.2","webpack":"^5.79.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","detect-node":"^2.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","eslint-plugin-jsdoc":"^41.1.1","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^46.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.4.0","eslint-config-digitalbazaar":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/http-client_5.0.1_1722731576648_0.04112420902630998","host":"s3://npm-registry-packages"}},"5.0.2":{"name":"@digitalcredentials/http-client","version":"5.0.2","keywords":["http","isomorphic","http client"],"author":{"url":"https://digitalbazaar.com/","name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com"},"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@5.0.2","maintainers":[{"name":"kezike","email":"kezike13@gmail.com"},{"name":"klemoie","email":"klemoie@mit.edu"},{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"npm@ulig.io"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@googlemail.com"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"99b18130a38f3ab0b097ffdd2b75bb9df20359cc","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-5.0.2.tgz","fileCount":17,"integrity":"sha512-Y/qAXrjl8vDqIea9doeMbjrlszUx9jbmH1fosmvAhxOQwOTzewAJOZ3hIIRSPILuNUw5wnMrtL8BhnuI2gsVRg==","signatures":[{"sig":"MEUCICwTd5uQC8YWNx2hqP6XFSz4NJRnBapR++h+4XlXm6f5AiEAolJu0II/fgjAda/DlP2Gb7TBNvh8qwIs3HYzqS1wG8U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22634},"main":"dist/index.js","type":"module","module":"dist/esm/index.js","browser":{"./tests/utils.cjs":"./tests/utils-browser.cjs","./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"engines":{"node":">=18.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"3ebd34ab8911b3492cf27a0931bf03b7ee197553","scripts":{"lint":"eslint --ignore-pattern rollup.config.js .","test":"npm run test-node && npm run test-karma","build":"npm run clear && npm run rollup","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js && ./build-dist.sh","prepare":"npm run build","rebuild":"npm run clear && npm run build","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","test-karma":"karma start karma.conf.cjs","test-watch":"cross-env NODE_ENV=test mocha --watch --parallel --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"10.8.1","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"ky":"^1.0.1","undici":"^6.6.2"},"react-native":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js","./dist/agentCompatibility.js":"./dist/agentCompatibility-browser.js"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","chai":"^4.3.7","cors":"^2.8.5","delay":"^5.0.0","karma":"^6.4.1","mocha":"^10.2.0","eslint":"^8.38.0","rimraf":"^6.0.1","rollup":"^3.20.2","express":"^4.18.2","webpack":"^5.79.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","detect-node":"^2.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","eslint-plugin-jsdoc":"^41.1.1","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^46.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.4.0","eslint-config-digitalbazaar":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/http-client_5.0.2_1722897756789_0.553872996631567","host":"s3://npm-registry-packages"}},"5.0.3":{"name":"@digitalcredentials/http-client","version":"5.0.3","keywords":["http","isomorphic","http client"],"author":{"url":"https://digitalbazaar.com/","name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com"},"license":"BSD-3-Clause","_id":"@digitalcredentials/http-client@5.0.3","maintainers":[{"name":"kezike","email":"kezike13@gmail.com"},{"name":"klemoie","email":"klemoie@mit.edu"},{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"npm@ulig.io"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@googlemail.com"}],"homepage":"https://github.com/digitalcredentials/http-client","bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"9573032cabc02606d2d7789a360b1c6333f52db8","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-5.0.3.tgz","fileCount":18,"integrity":"sha512-oVsjWsqm1NYN39aWnMetdoyJIIuntwNWGeBNNprJKu9gy++lrOQRlXwlh+sCB5pAYqRfCqxF89J3gB14qShKyA==","signatures":[{"sig":"MEUCIQCQltQFoqIACuGdwV+tjO1oMDvjFi7rSpKws+b2xmTevgIgd9vkhniS2hVakeH5CRnseoh/FBVBZow5swk30vbOsKs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23454},"main":"dist/index.js","type":"module","module":"dist/esm/index.js","browser":{"./tests/utils.cjs":"./tests/utils-browser.cjs","./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"engines":{"node":">=18.0"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"80b8e33a0d513d022fd5e8cdcf4ac50b2a33b2d0","scripts":{"lint":"eslint --ignore-pattern rollup.config.js .","test":"npm run test-node && npm run test-karma","build":"npm run clear && npm run rollup","clear":"rimraf dist/ && mkdir dist","rollup":"rollup -c rollup.config.js && ./build-dist.sh","prepare":"npm run build","rebuild":"npm run clear && npm run build","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","test-karma":"karma start karma.conf.cjs","test-watch":"cross-env NODE_ENV=test mocha --watch --parallel --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/http-client.git","type":"git"},"_npmVersion":"10.8.1","description":"An opinionated, isomorphic HTTP client.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"ky":"^1.0.1","undici":"^6.6.2"},"react-native":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js","./dist/agentCompatibility.js":"./dist/agentCompatibility-browser.js"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","chai":"^4.3.7","cors":"^2.8.5","delay":"^5.0.0","karma":"^6.4.1","mocha":"^10.2.0","eslint":"^8.38.0","rimraf":"^6.0.1","rollup":"^3.20.2","express":"^4.18.2","webpack":"^5.79.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","detect-node":"^2.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","eslint-plugin-jsdoc":"^41.1.1","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^46.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.4.0","eslint-config-digitalbazaar":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/http-client_5.0.3_1725225678140_0.8287542204538509","host":"s3://npm-registry-packages"}},"5.0.4":{"name":"@digitalcredentials/http-client","version":"5.0.4","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","type":"module","main":"dist/index.js","module":"dist/esm/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/esm/index.js"},"./package.json":"./package.json"},"browser":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js","./tests/utils.cjs":"./tests/utils-browser.cjs"},"react-native":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js","./dist/agentCompatibility.js":"./dist/agentCompatibility-browser.js"},"scripts":{"rollup":"rollup -c rollup.config.js && ./build-dist.sh","build":"npm run clear && npm run rollup","clear":"rimraf dist/ && mkdir dist","prepare":"npm run build","rebuild":"npm run clear && npm run build","test":"npm run test-node && npm run test-karma","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","test-karma":"karma start karma.conf.cjs","test-watch":"cross-env NODE_ENV=test mocha --watch --parallel --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js","coverage":"cross-env NODE_ENV=test c8 npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report","lint":"eslint --ignore-pattern rollup.config.js ."},"dependencies":{"ky":"^1.0.1","undici":"^6.6.2"},"devDependencies":{"c8":"^7.13.0","chai":"^4.3.7","cors":"^2.8.5","cross-env":"^7.0.3","delay":"^5.0.0","detect-node":"^2.1.0","eslint":"^8.38.0","eslint-config-digitalbazaar":"^4.2.0","eslint-plugin-jsdoc":"^41.1.1","eslint-plugin-unicorn":"^46.0.0","express":"^4.18.2","karma":"^6.4.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.1","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.0","mocha":"^10.2.0","rimraf":"^6.0.1","rollup":"^3.20.2","webpack":"^5.79.0"},"repository":{"type":"git","url":"git+https://github.com/digitalcredentials/http-client.git"},"keywords":["http","isomorphic","http client"],"author":{"name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com","url":"https://digitalbazaar.com/"},"bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"homepage":"https://github.com/digitalcredentials/http-client","engines":{"node":">=18.0"},"c8":{"reporter":["lcov","text-summary","text"]},"_id":"@digitalcredentials/http-client@5.0.4","gitHead":"aa2617ef312aacb13b5f275f2ef68ac94693f60c","_nodeVersion":"20.10.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-TbbfFauhd5fUAcZ/6TDenTuYqkzqdEhxYk1Rqicxcz33B9rzvJcmT+/81KF9DrUXmu6gpoqCranT2UkZftsxZA==","shasum":"44e73ea1133d24bab720c0515f92df9126912fe7","tarball":"https://registry.npmjs.org/@digitalcredentials/http-client/-/http-client-5.0.4.tgz","fileCount":18,"unpackedSize":23452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHrt1V5hF4CiPOzdLnQU0Ecrj5A/DvlX8KLLkqT1TGDVAiEAkLqwWAThj85RUcpLNoZpDK0okG4ZOW/TKnm/rK8KFzY="}]},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"directories":{},"maintainers":[{"name":"kezike","email":"kezike13@gmail.com"},{"name":"klemoie","email":"klemoie@mit.edu"},{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"npm@ulig.io"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_5.0.4_1725227459386_0.04277406474884082"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-19T19:17:48.058Z","modified":"2024-09-01T21:50:59.913Z","1.0.0":"2021-05-19T19:17:48.548Z","1.2.1":"2021-09-30T15:09:04.790Z","1.2.2":"2021-09-30T15:22:01.387Z","5.0.0":"2024-08-04T00:16:30.934Z","5.0.1":"2024-08-04T00:32:56.850Z","5.0.2":"2024-08-05T22:42:36.945Z","5.0.3":"2024-09-01T21:21:18.305Z","5.0.4":"2024-09-01T21:50:59.571Z"},"bugs":{"url":"https://github.com/digitalcredentials/http-client/issues"},"author":{"name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com","url":"https://digitalbazaar.com/"},"license":"BSD-3-Clause","homepage":"https://github.com/digitalcredentials/http-client","keywords":["http","isomorphic","http client"],"repository":{"type":"git","url":"git+https://github.com/digitalcredentials/http-client.git"},"description":"An opinionated, isomorphic HTTP client.","maintainers":[{"name":"kezike","email":"kezike13@gmail.com"},{"name":"klemoie","email":"klemoie@mit.edu"},{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"npm@ulig.io"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@googlemail.com"}],"readme":"# http-client\n[![NPM Version](https://img.shields.io/npm/v/@digitalcredentials/http-client.svg)](https://npm.im/@digitalcredentials/http-client)\n\n> An opinionated, isomorphic HTTP client for Node.js, browsers, and React Native.\n\n### Usage\n\n#### Import httpClient (Node.js)\n```js\nimport https from 'https';\nimport {httpClient} from '@digitalcredentials/http-client';\n```\n\n#### Import httpClient (browsers or React Native)\n```js\nimport {httpClient} from '@digitalcredentials/http-client';\n```\n\n#### Import and initialize a custom Bearer Token client\n```js\nimport {httpClient} from '@digitalcredentials/http-client';\n\nconst httpsAgent = new https.Agent({rejectUnauthorized: false});\n\nconst accessToken = '12345';\nconst headers = {Authorization: `Bearer ${accessToken}`};\n\nconst client = httpClient.extend({headers, httpsAgent});\n\n// subsequent http calls will include an 'Authorization: Bearer 12345' header,\n// and use the provided httpsAgent\n```\n\n#### GET a JSON response in the browser\n```js\ntry {\n  const response = await httpClient.get('http://httpbin.org/json');\n  return response.data;\n} catch(e) {\n  // status is HTTP status code\n  // data is JSON error from the server\n  const {data, status} = e;\n  throw e;\n}\n```\n\n#### GET a JSON response in Node with an HTTP Agent\n```js\nimport https from 'https';\n// use an agent to avoid self-signed certificate errors\nconst agent = new https.Agent({rejectUnauthorized: false});\ntry {\n  const response = await httpClient.get('http://httpbin.org/json', {agent});\n  return response.data;\n} catch(e) {\n  // status is HTTP status code\n  // data is JSON error from the server if available\n  const {data, status} = e;\n  throw e;\n}\n```\n\n#### GET HTML by overriding default headers\n```js\nconst headers = {Accept: 'text/html'};\ntry {\n  const response = await httpClient.get('http://httpbin.org/html', {headers});\n  // see: https://developer.mozilla.org/en-US/docs/Web/API/Response#methods\n  return response.text();\n} catch(e) {\n  // status is HTTP status code\n  // any message from the server can be parsed from the response if present\n  const {response, status} = e;\n  throw e;\n}\n```\n\n#### POST a JSON payload\n```js\ntry {\n  const response = await httpClient.post('http://httpbin.org/json', {\n    // `json` is the payload or body of the POST request\n    json: {some: 'data'}\n  });\n  return response.data;\n} catch(e) {\n  // status is HTTP status code\n  // data is JSON error from the server\n  const {data, status} = e;\n  throw e;\n}\n```\n\n#### POST a JSON payload in Node with an HTTP Agent\n```js\nimport https from 'https';\n// use an agent to avoid self-signed certificate errors\nconst agent = new https.Agent({rejectUnauthorized: false});\ntry {\n  const response = await httpClient.post('http://httpbin.org/json', {\n    agent,\n    // `json` is the payload or body of the POST request\n    json: {some: 'data'}\n  });\n  return response.data;\n} catch(e) {\n  // status is HTTP status code\n  // data is JSON error from the server\n  const {data, status} = e;\n  throw e;\n}\n```\n","readmeFilename":"README.md"}