Comparing version 1.4.3 to 1.4.4
declare interface AsyncRetryable { | ||
executeForPromise(fn: Function): any | ||
executeForNode(fn: Function): any | ||
executeForPromise<T>(fn: (any) => Promise<T>): Promise<T> | ||
executeForNode(fn: (err?: object, data?: any) => any, cb?: (err?: object, data?: any) => any): void | ||
} | ||
@@ -11,5 +11,6 @@ | ||
declare interface Polly { | ||
handle(fn: Function): Polly | ||
retry(): Retryable | ||
waitAndRetry(delays:any): AsyncRetryable | ||
handle(fn: (err: any) => boolean): Polly | ||
retry(numRetries: number): Retryable | ||
waitAndRetry(delays: number[]): AsyncRetryable | ||
waitAndRetry(numRetries : number): AsyncRetryable | ||
} | ||
@@ -16,0 +17,0 @@ |
{ | ||
"name": "polly-js", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Transient exception handling", | ||
@@ -32,11 +32,11 @@ "main": "src/polly.js", | ||
"devDependencies": { | ||
"chai": "3.3.0", | ||
"chai-as-promised": "6.0.0", | ||
"chai": "4.1.2", | ||
"chai-as-promised": "7.1.1", | ||
"codecov.io": "0.1.6", | ||
"gulp": "3.9.0", | ||
"gulp-mocha": "4.2.0", | ||
"gulp": "3.9.1", | ||
"gulp-mocha": "6.0.0", | ||
"istanbul": "0.4.5", | ||
"mocha": "3.2.0", | ||
"request-promise": "4.2.0" | ||
"mocha": "5.2.0", | ||
"request-promise": "4.2.2" | ||
} | ||
} |
# polly-js | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/mauricedb/polly-js.svg)](https://greenkeeper.io/) | ||
Transient exception handling for JavaScript made easy. | ||
@@ -3,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
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
939
100
249623
18