exponential-backoff
Advanced tools
Comparing version 1.0.7 to 1.2.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59
4156
3
1
0
1
1