Comparing version 1.6.0 to 1.6.1
@@ -0,15 +1,22 @@ | ||
type Info = { | ||
count: number; | ||
}; | ||
declare interface AsyncRetryable { | ||
executeForPromise<T>(fn: () => Promise<T>): Promise<T> | ||
executeForNode(fn: (err?: object, data?: any) => any, cb?: (err?: object, data?: any) => any): void | ||
executeForPromise<T>(fn: (info: Info) => Promise<T>): Promise<T>; | ||
executeForNode( | ||
fn: (cb: (err?: object, data?: any) => any, info: Info) => any, | ||
cb?: (err?: object, data?: any) => any | ||
): void; | ||
} | ||
declare interface Retryable extends AsyncRetryable { | ||
execute(fn: Function): any | ||
execute(fn: (info: Info) => any): any; | ||
} | ||
declare interface Polly { | ||
handle(fn: (err: any) => boolean): Polly | ||
retry(numRetries: number): Retryable | ||
waitAndRetry(delays: number[]): AsyncRetryable | ||
waitAndRetry(numRetries : number): AsyncRetryable | ||
handle(fn: (err: any) => boolean): Polly; | ||
retry(numRetries: number): Retryable; | ||
waitAndRetry(delays: number[]): AsyncRetryable; | ||
waitAndRetry(numRetries: number): AsyncRetryable; | ||
} | ||
@@ -19,4 +26,4 @@ | ||
declare module "polly-js" { | ||
declare module 'polly-js' { | ||
export default polly; | ||
} |
{ | ||
"name": "polly-js", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Transient exception handling", | ||
@@ -5,0 +5,0 @@ "main": "src/polly.js", |
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
251694
950