Comparing version 4.1.0 to 4.1.1
@@ -0,1 +1,4 @@ | ||
# 4.1.1 | ||
Update deps | ||
# 4.1.0 | ||
@@ -2,0 +5,0 @@ createRandomDelay added |
@@ -1,2 +0,2 @@ | ||
export declare type UNTIL<RETURN_TYPE> = (result: RETURN_TYPE) => boolean; | ||
export type UNTIL<RETURN_TYPE> = (result: RETURN_TYPE) => boolean; | ||
export interface DelayParameters<RETURN_TYPE> { | ||
@@ -8,3 +8,3 @@ currentTry: number; | ||
} | ||
export declare type DELAY<RETURN_TYPE> = (parameter: DelayParameters<RETURN_TYPE>) => number; | ||
export type DELAY<RETURN_TYPE> = (parameter: DelayParameters<RETURN_TYPE>) => number; | ||
export interface RetryOptions<RETURN_TYPE = any> { | ||
@@ -11,0 +11,0 @@ maxTry?: number; |
import { RetryOptions, UNTIL } from "../options"; | ||
export declare type RetryUtilsOptions = Exclude<RetryOptions<any>, "until">; | ||
export type RetryUtilsOptions = Exclude<RetryOptions<any>, "until">; | ||
export declare const retryUntilOptionsToRetryOptionsHof: <RETURN_TYPE>(until: UNTIL<RETURN_TYPE>) => (retryOptions?: RetryUtilsOptions) => RetryOptions<RETURN_TYPE>; |
@@ -1,3 +0,3 @@ | ||
export declare type RESPONSE_TYPE = { | ||
export type RESPONSE_TYPE = { | ||
ok: boolean; | ||
}; |
@@ -1,2 +0,2 @@ | ||
export declare type UNTIL<RETURN_TYPE> = (result: RETURN_TYPE) => boolean; | ||
export type UNTIL<RETURN_TYPE> = (result: RETURN_TYPE) => boolean; | ||
export interface DelayParameters<RETURN_TYPE> { | ||
@@ -8,3 +8,3 @@ currentTry: number; | ||
} | ||
export declare type DELAY<RETURN_TYPE> = (parameter: DelayParameters<RETURN_TYPE>) => number; | ||
export type DELAY<RETURN_TYPE> = (parameter: DelayParameters<RETURN_TYPE>) => number; | ||
export interface RetryOptions<RETURN_TYPE = any> { | ||
@@ -11,0 +11,0 @@ maxTry?: number; |
import { RetryOptions, UNTIL } from "../options"; | ||
export declare type RetryUtilsOptions = Exclude<RetryOptions<any>, "until">; | ||
export type RetryUtilsOptions = Exclude<RetryOptions<any>, "until">; | ||
export declare const retryUntilOptionsToRetryOptionsHof: <RETURN_TYPE>(until: UNTIL<RETURN_TYPE>) => (retryOptions?: RetryUtilsOptions) => RetryOptions<RETURN_TYPE>; |
@@ -1,3 +0,3 @@ | ||
export declare type RESPONSE_TYPE = { | ||
export type RESPONSE_TYPE = { | ||
ok: boolean; | ||
}; |
{ | ||
"name": "ts-retry", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"main": "lib/cjs/index.js", | ||
@@ -13,9 +13,9 @@ "module": "lib/esm/index.js", | ||
"@types/chai": "4.3.4", | ||
"@types/mocha": "10.0.0", | ||
"@types/node": "18.11.9", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.11.16", | ||
"@types/sinon": "10.0.13", | ||
"@types/sinon-chai": "3.2.8", | ||
"@types/sinon-chai": "3.2.9", | ||
"chai": "^4.3.7", | ||
"cross-env": "7.0.3", | ||
"mocha": "10.1.0", | ||
"mocha": "10.2.0", | ||
"nyc": "^15.1.0", | ||
@@ -27,3 +27,3 @@ "rimraf": "3.0.2", | ||
"ts-node": "10.9.1", | ||
"typescript": "4.8.4", | ||
"typescript": "4.9.4", | ||
"yarn": "1.22.19" | ||
@@ -30,0 +30,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
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
87084