Gathering detailed insights and metrics for @vtex/axios-concurrent-retry
Gathering detailed insights and metrics for @vtex/axios-concurrent-retry
Gathering detailed insights and metrics for @vtex/axios-concurrent-retry
Gathering detailed insights and metrics for @vtex/axios-concurrent-retry
Axios plugin that intercepts failed requests and retries them whenever possible
npm install @vtex/axios-concurrent-retry
Typescript
Module System
Node Version
NPM Version
74.1
Supply Chain
93.6
Quality
83
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
2 Stars
107 Commits
2 Forks
48 Watchers
8 Branches
21 Contributors
Updated on Feb 28, 2020
Latest Version
4.0.11
Package Id
@vtex/axios-concurrent-retry@4.0.11
Unpacked Size
49.19 kB
Size
11.74 kB
File Count
9
NPM Version
6.5.0
Node Version
11.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Axios plugin that intercepts failed requests and retries them whenever possible.
1npm install @vtex/axios-concurrent-retry
1// CommonJS 2// const axiosRetry = require('@vtex/axios-concurrent-retry'); 3 4// ES6 5import axiosRetry from '@vtex/axios-concurrent-retry'; 6 7axiosRetry(axios, { retries: 3 }); 8 9axios.get('http://example.com/test') // The first request fails and the second returns 'ok' 10 .then(result => { 11 result.data; // 'ok' 12 }); 13 14// Exponential back-off retry delay between requests 15axiosRetry(axios, { retryDelay: axiosRetry.exponentialDelay}); 16 17// Custom retry delay 18axiosRetry(axios, { retryDelay: (retryCount) => { 19 return retryCount * 1000; 20}}); 21 22// Works with custom axios instances 23const client = axios.create({ baseURL: 'http://example.com' }); 24axiosRetry(client, { retries: 3 }); 25 26client.get('/test') // The first request fails and the second returns 'ok' 27 .then(result => { 28 result.data; // 'ok' 29 }); 30 31// Allows request-specific configuration 32client 33 .get('/test', { 34 'axios-retry': { 35 retries: 0 36 } 37 }) 38 .catch(error => { // The first request fails 39 error !== undefined 40 });
Note: the plugin interprets the request timeout as a global value, so it is not used for each retry but for the whole request lifecycle.
Name | Type | Default | Description |
---|---|---|---|
retries | Number | 3 | The number of times to retry before failing |
retryCondition | Function | isNetworkOrIdempotentRequestError | A callback to further control if a request should be retried. By default, it retries if it is a network error or a 5xx error on an idempotent request (GET, HEAD, OPTIONS, PUT or DELETE). |
retryDelay | Function | 0 | A callback to further control the delay between retried requests. By default there is no delay between retries. Another option is exponentialDelay (Exponential Backoff). The function is passed retryCount and error . |
Clone the repository and execute:
1npm test
git clone https://github.com/softonic/axios-retry.git
git checkout -b feature/my-new-feature
git commit -am 'Added some feature'
npm run build
git push origin my-new-feature
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/21 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More