{"_id":"@digitalbazaar/http-client","_rev":"232595","name":"@digitalbazaar/http-client","description":"An opinionated, isomorphic HTTP client.","dist-tags":{"latest":"3.3.0"},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"time":{"modified":"2023-03-24T16:06:29.000Z","created":"2020-06-18T17:08:57.605Z","3.3.0":"2023-01-17T22:27:24.600Z","3.2.0":"2022-05-19T21:41:44.787Z","3.1.0":"2022-05-03T21:52:28.700Z","3.0.1":"2022-04-26T20:41:32.461Z","3.0.0":"2022-04-20T19:20:39.949Z","2.0.1":"2021-12-02T01:29:51.808Z","2.0.0":"2021-11-15T20:06:57.202Z","1.2.0":"2021-07-19T17:05:41.033Z","1.1.0":"2021-04-06T21:35:44.054Z","1.0.0":"2020-06-18T17:08:57.605Z"},"users":{},"author":{"name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com","url":"https://digitalbazaar.com/"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/http-client.git"},"versions":{"3.3.0":{"name":"@digitalbazaar/http-client","version":"3.3.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","type":"module","main":"./dist/cjs/index.cjs","exports":{"require":"./dist/cjs/index.cjs","import":"./lib/index.js"},"browser":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"scripts":{"rollup":"rollup -c rollup.config.js","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-node-cjs","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-node-cjs":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.cjs tests/*.spec.cjs","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 --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly npm run test-node","coverage-report":"c8 report","lint":"eslint --ignore-pattern rollup.config.js ."},"dependencies":{"ky":"^0.33.2","ky-universal":"^0.11.0","undici":"^5.15.0"},"devDependencies":{"c8":"^7.12.0","chai":"^4.3.7","cross-env":"^7.0.3","detect-node":"^2.1.0","eslint":"^8.32.0","eslint-config-digitalbazaar":"^4.2.0","eslint-plugin-jsdoc":"^39.6.4","eslint-plugin-unicorn":"^45.0.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.3.8","karma-webpack":"^5.0.0","mocha":"^10.2.0","rimraf":"^4.0.7","rollup":"^3.10.0","webpack":"^5.75.0"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","engines":{"node":">=14.0"},"c8":{"exclude":["tests","node_modules"]},"gitHead":"38fc0c5f4d6f8000678874f664d8b0f5a422d6d7","_id":"@digitalbazaar/http-client@3.3.0","_nodeVersion":"16.19.0","_npmVersion":"9.3.0","dist":{"shasum":"2748c647fc002c022b4b808aaf487b53f1a57667","size":4991,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-3.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-3.3.0.tgz"},"_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_3.3.0_1673994444432_0.8142514266206533"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-17T22:27:24.600Z","publish_time":1673994444600,"_cnpm_publish_time":1673994444600},"3.2.0":{"name":"@digitalbazaar/http-client","version":"3.2.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","type":"module","main":"./dist/cjs/index.cjs","exports":{"require":"./dist/cjs/index.cjs","import":"./lib/index.js"},"browser":{"./lib/agentCompatibility.js":"./lib/agentCompatibility-browser.js"},"scripts":{"rollup":"rollup -c rollup.config.js","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-node-cjs","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-node-cjs":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.cjs tests/*.spec.cjs","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 --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly npm run test-node","coverage-report":"c8 report","lint":"eslint ."},"dependencies":{"ky":"^0.30.0","ky-universal":"^0.10.1","undici":"^5.2.0"},"devDependencies":{"c8":"^7.11.2","chai":"^4.3.6","cross-env":"^7.0.3","detect-node":"^2.1.0","eslint":"^8.14.0","eslint-config-digitalbazaar":"^3.0.0","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-unicorn":"^42.0.0","karma":"^6.3.19","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.3.8","karma-webpack":"^5.0.0","mocha":"^10.0.0","rimraf":"^3.0.2","rollup":"^2.71.1","webpack":"^5.72.0"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","engines":{"node":">=14.0"},"c8":{"exclude":["tests","node_modules"]},"gitHead":"5808eadb7ae4dfde94e46fa71f2a253c808609db","_id":"@digitalbazaar/http-client@3.2.0","_nodeVersion":"16.15.0","_npmVersion":"8.10.0","dist":{"shasum":"b85ea09028c7d0f288f976c852d0a8f3875f0fcf","size":5004,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-3.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-3.2.0.tgz"},"_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_3.2.0_1652996504623_0.5089161088715461"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-19T21:45:38.407Z","publish_time":1652996504787,"_cnpm_publish_time":1652996504787},"3.1.0":{"name":"@digitalbazaar/http-client","version":"3.1.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","type":"module","main":"./dist/cjs/index.cjs","exports":{"require":"./dist/cjs/index.cjs","import":"./lib/index.js"},"scripts":{"rollup":"rollup -c rollup.config.js","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-node-cjs","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-node-cjs":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.cjs tests/*.spec.cjs","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 --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly npm run test-node","coverage-report":"c8 report","lint":"eslint ."},"dependencies":{"ky":"^0.30.0","ky-universal":"^0.10.1"},"devDependencies":{"c8":"^7.11.2","chai":"^4.3.6","cross-env":"^7.0.3","detect-node":"^2.1.0","eslint":"^8.14.0","eslint-config-digitalbazaar":"^3.0.0","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-unicorn":"^42.0.0","karma":"^6.3.19","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.3.8","karma-webpack":"^5.0.0","mocha":"^10.0.0","rimraf":"^3.0.2","rollup":"^2.71.1","webpack":"^5.72.0"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","engines":{"node":">=14.0"},"c8":{"exclude":["tests","node_modules"]},"gitHead":"611491c9a696afeab6524a15d4083e9ccf621cd3","_id":"@digitalbazaar/http-client@3.1.0","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"dist":{"shasum":"25d5f06e680953a5e794a9c448889e0168048b5e","size":5469,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-3.1.0.tgz"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_3.1.0_1651614748539_0.7044307062085635"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-03T21:52:48.967Z","publish_time":1651614748700,"_cnpm_publish_time":1651614748700},"3.0.1":{"name":"@digitalbazaar/http-client","version":"3.0.1","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","type":"module","main":"./dist/cjs/index.cjs","exports":{"require":"./dist/cjs/index.cjs","import":"./lib/index.js"},"scripts":{"rollup":"rollup -c rollup.config.js","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-node-cjs","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-node-cjs":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.cjs tests/*.spec.cjs","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 --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly npm run test-node","coverage-report":"c8 report","lint":"eslint ."},"dependencies":{"ky":"^0.30.0","ky-universal":"^0.10.1"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","c8":"^7.11.0","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.32.0","eslint-config-digitalbazaar":"^2.8.0","eslint-plugin-jsdoc":"^39.2.5","karma":"^6.3.4","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","mocha":"^8.3.2","rimraf":"^3.0.2","rollup":"^2.47.0","webpack":"^5.41.1"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","engines":{"node":">=14.0"},"c8":{"exclude":["tests","node_modules"]},"gitHead":"c004a027c5acd7104bf260329198e22edc2b1d30","_id":"@digitalbazaar/http-client@3.0.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"28f200aa6adc3373ea868364ee4ab91c40e0bd89","size":4202,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-3.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-3.0.1.tgz"},"_npmUser":{"name":"dlongley","email":"dlongley@digitalbazaar.com"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_3.0.1_1651005692299_0.9766700738532241"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-26T20:41:41.037Z","publish_time":1651005692461,"_cnpm_publish_time":1651005692461},"3.0.0":{"name":"@digitalbazaar/http-client","version":"3.0.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","type":"module","main":"./dist/cjs/index.cjs","exports":{"require":"./dist/cjs/index.cjs","import":"./lib/index.js"},"scripts":{"rollup":"rollup -c rollup.config.js","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-node-cjs","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-node-cjs":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.cjs tests/*.spec.cjs","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 --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly npm run test-node","coverage-report":"c8 report","lint":"eslint ."},"dependencies":{"ky":"^0.30.0","ky-universal":"^0.10.1"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","c8":"^7.11.0","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.32.0","eslint-config-digitalbazaar":"^2.8.0","eslint-plugin-jsdoc":"^39.2.5","karma":"^6.3.4","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","mocha":"^8.3.2","rimraf":"^3.0.2","rollup":"^2.47.0","webpack":"^5.41.1"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","engines":{"node":">=14.0"},"c8":{"exclude":["tests","node_modules"]},"gitHead":"5a9b6d0b0fa2e0cc079d0da5e2444895951b37f2","_id":"@digitalbazaar/http-client@3.0.0","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","_npmUser":{"name":"dlongley","email":"dlongley@digitalbazaar.com"},"dist":{"shasum":"dff9822587859028dda7d7150eda5952500e4452","size":5204,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_3.0.0_1650482439824_0.6430441501530764"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-20T19:20:44.616Z","publish_time":1650482439949,"_cnpm_publish_time":1650482439949},"2.0.1":{"name":"@digitalbazaar/http-client","version":"2.0.1","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","main":"index.js","scripts":{"test":"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":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report","lint":"eslint ."},"dependencies":{"esm":"^3.2.22","ky":"^0.25.1","ky-universal":"^0.8.2"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.2.0","eslint-config-digitalbazaar":"^2.5.0","karma":"^6.3.4","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","mocha":"^8.3.2","nyc":"^15.1.0","webpack":"^5.41.1"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","module":"main.js","engines":{"node":">=10.0.0"},"nyc":{"exclude":["tests"]},"gitHead":"404455743af50afbfc8c7c6993b097e9542947f3","_id":"@digitalbazaar/http-client@2.0.1","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"5f815230342b9590808c9ae486b438317af2f4e7","size":4234,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-2.0.1.tgz"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_2.0.1_1638408591626_0.2969317573164507"},"_hasShrinkwrap":false,"publish_time":1638408591808,"_cnpm_publish_time":1638408591808,"_cnpmcore_publish_time":"2021-12-17T00:23:43.822Z"},"2.0.0":{"name":"@digitalbazaar/http-client","version":"2.0.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","main":"index.js","scripts":{"test":"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":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report","lint":"eslint ."},"dependencies":{"esm":"^3.2.22","ky":"^0.25.1","ky-universal":"^0.8.2"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.2.0","eslint-config-digitalbazaar":"^2.5.0","karma":"^6.3.4","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","mocha":"^8.3.2","nyc":"^15.1.0","webpack":"^5.41.1"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","module":"main.js","engines":{"node":">=10.0.0"},"nyc":{"exclude":["tests"]},"gitHead":"f0ae901716c082fa14c0ce9923a4738e886eecfe","_id":"@digitalbazaar/http-client@2.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"db4ce4a5c73b728fee8e4cd44be0d76e2bb929df","size":4237,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-2.0.0.tgz"},"_npmUser":{"name":"codenamedmitri","email":"dzagidulin@gmail.com"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_2.0.0_1637006816970_0.35452119037640495"},"_hasShrinkwrap":false,"publish_time":1637006817202,"_cnpm_publish_time":1637006817202,"_cnpmcore_publish_time":"2021-12-17T00:23:44.025Z"},"1.2.0":{"name":"@digitalbazaar/http-client","version":"1.2.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","main":"index.js","scripts":{"test":"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":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report","lint":"eslint ."},"dependencies":{"esm":"^3.2.22","ky":"^0.25.1","ky-universal":"^0.8.2"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.2.0","eslint-config-digitalbazaar":"^2.5.0","karma":"^6.3.4","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","mocha":"^8.3.2","nyc":"^15.1.0","webpack":"^5.41.1"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","module":"main.js","engines":{"node":">=10.0.0"},"nyc":{"exclude":["tests"]},"gitHead":"d125f4d1daf7acdf0ccfcadec3b4638373c92280","_id":"@digitalbazaar/http-client@1.2.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","_npmUser":{"name":"dlongley","email":"dlongley@digitalbazaar.com"},"dist":{"shasum":"1ea3661e77000a15bd892a294f20dc6cc5d1c93b","size":3482,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-1.2.0.tgz"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_1.2.0_1626714340900_0.22679311246505662"},"_hasShrinkwrap":false,"publish_time":1626714341033,"_cnpm_publish_time":1626714341033,"_cnpmcore_publish_time":"2021-12-17T00:23:44.286Z"},"1.1.0":{"name":"@digitalbazaar/http-client","version":"1.1.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","main":"index.js","scripts":{"test":"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":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report","lint":"eslint ."},"dependencies":{"esm":"^3.2.22","ky":"^0.25.1","ky-universal":"^0.8.2"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.2.0","eslint-config-digitalbazaar":"^2.5.0","karma":"^5.0.9","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.2","mocha":"^8.3.2","nyc":"^15.1.0","webpack":"^4.43.0"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","module":"main.js","engines":{"node":">=10.0.0"},"nyc":{"exclude":["tests"]},"gitHead":"860bd80ce32c4d0ffbf56fe2fcb588e7f24952b2","_id":"@digitalbazaar/http-client@1.1.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.5","_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"dist":{"shasum":"cac383b24ace04b18b919deab773462b03d3d7b0","size":3276,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-1.1.0.tgz"},"directories":{},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_1.1.0_1617744943808_0.2777900114944716"},"_hasShrinkwrap":false,"publish_time":1617744944054,"_cnpm_publish_time":1617744944054,"_cnpmcore_publish_time":"2021-12-17T00:23:44.560Z"},"1.0.0":{"name":"@digitalbazaar/http-client","version":"1.0.0","description":"An opinionated, isomorphic HTTP client.","license":"BSD-3-Clause","main":"index.js","scripts":{"test":"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":"cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node","coverage-ci":"cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node","coverage-report":"nyc report","lint":"eslint ."},"dependencies":{"esm":"^3.2.22","ky":"^0.20.0","ky-universal":"^0.7.0"},"devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-transform-modules-commonjs":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.10.2","@babel/runtime":"^7.10.2","chai":"^4.2.0","cross-env":"^7.0.2","detect-node":"^2.0.4","eslint":"^7.2.0","eslint-config-digitalbazaar":"^2.5.0","karma":"^5.0.9","karma-babel-preprocessor":"^8.0.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.2","mocha":"^7.2.0","nyc":"^15.1.0","webpack":"^4.43.0"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/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/digitalbazaar/http-client/issues"},"homepage":"https://github.com/digitalbazaar/http-client","module":"main.js","engines":{"node":">=10.0.0"},"nyc":{"exclude":["tests"]},"gitHead":"dde5880fb803881c8eccd398701796d7fc5d3030","_id":"@digitalbazaar/http-client@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"shasum":"babd6914597a74d5c9f5186e01fc0a9b985114be","size":3190,"noattachment":false,"key":"/@digitalbazaar/http-client/-/@digitalbazaar/http-client-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@digitalbazaar/http-client/download/@digitalbazaar/http-client-1.0.0.tgz"},"maintainers":[{"name":"davidlehn","email":""},{"name":"dlongley","email":""},{"name":"msporny","email":""}],"_npmUser":{"name":"mattcollier","email":"mcollier@digitalbazaar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_1.0.0_1592500137417_0.40959933176721264"},"_hasShrinkwrap":false,"publish_time":1592500137605,"_cnpm_publish_time":1592500137605,"_cnpmcore_publish_time":"2021-12-17T00:23:44.751Z"}},"readme":"# http-client\nAn opinionated, isomorphic HTTP client.\n\n### Usage\n\n#### Import httpClient\n```js\nimport https from 'https';\nimport {httpClient} from '@digitalbazaar/http-client';\n```\n\n#### Import and initialize a custom Bearer Token client\n```js\nimport {httpClient} from '@digitalbazaar/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 a 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 a 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","_attachments":{},"homepage":"https://github.com/digitalbazaar/http-client","bugs":{"url":"https://github.com/digitalbazaar/http-client/issues"},"license":"BSD-3-Clause"}