axios-retry
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -41,3 +41,8 @@ import isRetryAllowed from 'is-retry-allowed'; | ||
if (!error.response && config.retryCount < retries && isRetryAllowed(error)) { | ||
const shouldRetry = !error.response | ||
&& error.code !== 'ECONNABORTED' | ||
&& config.retryCount < retries | ||
&& isRetryAllowed(error); | ||
if (shouldRetry) { | ||
config.retryCount++; | ||
@@ -44,0 +49,0 @@ |
@@ -57,3 +57,5 @@ 'use strict'; | ||
if (!error.response && config.retryCount < retries && (0, _isRetryAllowed2.default)(error)) { | ||
var shouldRetry = !error.response && error.code !== 'ECONNABORTED' && config.retryCount < retries && (0, _isRetryAllowed2.default)(error); | ||
if (shouldRetry) { | ||
config.retryCount++; | ||
@@ -60,0 +62,0 @@ |
{ | ||
"name": "axios-retry", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Rubén Norte <ruben.norte@softonic.com>", | ||
"description": "Intercepts failed axios requests and retries them whenever posible", | ||
"description": "Axios plugin that intercepts failed requests and retries them whenever posible.", | ||
"license": "Apache-2.0", | ||
"main": "index.js", | ||
"homepage": "https://stash.redtonic/projects/NODE/repos/axios-retry", | ||
"repository": { | ||
"type": "git", | ||
"url": "ssh://git@stash.redtonic:7999/projects/NODE/repos/axios-retry.git" | ||
}, | ||
"homepage": "https://github.com/softonic/axios-retry", | ||
"files": [ | ||
@@ -43,3 +39,10 @@ "es", | ||
"nock": "^8.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/softonic/axios-retry.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/softonic/axios-retry/issues" | ||
} | ||
} |
# axios-retry | ||
Intercepts failed axios requests and retries them whenever posible. | ||
Axios plugin that intercepts failed requests and retries them whenever posible. | ||
Active maintainer: [ruben.norte@softonic.com](mailto:ruben.norte@softonic.com?subject=axios-retry) | ||
## Installation | ||
@@ -49,3 +47,3 @@ | ||
1. Fork it: `git clone ssh://git@stash.redtonic:7999/NODE/axios-retry.git` | ||
1. Fork it: `git clone https://github.com/softonic/axios-retry.git` | ||
2. Create your feature branch: `git checkout -b feature/my-new-feature` | ||
@@ -52,0 +50,0 @@ 3. Commit your changes: `git commit -am 'Added some feature'` |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
9704
123
0
0
53