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

node-fetch-retry

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

node-fetch-retry - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

10

index.js

@@ -10,3 +10,3 @@ const fetch = require('node-fetch');

} catch(e) {
if (opts.callback) {
if (opts && opts.callback) {
opts.callback(retry)

@@ -19,6 +19,6 @@ }

if (opts.pause) {
if (!opts.silent) console.log("pausing..");
if (opts && opts.pause) {
if (opts && !opts.silent) console.log("pausing..");
await sleep(opts.pause);
if (!opts.silent) console.log("done pausing...");
if (opts && !opts.silent) console.log("done pausing...");
}

@@ -32,2 +32,2 @@ }

return new Promise(resolve => setTimeout(resolve, ms));
}
}
{
"name": "node-fetch-retry",
"version": "1.1.1",
"version": "1.1.2",
"description": "Retry library for node-fetch",

@@ -26,3 +26,3 @@ "scripts": {

"devDependencies": {
"mocha": "^7.0.0",
"mocha": "^9.0.3",
"should": "^13.2.3"

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