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

axios-retry

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-retry - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

7

es/index.js

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

4

lib/index.js

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

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