retry-axios
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -61,2 +61,5 @@ "use strict"; | ||
function onError(err) { | ||
if (axios_1.default.isCancel(err)) { | ||
return Promise.reject(err); | ||
} | ||
const config = getConfig(err) || {}; | ||
@@ -97,3 +100,3 @@ config.currentRetryAttempt = config.currentRetryAttempt || 0; | ||
// Put the config back into the err | ||
err.config.raxConfig = Object.assign({}, config); | ||
err.config.raxConfig = { ...config }; | ||
// Determine if we should retry the request | ||
@@ -100,0 +103,0 @@ const shouldRetryFn = config.shouldRetry || shouldRetryRequest; |
{ | ||
"name": "retry-axios", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Retry HTTP requests with Axios.", | ||
@@ -21,3 +21,3 @@ "main": "./build/src/index.js", | ||
"umd": "rm -rf umd && babel build/src -d umd --source-maps", | ||
"test": "c8 mocha build/test --timeout 5000 --require source-map-support/register", | ||
"test": "c8 mocha build/test", | ||
"prepare": "npm run compile", | ||
@@ -49,8 +49,7 @@ "pretest": "npm run compile", | ||
"codecov": "^3.5.0", | ||
"gts": "^1.0.0", | ||
"gts": "^2.0.0", | ||
"js-green-licenses": "^1.0.0", | ||
"mocha": "^7.0.0", | ||
"nock": "^12.0.0", | ||
"semantic-release": "^17.0.0", | ||
"source-map-support": "^0.5.12", | ||
"semantic-release": "^17.0.4", | ||
"typescript": "~3.8.0" | ||
@@ -57,0 +56,0 @@ }, |
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
30752
16
259