Socket
Socket
Sign inDemoInstall

async-retry

Package Overview
Dependencies
1
Maintainers
17
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

2

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

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

@@ -7,3 +7,3 @@ // Packages

// Ours
const retry = require('../')
const retry = require('../lib')

@@ -15,5 +15,7 @@ test('return value', async t => {

}
await sleep(50)
return 'woot ' + num
})
t.deepEqual('woot 2', val)

@@ -32,4 +34,6 @@ })

}
return fetch('https://www.wikipedia.org')
})
t.deepEqual(200, res.status)

@@ -57,2 +61,3 @@ })

let _err
try {

@@ -69,2 +74,3 @@ await Promise.resolve(

}
t.deepEqual(_err.message, 'woot')

@@ -75,2 +81,3 @@ })

let retries = 0
try {

@@ -81,3 +88,3 @@ await retry(

await sleep(100)
const err = Error('Wont retry')
const err = new Error('Wont retry')
err.bail = true

@@ -91,2 +98,3 @@ throw err

}
t.deepEqual(retries, 1)

@@ -115,2 +123,3 @@ })

let retries = 0
try {

@@ -117,0 +126,0 @@ await retry(

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