Comparing version 1.3.0 to 1.3.1
@@ -0,0 +0,0 @@ declare interface AsyncRetryable { |
{ | ||
"name": "polly-js", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Transient exception handling", | ||
@@ -5,0 +5,0 @@ "main": "src/polly.js", |
@@ -53,3 +53,3 @@ # polly-js | ||
.handle(function(err) { | ||
return err.code === 'ENOENT' && err.errno === -4058; | ||
return err.code === 'ENOENT'; | ||
}) | ||
@@ -56,0 +56,0 @@ .waitAndRetry() |
@@ -150,3 +150,3 @@ /** | ||
retry: function (count) { | ||
if (Number.isInteger(count)) { | ||
if (typeof count === 'number') { | ||
config.count = count; | ||
@@ -162,3 +162,3 @@ } | ||
waitAndRetry: function (delays) { | ||
if (Number.isInteger(delays)) { | ||
if (typeof delays === 'number') { | ||
delays = delayCountToDelays(delays); | ||
@@ -165,0 +165,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
294581
29