Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

exponential-backoff

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exponential-backoff - npm Package Compare versions

Comparing version 1.0.7 to 1.2.0

9

package.json
{
"name": "exponential-backoff",
"version": "1.0.7",
"version": "1.2.0",
"description": "A utility that allows retrying a function with an exponential delay between attempts.",

@@ -9,3 +9,4 @@ "main": "dist/backoff.js",

"build": "tsc",
"test": "jest"
"test": "jest",
"test:watch": "jest --watch"
},

@@ -43,3 +44,3 @@ "husky": {

"author": "Sami Sayegh",
"license": "MIT",
"license": "Apache 2.0",
"bugs": {

@@ -53,3 +54,3 @@ "url": "https://github.com/coveo/exponential-backoff/issues"

"husky": "^0.14.3",
"jest": "^23.3.0",
"jest": "^23.6.0",
"lint-staged": "^7.2.0",

@@ -56,0 +57,0 @@ "prettier": "^1.13.7",

@@ -29,2 +29,14 @@ # exponential-backoff

### `IBackOffOptions`
* `delayFirstAttempt?: boolean`
Decides whether the `startingDelay` should be applied before the first call to `fn`. If `false`, the first call to `fn` will occur without a delay.
Default value is `true`.
* `jitter?: JitterType | string`
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`.
Default value is `none`.
* `numOfAttempts?: number`

@@ -31,0 +43,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc