{"_id":"exponential-backoff","_rev":"4130857","name":"exponential-backoff","description":"A utility that allows retrying a function with an exponential delay between attempts.","dist-tags":{"latest":"3.1.3"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"time":{"modified":"2026-03-01T18:33:01.000Z","created":"2018-07-06T19:14:56.577Z","3.1.3":"2025-10-10T23:10:07.816Z","3.1.2":"2025-02-06T20:05:56.530Z","3.1.1":"2023-02-20T17:39:13.327Z","3.1.0":"2020-08-06T01:37:48.076Z","3.0.1":"2020-06-06T17:02:53.061Z","3.0.0":"2020-04-05T03:17:29.709Z","2.2.1":"2020-03-20T03:19:53.513Z","2.2.0":"2019-11-04T16:32:59.058Z","2.1.1":"2019-03-23T01:08:15.154Z","2.1.0":"2019-02-16T15:22:51.331Z","2.0.0":"2019-02-09T19:16:06.165Z","1.2.0":"2019-02-07T17:04:16.809Z","1.0.7":"2018-07-09T14:47:17.802Z","1.0.6":"2018-07-08T03:05:47.667Z","1.0.5":"2018-07-06T20:01:58.789Z","1.0.4":"2018-07-06T19:57:50.738Z","1.0.3":"2018-07-06T19:31:55.841Z","1.0.2":"2018-07-06T19:14:56.577Z"},"users":{},"author":{"name":"Sami Sayegh"},"repository":{"type":"git","url":"git+https://github.com/coveooss/exponential-backoff.git"},"versions":{"3.1.3":{"name":"exponential-backoff","version":"3.1.3","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveooss/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveooss/exponential-backoff/issues"},"homepage":"https://github.com/coveooss/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"_id":"exponential-backoff@3.1.3","gitHead":"5622170828bd91dc149585bfa3d82c8972a75ac5","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"shasum":"51cf92c1c0493c766053f9d3abee4434c244d2f6","size":15151,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-3.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-3.1.3.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:147ba6a6-2138-4282-911a-04e808e82b5a"}},"directories":{},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exponential-backoff_3.1.3_1760137807638_0.44791647196804507"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-10T23:10:07.816Z","publish_time":1760137807816,"_source_registry_name":"default","_cnpm_publish_time":1760137807816},"3.1.2":{"name":"exponential-backoff","version":"3.1.2","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveooss/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveooss/exponential-backoff/issues"},"homepage":"https://github.com/coveooss/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"_id":"exponential-backoff@3.1.2","gitHead":"70bdff6d7e21d5d30de874df5d0e16511f147f1d","_nodeVersion":"18.20.6","_npmVersion":"10.8.2","dist":{"shasum":"a8f26adb96bf78e8cd8ad1037928d5e5c0679d91","size":15150,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-3.1.2.tgz"},"_npmUser":{"name":"sssayegh","email":"ssayegh@coveo.com"},"directories":{},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exponential-backoff_3.1.2_1738872356331_0.8379364145477888"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-06T20:05:56.530Z","publish_time":1738872356530,"_source_registry_name":"default","_cnpm_publish_time":1738872356530},"3.1.1":{"name":"exponential-backoff","version":"3.1.1","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"gitHead":"47b552aa6007a1320e851118d638a476cf765516","_id":"exponential-backoff@3.1.1","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"shasum":"64ac7526fe341ab18a39016cd22c787d01e00bf6","size":11171,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-3.1.1.tgz"},"_npmUser":{"name":"sssayegh","email":"ssayegh@coveo.com"},"directories":{},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_3.1.1_1676914753100_0.9897631504405433"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-20T17:39:13.327Z","publish_time":1676914753327,"_cnpm_publish_time":1676914753327},"3.1.0":{"name":"exponential-backoff","version":"3.1.0","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"gitHead":"085a97294520b2c2150ee4cbf32955c892812677","_id":"exponential-backoff@3.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo-organization","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"9409c7e579131f8bd4b32d7d8094a911040f2e68","size":11577,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-3.1.0.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_3.1.0_1596677867944_0.47548900717885645"},"_hasShrinkwrap":false,"publish_time":1596677868076,"_cnpm_publish_time":1596677868076,"_cnpmcore_publish_time":"2021-12-16T17:22:15.986Z"},"3.0.1":{"name":"exponential-backoff","version":"3.0.1","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"gitHead":"ea476ef56b163b87754a40693dea6e3ab53933ed","_id":"exponential-backoff@3.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"c83c5036fea44bcf7274cd40ae207ae234a0c215","size":11536,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-3.0.1.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_3.0.1_1591462972920_0.07935891686982655"},"_hasShrinkwrap":false,"publish_time":1591462973061,"_cnpm_publish_time":1591462973061,"_cnpmcore_publish_time":"2021-12-16T17:22:16.166Z"},"3.0.0":{"name":"exponential-backoff","version":"3.0.0","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"gitHead":"2adf902c3c532b958ed1a891df8e88e8c08d67a2","_id":"exponential-backoff@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"f1436e719cdce67e63799544024b4f43c4948e8c","size":11529,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-3.0.0.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_3.0.0_1586056649566_0.797903928930046"},"_hasShrinkwrap":false,"publish_time":1586056649709,"_cnpm_publish_time":1586056649709,"_cnpmcore_publish_time":"2021-12-16T17:22:16.424Z"},"2.2.1":{"name":"exponential-backoff","version":"2.2.1","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"gitHead":"de279bc9447f025ac460b967955af3f2a268156e","_id":"exponential-backoff@2.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"ea3937ce2cc22442547c02579690c1466bd42156","size":11566,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-2.2.1.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_2.2.1_1584674393354_0.7785820462652746"},"_hasShrinkwrap":false,"publish_time":1584674393513,"_cnpm_publish_time":1584674393513,"_cnpmcore_publish_time":"2021-12-16T17:22:16.754Z"},"2.2.0":{"name":"exponential-backoff","version":"2.2.0","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.18","@types/node":"^10.14.21","husky":"^3.0.9","jest":"^24.9.0","lint-staged":"^9.4.2","prettier":"^1.18.2","ts-jest":"^24.1.0","typescript":"^3.6.4"},"gitHead":"0e1508881f35835e37a534745cfde662fa693397","_id":"exponential-backoff@2.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"66bd0e6e574f045cb71562332031c3588306eabd","size":11565,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-2.2.0.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_2.2.0_1572885178933_0.5338163564151102"},"_hasShrinkwrap":false,"publish_time":1572885179058,"_cnpm_publish_time":1572885179058,"_cnpmcore_publish_time":"2021-12-16T17:22:16.983Z"},"2.1.1":{"name":"exponential-backoff","version":"2.1.1","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.0","@types/node":"^10.12.24","husky":"^1.3.1","jest":"^24.1.0","lint-staged":"^8.1.3","prettier":"^1.16.4","ts-jest":"^23.10.5","typescript":"^3.3.3"},"gitHead":"e80a896eb8a631a66b56623ec3cf4c27ccc05c70","_id":"exponential-backoff@2.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"acaec650b7dc5f52a5ca87b3cb931b025b1640ff","size":11310,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-2.1.1.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_2.1.1_1553303295022_0.46190891705941683"},"_hasShrinkwrap":false,"publish_time":1553303295154,"_cnpm_publish_time":1553303295154,"_cnpmcore_publish_time":"2021-12-16T17:22:17.189Z"},"2.1.0":{"name":"exponential-backoff","version":"2.1.0","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.0","@types/node":"^10.12.24","husky":"^1.3.1","jest":"^24.1.0","lint-staged":"^8.1.3","prettier":"^1.16.4","ts-jest":"^23.10.5","typescript":"^3.3.3"},"gitHead":"f364dcaea7417fb046cdb8798e455dc974ba2b01","_id":"exponential-backoff@2.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"5255ac6ed645f5b03d1cc8a02c4eb3d604ce06e5","size":8054,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-2.1.0.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_2.1.0_1550330571193_0.25643656303238016"},"_hasShrinkwrap":false,"publish_time":1550330571331,"_cnpm_publish_time":1550330571331,"_cnpmcore_publish_time":"2021-12-16T17:22:17.434Z"},"2.0.0":{"name":"exponential-backoff","version":"2.0.0","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache-2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^24.0.0","@types/node":"^10.12.24","husky":"^1.3.1","jest":"^24.1.0","lint-staged":"^8.1.3","prettier":"^1.16.4","ts-jest":"^23.10.5","typescript":"^3.3.3"},"gitHead":"7f30fc74c1267a12c47e13b0a2f156cc534d9225","_id":"exponential-backoff@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"d7300b1c3529a6f9ff699bc27f7ce9939569678e","size":2227,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-2.0.0.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_2.0.0_1549739766045_0.08421184819923"},"_hasShrinkwrap":false,"publish_time":1549739766165,"deprecated":"missing distribution files","_cnpm_publish_time":1549739766165,"_cnpmcore_publish_time":"2021-12-16T17:22:17.645Z"},"1.2.0":{"name":"exponential-backoff","version":"1.2.0","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest","test:watch":"jest --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"Apache 2.0","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.6.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"322791d52d9fd6fc6592e1ea7ea82cd27619af60","_id":"exponential-backoff@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"065f39428f293ae4458efd375f9e297ee80bae20","size":2038,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.2.0.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.2.0_1549559056441_0.15477201968371435"},"_hasShrinkwrap":false,"publish_time":1549559056809,"deprecated":"missing distribution files","_cnpm_publish_time":1549559056809,"_cnpmcore_publish_time":"2021-12-16T17:22:17.878Z"},"1.0.7":{"name":"exponential-backoff","version":"1.0.7","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"MIT","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"ecf7d1dad1235a5f686edd30df3297b9b817de6a","_id":"exponential-backoff@1.0.7","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"0e7302c022cc184e6599bfd3b2475f09ee30d66d","size":4025,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.0.7.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.0.7_1531147637712_0.42953850143360306"},"_hasShrinkwrap":false,"publish_time":1531147637802,"_cnpm_publish_time":1531147637802,"_cnpmcore_publish_time":"2021-12-16T17:22:18.106Z"},"1.0.6":{"name":"exponential-backoff","version":"1.0.6","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"MIT","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"6812932b6b313b03e2fd24e462d760d529304dd0","_id":"exponential-backoff@1.0.6","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"a2a68006cf932e83c4441512fc508a4b1e1b20ee","size":4008,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.0.6.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.0.6_1531019147588_0.5256082320607378"},"_hasShrinkwrap":false,"publish_time":1531019147667,"_cnpm_publish_time":1531019147667,"_cnpmcore_publish_time":"2021-12-16T17:22:18.320Z"},"1.0.5":{"name":"exponential-backoff","version":"1.0.5","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"MIT","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"5a9652142203095ac75b8dc3fa6736dd9a7ec0e5","_id":"exponential-backoff@1.0.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"bc2efab67b946424cf53b7ab117a59ebe78cb920","size":3644,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.0.5.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.0.5_1530907318673_0.6259392282958995"},"_hasShrinkwrap":false,"publish_time":1530907318789,"_cnpm_publish_time":1530907318789,"_cnpmcore_publish_time":"2021-12-16T17:22:18.658Z"},"1.0.4":{"name":"exponential-backoff","version":"1.0.4","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"MIT","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"497e755a9d8ff5aff199fd442b5bae1de6fd1dab","_id":"exponential-backoff@1.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"c4daed78ac0c4edd7f4fe3f807d8080f36a79d2e","size":1357,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.0.4.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.0.4_1530907070666_0.08801442882746713"},"_hasShrinkwrap":false,"publish_time":1530907070738,"_cnpm_publish_time":1530907070738,"_cnpmcore_publish_time":"2021-12-16T17:22:18.900Z"},"1.0.3":{"name":"exponential-backoff","version":"1.0.3","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"MIT","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"ec98875ef624cba47ccb63c19406148797a58849","_id":"exponential-backoff@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"7d6b5000f7b74a78b355298d7471146e0b90727b","size":1361,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.0.3.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.0.3_1530905515786_0.0044678065214354135"},"_hasShrinkwrap":false,"publish_time":1530905515841,"_cnpm_publish_time":1530905515841,"_cnpmcore_publish_time":"2021-12-16T17:22:19.107Z"},"1.0.2":{"name":"exponential-backoff","version":"1.0.2","description":"A utility that allows retrying a function with an exponential delay between attempts.","main":"dist/backoff.js","types":"dist/backoff.d.ts","scripts":{"build":"tsc","test":"jest"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,json,md}":["prettier --write","git add"]},"jest":{"transform":{"^.+\\.ts$":"ts-jest"},"testRegex":"\\.spec\\.ts$","moduleFileExtensions":["ts","js"]},"repository":{"type":"git","url":"git+https://github.com/coveo/exponential-backoff.git"},"keywords":["exponential","backoff","retry"],"author":{"name":"Sami Sayegh"},"license":"MIT","bugs":{"url":"https://github.com/coveo/exponential-backoff/issues"},"homepage":"https://github.com/coveo/exponential-backoff#readme","devDependencies":{"@types/jest":"^23.1.4","@types/node":"^10.5.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^7.2.0","prettier":"^1.13.7","ts-jest":"^23.0.0","typescript":"^2.9.2"},"gitHead":"d428482556b175fb77e3df8b533df0854f91b48f","_id":"exponential-backoff@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"coveo","email":"sandbox_JSUI@coveo.com"},"dist":{"shasum":"1ebdc70047d7cffb331b6d322abf05be535acad6","size":3801,"noattachment":false,"key":"/exponential-backoff/-/exponential-backoff-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/exponential-backoff/download/exponential-backoff-1.0.2.tgz"},"maintainers":[{"name":"coveo-organization","email":""},{"name":"coveoit","email":""},{"name":"npmcoveo","email":""},{"name":"oa-npmcoveo","email":""},{"name":"pixhel","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exponential-backoff_1.0.2_1530904496494_0.7217311129828938"},"_hasShrinkwrap":false,"publish_time":1530904496577,"_cnpm_publish_time":1530904496577,"_cnpmcore_publish_time":"2021-12-16T17:22:19.346Z"}},"readme":"# exponential-backoff\n\nA utility that allows retrying a function with an exponential delay between attempts.\n\n## Installation\n\n```\nnpm i exponential-backoff\n```\n\n## Usage\n\nThe `backOff<T>` function takes a promise-returning function to retry, and an optional `BackOffOptions` object. It returns a `Promise<T>`.\n\n```ts\nfunction backOff<T>(\n  request: () => Promise<T>,\n  options?: BackOffOptions\n): Promise<T>;\n```\n\nHere is an example retrying a function that calls a hypothetical weather endpoint:\n\n```js\nimport { backOff } from \"exponential-backoff\";\n\nfunction getWeather() {\n  return fetch(\"weather-endpoint\");\n}\n\nasync function main() {\n  try {\n    const response = await backOff(() => getWeather());\n    // process response\n  } catch (e) {\n    // handle error\n  }\n}\n\nmain();\n```\n\nMigrating across major versions? Here are our [breaking changes](https://github.com/coveo/exponential-backoff/tree/master/doc/migration-guide.md).\n\n### `BackOffOptions`\n\n- `delayFirstAttempt?: boolean`\n\n  Decides whether the `startingDelay` should be applied before the first call. If `false`, the first call will occur without a delay.\n\n  Default value is `false`.\n\n- `jitter?: JitterType | string`\n\n  Decides whether a [jitter](https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/) should be applied to the delay. Possible values are `full` and `none`.\n\n  Default value is `none`.\n\n- `maxDelay?: number`\n\n  The maximum delay, in milliseconds, between two consecutive attempts.\n\n  Default value is `Infinity`.\n\n- `numOfAttempts?: number`\n\n  The maximum number of times to attempt the function.\n\n  Default value is `10`.\n\n  Minimum value is `1`.\n\n- `retry?: (e: any, attemptNumber: number) => boolean | Promise<boolean>`\n\n  The `retry` function can be used to run logic after every failed attempt (e.g. logging a message, assessing the last error, etc.). It is called with the last error and the upcoming attempt number. Returning `true` will retry the function as long as the `numOfAttempts` has not been exceeded. Returning `false` will end the execution.\n\n  Default value is a function that always returns `true`.\n\n- `startingDelay?: number`\n\n  The delay, in milliseconds, before executing the function for the first time.\n\n  Default value is `100` ms.\n\n- `timeMultiple?: number`\n\n  The `startingDelay` is multiplied by the `timeMultiple` to increase the delay between reattempts.\n\n  Default value is `2`.\n","_attachments":{},"homepage":"https://github.com/coveooss/exponential-backoff#readme","bugs":{"url":"https://github.com/coveooss/exponential-backoff/issues"},"license":"Apache-2.0"}