{"_id":"@adobe/node-fetch-retry","_rev":"2635537","name":"@adobe/node-fetch-retry","description":"Library for performing retries on HTTP requests","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"time":{"modified":"2022-01-24T22:01:23.000Z","created":"2020-04-23T21:03:11.401Z","2.1.0":"2022-01-24T21:59:27.517Z","2.0.0":"2021-10-26T20:56:42.953Z","1.1.3":"2021-10-22T17:11:33.579Z","1.1.2":"2021-10-07T19:34:35.421Z","1.1.1":"2021-05-03T23:32:53.468Z","1.1.0":"2020-10-23T22:37:14.438Z","1.0.1":"2020-04-23T22:36:16.394Z","1.0.0":"2020-04-23T21:03:11.401Z"},"users":{},"author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"versions":{"2.1.0":{"name":"@adobe/node-fetch-retry","version":"2.1.0","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.1"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.3.3","@semantic-release/git":"^9.0.0","codecov":"^3.8.1","conventional-changelog-eslint":"^3.0.9","eslint":"^6.8.0","get-port":"^5.1.1","license-checker":"^25.0.1","mocha":"^8.3.2","nock":"^13.0.4","nyc":"^15.1.0","rewire":"^5.0.0","semantic-release":"^17.4.7"},"keywords":["fetch","retry","adobe","http","node-fetch"],"scripts":{"test":"nyc mocha --recursive --exit","posttest":"eslint . && license-checker --summary","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","beautify":"eslint . --fix","semantic-release":"semantic-release"},"types":"./index.d.ts","gitHead":"aaf1b7195df05fa1ad3a63bc7086395efb21b143","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@2.1.0","_nodeVersion":"12.19.1","_npmVersion":"7.24.1","dist":{"shasum":"1b3173ad1cac3fd1297fa02a08047f7f52400db3","size":11349,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-2.1.0.tgz"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"directories":{},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_2.1.0_1643061567357_0.5980703611799174"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-24T21:59:39.314Z","publish_time":1643061567517,"_cnpm_publish_time":1643061567517},"2.0.0":{"name":"@adobe/node-fetch-retry","version":"2.0.0","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.1"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.3.3","@semantic-release/git":"^9.0.0","codecov":"^3.8.1","conventional-changelog-eslint":"^3.0.9","eslint":"^6.8.0","get-port":"^5.1.1","license-checker":"^25.0.1","mocha":"^8.3.2","nock":"^13.0.4","nyc":"^15.1.0","rewire":"^5.0.0","semantic-release":"^17.4.7"},"keywords":["fetch","retry","adobe","http","node-fetch"],"scripts":{"test":"nyc mocha --recursive --exit","posttest":"eslint . && license-checker --summary","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","beautify":"eslint . --fix","semantic-release":"semantic-release"},"gitHead":"531f3e8553f2e8392e78a52915bb0ec9043da35c","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@2.0.0","_nodeVersion":"12.19.1","_npmVersion":"7.24.1","dist":{"shasum":"760a042580f06c776442735c6d459c7feae5aaf7","size":11159,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-2.0.0.tgz"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"directories":{},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_2.0.0_1635281802803_0.5363953233526544"},"_hasShrinkwrap":false,"publish_time":1635281802953,"_cnpm_publish_time":1635281802953},"1.1.3":{"name":"@adobe/node-fetch-retry","version":"1.1.3","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.1"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.3.3","@semantic-release/git":"^9.0.0","codecov":"^3.8.1","conventional-changelog-eslint":"^3.0.9","eslint":"^6.8.0","get-port":"^5.1.1","license-checker":"^25.0.1","mocha":"^8.3.2","nock":"^13.0.4","nyc":"^15.1.0","rewire":"^5.0.0","semantic-release":"^17.4.7"},"keywords":["fetch","retry","adobe","http","node-fetch"],"scripts":{"test":"nyc mocha --recursive --exit","posttest":"eslint . && license-checker --summary","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","beautify":"eslint . --fix","semantic-release":"semantic-release"},"gitHead":"48755df4aa7e86fca62ad1e70218cf9a894dfa10","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@1.1.3","_nodeVersion":"12.19.1","_npmVersion":"7.24.1","dist":{"shasum":"8db702399b9d9657b30b61b4c8ac06e0ffe9e85a","size":10927,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-1.1.3.tgz"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"directories":{},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_1.1.3_1634922693396_0.08584319054674894"},"_hasShrinkwrap":false,"publish_time":1634922693579,"_cnpm_publish_time":1634922693579},"1.1.2":{"name":"@adobe/node-fetch-retry","version":"1.1.2","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.1"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.3.3","@semantic-release/git":"^9.0.0","codecov":"^3.8.1","conventional-changelog-eslint":"^3.0.9","eslint":"^6.8.0","get-port":"^5.1.1","license-checker":"^25.0.1","mocha":"^8.3.2","nock":"^13.0.4","nyc":"^15.1.0","rewire":"^5.0.0","semantic-release":"^17.4.7"},"keywords":["fetch","retry","adobe","http","node-fetch"],"scripts":{"test":"nyc mocha --recursive --exit","posttest":"eslint . && license-checker --summary","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","beautify":"eslint . --fix","semantic-release":"semantic-release"},"gitHead":"587eb644abb9e359ccef0b0f553533be2e160a1d","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@1.1.2","_nodeVersion":"12.19.1","_npmVersion":"7.24.1","dist":{"shasum":"bf410dc82fe2f02d475dbfc6f3b9412314244249","size":10817,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-1.1.2.tgz"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"directories":{},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_1.1.2_1633635275256_0.2315999726432243"},"_hasShrinkwrap":false,"publish_time":1633635275421,"_cnpm_publish_time":1633635275421},"1.1.1":{"name":"@adobe/node-fetch-retry","version":"1.1.1","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.1"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.3.1","@semantic-release/git":"^9.0.0","codecov":"^3.8.1","conventional-changelog-eslint":"^3.0.9","eslint":"^7.22.0","get-port":"^5.1.1","license-checker":"^25.0.1","mocha":"^8.3.2","nock":"^13.0.4","nyc":"^15.1.0","rewire":"^5.0.0","semantic-release":"^17.2.1"},"keywords":["fetch","retry","adobe","http","node-fetch"],"scripts":{"test":"nyc mocha --recursive --exit","posttest":"eslint . && license-checker --summary","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","beautify":"eslint . --fix","semantic-release":"semantic-release"},"gitHead":"68382564999d7ae71e398e687b5acb4db121cdf7","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@1.1.1","_nodeVersion":"12.19.1","_npmVersion":"6.14.8","dist":{"shasum":"d4f23c520953b998e72ea7bdf0d782b63fa067db","size":10399,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-1.1.1.tgz"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"directories":{},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_1.1.1_1620084773365_0.29138747968913536"},"_hasShrinkwrap":false,"publish_time":1620084773468,"_cnpm_publish_time":1620084773468},"1.1.0":{"name":"@adobe/node-fetch-retry","version":"1.1.0","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"abort-controller":"^3.0.0","node-fetch":"^2.6.1"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.3.0","@semantic-release/git":"^9.0.0","codecov":"^3.7.2","conventional-changelog-eslint":"^3.0.8","eslint":"^7.9.0","get-port":"^5.1.1","license-checker":"^25.0.1","mocha":"^8.1.3","nock":"^13.0.4","nyc":"^15.1.0","rewire":"^5.0.0","semantic-release":"^17.2.1"},"keywords":["fetch","retry","adobe","http","node-fetch"],"scripts":{"test":"nyc mocha --recursive --exit","posttest":"eslint . && license-checker --summary","report-coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","beautify":"eslint . --fix"},"gitHead":"d05a3787ad5cdacfe4240ec3f51108bbaf603952","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@1.1.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"7a5161932f9d936458af28f62bc6c935d07152e9","size":10434,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-1.1.0.tgz"},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_1.1.0_1603492634291_0.9719205198740637"},"_hasShrinkwrap":false,"publish_time":1603492634438,"_cnpm_publish_time":1603492634438},"1.0.1":{"name":"@adobe/node-fetch-retry","version":"1.0.1","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"license":"Apache-2.0","dependencies":{"node-fetch-npm":"^2.0.3"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.0.0","eslint":"^6.8.0","get-port":"^5.1.1","mocha":"^7.1.1","nock":"^12.0.3","nyc":"^15.0.0","rewire":"^5.0.0"},"scripts":{"test":"nyc --reporter=html --reporter=text ./node_modules/.bin/mocha ./test --recursive --exit","posttest":"eslint ./"},"gitHead":"1b79c16da14882ad151853968bbdb448fc9ddcdd","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@1.0.1","_nodeVersion":"13.8.0","_npmVersion":"6.14.4","dist":{"shasum":"b5328b3fba7486938b69ff42adc93cbeaeca46fc","size":9528,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-1.0.1.tgz"},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmUser":{"name":"jdelbick","email":"jamie.delbick@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_1.0.1_1587681376245_0.15421355290590721"},"_hasShrinkwrap":false,"publish_time":1587681376394,"_cnpm_publish_time":1587681376394},"1.0.0":{"name":"@adobe/node-fetch-retry","version":"1.0.0","main":"index.js","description":"Library for performing retries on HTTP requests","author":{"name":"Adobe Inc."},"repository":{"type":"git","url":"git+https://github.com/adobe/node-fetch-retry.git"},"dependencies":{"node-fetch-npm":"^2.0.3"},"devDependencies":{"@adobe/eslint-config-asset-compute":"^1.0.0","eslint":"^6.8.0","get-port":"^5.1.1","mocha":"^7.1.1","nock":"^12.0.3","nyc":"^15.0.0","rewire":"^5.0.0"},"scripts":{"test":"nyc --reporter=html --reporter=text ./node_modules/.bin/mocha ./test --recursive --exit","posttest":"eslint ./"},"gitHead":"f4aed33e93357951f0e965ed3cb10a8dd0ce7224","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"homepage":"https://github.com/adobe/node-fetch-retry#readme","_id":"@adobe/node-fetch-retry@1.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.14.4","dist":{"shasum":"750f0104dc7a8d26987299d199ed3dd86b281814","size":9470,"noattachment":false,"key":"/@adobe/node-fetch-retry/-/@adobe/node-fetch-retry-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@adobe/node-fetch-retry/download/@adobe/node-fetch-retry-1.0.0.tgz"},"maintainers":[{"name":"adobe-admin","email":"csutter@adobe.com"},{"name":"aspro83","email":""},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"patrickfulton","email":"fulton@seesparkbox.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"}],"_npmUser":{"name":"jdelbick","email":"jamie.delbick@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-fetch-retry_1.0.0_1587675791206_0.9868766147017785"},"_hasShrinkwrap":false,"publish_time":1587675791401,"_cnpm_publish_time":1587675791401}},"readme":"[![Version](https://img.shields.io/npm/v/@adobe/node-fetch-retry.svg)](https://npmjs.org/package/@adobe/node-fetch-retry)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Travis](https://travis-ci.com/adobe/node-fetch-retry.svg?branch=master)](https://travis-ci.com/adobe/node-fetch-retry)\n\n# node-fetch-retry\n\nNode Module for performing retries for HTTP requests.\n\nIt is a wrapper around [`node-fetch`](https://github.com/node-fetch/node-fetch) library. It has default retry logic built in as described below, as well as configurable parameters. It also has built-in support for Apache OpenWhisk actions, adjusting the timeout to reflect the action timeout.\n\n## Installation\n\n```bash\nnpm install @adobe/node-fetch-retry\n```\n\n## Usage\n\nThis library works the same as the normal [`fetch api`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API), but with some added features. \n\n### Default Behavior\n\nWithout configuring any parameters, the retry behavior will be as follows:\n- retry for 60s\n- retry inital delay of 100ms with exponential backoff, configurable as a multiplier defaulting to 2\n- retry only on 5xx response\n- retry on all FetchError system errors\n   - see node-fetch error handling: https://github.com/node-fetch/node-fetch/blob/main/docs/ERROR-HANDLING.md\n- socket timeout of 30s\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url);\n}\n```\n\nThis example uses only custom headers and will use default retry settings:\n\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        headers: {\n            'custom-header': '<<put custom header value here>>'\n        }\n    });\n}\n```\n\n### Optional Custom Parameters\n\nAll the retry options are configurable and can be set in `retryOptions` in the `options` object passed to `fetch`.\n\n| Parameter | Format | Description | Environment variable | Default Value |\n| --------- | ------ | ----------- | -------------------- | ------------- |\n| `retryMaxDuration` | Number | time in milliseconds to retry until throwing an error | `NODE_FETCH_RETRY_MAX_RETRY` | 60000 ms |\n| `retryInitialDelay` | Number | time in milliseconds to wait between retries |`NODE_FETCH_RETRY_INITIAL_WAIT` | 100 ms |\n| `retryBackoff` | Number | backoff factor for wait time between retries | `NODE_FETCH_RETRY_BACKOFF` | 2.0 |\n| `retryOnHttpResponse` | Function | a *function* determining whether to retry given the HTTP response | none | retry on all 5xx errors|\n| `retryOnHttpError` | Function | a *function* determining whether to retry given the HTTP error exception thrown | none | retry on all `FetchError`'s of type `system`|\n| `socketTimeout` | Number | time until socket timeout in milliseconds. _Note: if `socketTimeout` is >= `retryMaxDuration`, it will automatically adjust the socket timeout to be exactly half of the `retryMaxDuration`. To disable this feature, see `forceSocketTimeout` below_ | `NODE_FETCH_RETRY_SOCKET_TIMEOUT` | 30000 ms |\n| `forceSocketTimeout` | Boolean | If true, socket timeout will be forced to use `socketTimeout` property declared regardless of the `retryMaxDuration`. _Note: this feature was designed to help with unit testing and is not intended to be used in practice_ | `NODE_FETCH_RETRY_FORCE_TIMEOUT` | false |\n\n_Note: the environment variables override the default values if the corresponding parameter is not set. These are designed to help with unit testing. Passed in parameters will still override the environment variables_\n\n### Custom Parameter Examples\n\nThis example decreases the `retryMaxDuration` and makes the retry delay a static 500ms. This will do no more than 4 retries.\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        retryOptions: {\n            retryMaxDuration: 2000,  // 30s retry max duration\n            retryInitialDelay: 500,\n            retryBackoff: 1.0 // no backoff\n        }\n    });\n}\n```\n\nThis example shows how to configure retries on specific HTTP responses:\n\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        retryOptions: {\n            retryOnHttpResponse: function (response) {\n                if ( (response.status >= 500) || response.status >= 400) { // retry on all 5xx and all 4xx errors\n                    return true;\n                }\n            }\n        }\n    });\n}\n```\n\nThis example uses custom `socketTimeout` values:\n\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        retryOptions: {\n            retryMaxDuration: 300000, // 5min retry duration\n            socketTimeout: 60000, //  60s socket timeout\n        }\n    });\n}\n```\n\nThis example uses custom `socketTimeout` values and custom headers:\n\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        retryOptions: {\n            retryMaxDuration: 300000, // 5min retry duration\n            socketTimeout: 60000, //  60s socket timeout\n        },\n        headers: {\n            'custom-header': '<<put custom header value here>>'\n        }\n    });\n}\n```\nThis example shows how to retry on all HTTP errors thrown as an exception:\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        retryOptions: {\n            retryOnHttpError: function (error) {\n                return true;\n            }\n        }\n    });\n}\n```\n\n\n### Disable Retry\n\nYou can disable all retry behavior by setting `retryOptions` to `false`.\n\n```js\nconst fetch = require('@adobe/node-fetch-retry');\n\nasync main() {\n    const response = await fetch(url, {\n        retryOptions: false\n    });\n}\n```\n\nDisabling retry behavior will not prevent the usage of other options set on the `options` object.\n\n### Additional notes on retry duration\n\nIf the fetch is unsucessful, the retry logic determines how long it will wait before the next attempt.  If the time remaining will exceed the total time allowed by retryMaxDuration then another attempt will not be made.  There are examples of how this works in the testing code.\n\n### Apache OpenWhisk Action Support\n\nIf you are running this in the context of an OpenWhisk action, it will take into account the action timeout deadline when setting the `retryMaxDuration`. It uses the `__OW_ACTION_DEADLINE` environment variable to determine if there is an action running.\n\nBehavior:\nIf `retryMaxDuration` is greater than the time till the action will timeout, it will adjust the `retryMaxDuration` to be equal to the time till action timeout.\n\n### Contributing\nContributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","_attachments":{},"homepage":"https://github.com/adobe/node-fetch-retry#readme","bugs":{"url":"https://github.com/adobe/node-fetch-retry/issues"},"license":"Apache-2.0"}