promise-again
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "promise-again", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"main": "./dist/umd/index.js", | ||
"module": "./dist/es6/index.js", | ||
"license": "MIT", | ||
"keywords": [ | ||
"promise", | ||
"again", | ||
"retry", | ||
"typescript", | ||
"ts", | ||
"delay", | ||
"pause", | ||
"attempt" | ||
], | ||
"dependencies": { | ||
@@ -8,0 +18,0 @@ "delay": "^2.0.0" |
@@ -10,3 +10,3 @@ # promise-again | ||
``` | ||
```javascript | ||
import promiseAgain from 'promise-again'; | ||
@@ -34,3 +34,3 @@ | ||
**/ | ||
delay: number | ((attempt: number, ...args: any[]) => number | Promise<number>); | ||
delay: 1000, /*number | ((attempt: number, ...args: any[]) => number | Promise<number>)*/ | ||
@@ -46,3 +46,3 @@ /** | ||
**/ | ||
attempts: number | ((attempt: number, ...args: any[]) => boolean | Promise<boolean>); | ||
attempts: 10, /*number | ((attempt: number, ...args: any[]) => boolean | Promise<boolean>);*/ | ||
@@ -58,6 +58,8 @@ /** | ||
**/ | ||
retryArgumentsInterceptor: (reason: any, attempt: number, ...args: any[]) => any[] | Promise<any[]>; | ||
retryArgumentsInterceptor: (reason, attempt, ...args) => args /*(reason: any, attempt: number, ...args: any[]) => any[] | Promise<any[]>;*/ | ||
} | ||
) | ||
wrappedFunction().then(); | ||
``` |
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
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
57115
62