Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-retry

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-retry - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

3

changelog.md

@@ -0,1 +1,4 @@

# 4.1.1
Update deps
# 4.1.0

@@ -2,0 +5,0 @@ createRandomDelay added

4

lib/cjs/retry/options.d.ts

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc