stubborn-fs
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -17,3 +17,3 @@ /* IMPORT */ | ||
if (isRetriableError(error)) { | ||
const delay = Math.round(100 + (400 * Math.random())); | ||
const delay = Math.round(100 * Math.random()); | ||
const delayPromise = new Promise(resolve => setTimeout(resolve, delay)); | ||
@@ -20,0 +20,0 @@ return delayPromise.then(() => attempt.apply(undefined, args)); |
@@ -5,3 +5,3 @@ { | ||
"description": "Stubborn versions of Node's fs functions that try really hard to do their job.", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "main": "dist/index.js", |
@@ -32,3 +32,3 @@ | ||
const delay = Math.round ( 100 + ( 400 * Math.random () ) ); | ||
const delay = Math.round ( 100 * Math.random () ); | ||
const delayPromise = new Promise ( resolve => setTimeout ( resolve, delay ) ); | ||
@@ -35,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22162