p-wait-for
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -13,2 +13,3 @@ import pTimeout from 'p-timeout'; | ||
let retryTimeout; | ||
let abort = false; | ||
@@ -26,3 +27,3 @@ const promise = new Promise((resolve, reject) => { | ||
resolve(); | ||
} else { | ||
} else if (!abort) { | ||
retryTimeout = setTimeout(check, interval); | ||
@@ -49,2 +50,3 @@ } | ||
} finally { | ||
abort = true; | ||
clearTimeout(retryTimeout); | ||
@@ -51,0 +53,0 @@ } |
{ | ||
"name": "p-wait-for", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Wait for a condition to be true", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
9185
119