You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fetch-with-retry

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-with-retry - npm Package Compare versions

Comparing version

to
1.0.2

4

index.js

@@ -17,4 +17,4 @@ /**

let attempts = Number(retries) || 1;
const delay = Number(retryDelay) || 0;
let attempts = Math.max(Number(retries) || 1, 1);
const delay = Math.max(Number(retryDelay) || 3000, 0);

@@ -21,0 +21,0 @@ while (attempts) {

{
"name": "fetch-with-retry",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple utility that retries when fetch() fails.",

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