Socket
Socket
Sign inDemoInstall

async-retry

Package Overview
Dependencies
67
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

6

dist/index.js

@@ -40,7 +40,3 @@ 'use strict';

if (val instanceof Promise) {
val.then(resolve, onError);
} else {
resolve(val);
}
Promise.resolve(val).then(resolve, onError);
});

@@ -47,0 +43,0 @@ });

2

package.json
{
"name": "async-retry",
"version": "1.1.1",
"version": "1.1.2",
"description": "Retrying made simple, easy and async",

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

@@ -12,4 +12,5 @@ # async-retry

```js
import retry from 'async-retry'
import fetch from 'node-fetch'
// Packages
const retry = require('async-retry')
const fetch = require('node-fetch')

@@ -39,3 +40,2 @@ await retry(async bail => {

- Exported as `default`. Use `import retry from 'async-retry'` (ES6) or `require('async-retry').default` (legacy).
- The supplied function can be `async` or not. In other words, it can be a function that returns a `Promise` or a value.

@@ -42,0 +42,0 @@ - The supplied function receives two parameters

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc