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

async-retry.ts

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-retry.ts - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

lib/index.d.ts

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

declare type Handlers = {
error: string | RegExp;
handler: () => void;
}[];
export default class Action {
static retry(action: any, maxRetryCount: any, handlers: any, logger?: Console): any;
static retryAsync(action: any, maxRetryCount: any, handlers: any, logger?: Console): Promise<any>;
static retry(action: () => void, maxRetryCount: number, handlers: Handlers, logger?: Console): any;
static retryAsync(action: () => Promise<void>, maxRetryCount: number, handlers: Handlers, logger?: Console): Promise<any>;
}
export {};

@@ -17,2 +17,2 @@ "use strict";

exports.default = Action;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxvREFBaUM7QUFDakMsOERBQTJDO0FBRTNDLE1BQXFCLE1BQU07SUFDekIsTUFBTSxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUUsYUFBYSxFQUFFLFFBQVEsRUFBRSxNQUFNLEdBQUcsT0FBTztRQUM1RCxPQUFPLGVBQVcsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsTUFBTSxDQUFDLENBQUE7SUFDbkUsQ0FBQztJQUVELE1BQU0sQ0FBQyxVQUFVLENBQUMsTUFBTSxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsTUFBTSxHQUFHLE9BQU87UUFDakUsT0FBTyxvQkFBZ0IsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsTUFBTSxDQUFDLENBQUE7SUFDeEUsQ0FBQztDQUNGO0FBUkQseUJBUUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxvREFBaUM7QUFDakMsOERBQTJDO0FBTzNDLE1BQXFCLE1BQU07SUFDekIsTUFBTSxDQUFDLEtBQUssQ0FBQyxNQUFrQixFQUFFLGFBQXFCLEVBQUUsUUFBa0IsRUFBRSxNQUFNLEdBQUcsT0FBTztRQUMxRixPQUFPLGVBQVcsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsTUFBTSxDQUFDLENBQUE7SUFDbkUsQ0FBQztJQUVELE1BQU0sQ0FBQyxVQUFVLENBQUMsTUFBMkIsRUFBRSxhQUFxQixFQUFFLFFBQWtCLEVBQUUsTUFBTSxHQUFHLE9BQU87UUFDeEcsT0FBTyxvQkFBZ0IsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsTUFBTSxDQUFDLENBQUE7SUFDeEUsQ0FBQztDQUNGO0FBUkQseUJBUUMifQ==
{
"name": "async-retry.ts",
"version": "1.0.0",
"version": "1.0.1",
"description": "async await version of co-retry.js(https://www.npmjs.com/package/co-retry.js), which can be used in both TypeScript and JavaScript.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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