fetch-with-retry
Advanced tools
Comparing version
@@ -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", |
4273
0.68%