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

ts-retry-promise

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-retry-promise - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

0

dist/retry-promise.d.ts

@@ -0,0 +0,0 @@ export interface RetryConfig<T> {

@@ -0,0 +0,0 @@ "use strict";

export declare const timeout: <T>(millis: number, f: (done: () => boolean) => Promise<T>) => Promise<T>;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ MIT License

2

package.json
{
"name": "ts-retry-promise",
"version": "0.3.0",
"version": "0.3.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "retry for functions returning a promise",

@@ -22,2 +22,4 @@ # ts-retry-promise #

import { retry } from 'ts-retry-promise';
const result = await retry(() => Promise.resolve(1), {retries: 3});
```

@@ -24,0 +26,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