axios-retry-after
Advanced tools
Comparing version 1.0.3 to 2.0.0
{ | ||
"name": "axios-retry-after", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "A tiny HTTP 429 Retry-After interceptor for axios", | ||
"repository": "https://github.com/compwright/axios-retry-after", | ||
"bugs": "https://github.com/compwright/axios-retry-after/issues", | ||
"main": "./src/", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"publish": "git push origin --tags && npm run changelog && git push origin", | ||
"release:pre": "npm version prerelease && npm publish --tag pre", | ||
"release:patch": "npm version patch && npm publish", | ||
"release:minor": "npm version minor && npm publish", | ||
"release:major": "npm version major && npm publish", | ||
"changelog": "github_changelog_generator -u compwright -p axios-retry-after && git add CHANGELOG.md && git commit -am \"Updating changelog\"", | ||
"lint": "standard src/*.js test/*.js --fix", | ||
"pretest": "npm run lint", | ||
"test": "mocha ./test/*.test.js" | ||
}, | ||
"keywords": [ | ||
@@ -31,18 +16,32 @@ "axios", | ||
"license": "MIT", | ||
"type": "module", | ||
"engines": { | ||
"node": ">= 10" | ||
"node": ">= 14" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"files": [ | ||
"dist" | ||
], | ||
"standard": { | ||
"env": [ | ||
"mocha" | ||
"jest" | ||
] | ||
}, | ||
"peerDependencies": { | ||
"axios": "^0.21.0" | ||
"axios": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"axios": "^0.21.0", | ||
"mocha": "^8.4.0", | ||
"standard": "*" | ||
"axios": "latest", | ||
"jest": "latest", | ||
"standard": "latest", | ||
"standard-version": "latest", | ||
"unbuild": "latest" | ||
} | ||
} |
# axios-retry-after | ||
[![Build Status](https://travis-ci.org/compwright/axios-retry-after.png?branch=master)](https://travis-ci.org/compwright/axios-retry-after) | ||
[![Dependency Status](https://img.shields.io/david/compwright/axios-retry-after.svg?style=flat-square)](https://david-dm.org/compwright/axios-retry-after) | ||
[![Download Status](https://img.shields.io/npm/dm/axios-retry-after.svg?style=flat-square)](https://www.npmjs.com/package/axios-retry-after) | ||
@@ -14,2 +13,4 @@ [![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=❤&logo=GitHub&link=https://github.com/sponsors/compwright)](https://github.com/sponsors/compwright) | ||
With NPM: | ||
```bash | ||
@@ -19,7 +20,13 @@ npm install --save axios-retry-after | ||
With Yarn: | ||
```bash | ||
yarn add axios-retry-after | ||
``` | ||
## Example usage | ||
```javascript | ||
const axios = require('axios') | ||
const retry = require('axios-retry-after') | ||
import axios from 'axios' | ||
import retry from 'axios-retry-after' | ||
const client = axios.createClient() | ||
@@ -26,0 +33,0 @@ client.interceptors.response.use(null, retry(client)) |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
67
70
Yes
5616
5
5
1