axios-retry
Advanced tools
Comparing version 1.3.0 to 1.3.1
import isRetryAllowed from 'is-retry-allowed'; | ||
import pkg from '../package.json'; | ||
const namespace = pkg.name; | ||
const namespace = 'axios-retry'; | ||
@@ -6,0 +5,0 @@ /** |
@@ -13,9 +13,5 @@ 'use strict'; | ||
var _package = require('../package.json'); | ||
var _package2 = _interopRequireDefault(_package); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var namespace = _package2.default.name; | ||
var namespace = 'axios-retry'; | ||
@@ -116,10 +112,8 @@ /** | ||
var _getRequestOptions = getRequestOptions(config, defaultOptions); | ||
var _getRequestOptions = getRequestOptions(config, defaultOptions), | ||
_getRequestOptions$re = _getRequestOptions.retries, | ||
retries = _getRequestOptions$re === undefined ? 3 : _getRequestOptions$re, | ||
_getRequestOptions$re2 = _getRequestOptions.retryCondition, | ||
retryCondition = _getRequestOptions$re2 === undefined ? isNetworkError : _getRequestOptions$re2; | ||
var _getRequestOptions$re = _getRequestOptions.retries; | ||
var retries = _getRequestOptions$re === undefined ? 3 : _getRequestOptions$re; | ||
var _getRequestOptions$re2 = _getRequestOptions.retryCondition; | ||
var retryCondition = _getRequestOptions$re2 === undefined ? isNetworkError : _getRequestOptions$re2; | ||
var currentState = getCurrentState(config); | ||
@@ -126,0 +120,0 @@ |
{ | ||
"name": "axios-retry", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Rubén Norte <ruben.norte@softonic.com>", | ||
@@ -5,0 +5,0 @@ "description": "Axios plugin that intercepts failed requests and retries them whenever posible.", |
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
16609
224