Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

retry-axios

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retry-axios - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

5

build/src/index.js

@@ -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;

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc