stubborn-fetch
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -725,3 +725,5 @@ (function(self) { | ||
var status = error.data.response && error.data.response.status; | ||
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && status >= this.options.minimumStatusCodeForRetry; | ||
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && ( | ||
// Always retry 429's (respecting Retry-After). To disable this, add 429 to `unretryableStatusCodes` option. | ||
status === 429 || status >= this.options.minimumStatusCodeForRetry); | ||
break; | ||
@@ -728,0 +730,0 @@ } |
@@ -729,3 +729,5 @@ 'use strict'; | ||
var status = error.data.response && error.data.response.status; | ||
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && status >= this.options.minimumStatusCodeForRetry; | ||
errorIsRetryable = typeof status === 'number' && !this.options.unretryableStatusCodes.includes(status) && ( | ||
// Always retry 429's (respecting Retry-After). To disable this, add 429 to `unretryableStatusCodes` option. | ||
status === 429 || status >= this.options.minimumStatusCodeForRetry); | ||
break; | ||
@@ -732,0 +734,0 @@ } |
{ | ||
"name": "stubborn-fetch", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Fetch wrapper with built in retry", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
71916
1648