package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "name": "axios-retry",
  3. "version": "3.3.1",
  4. "author": "Rubén Norte <ruben.norte@softonic.com>",
  5. "description": "Axios plugin that intercepts failed requests and retries them whenever posible.",
  6. "license": "Apache-2.0",
  7. "homepage": "https://github.com/softonic/axios-retry",
  8. "files": [
  9. "es",
  10. "lib",
  11. "index.js",
  12. "index.d.ts"
  13. ],
  14. "scripts": {
  15. "lint": "eslint es/**/*.mjs spec/**/*.spec.mjs",
  16. "pretest": "npm run lint",
  17. "test": "NODE_OPTIONS=--es-module-specifier-resolution=node jasmine",
  18. "prebuild": "npm run test",
  19. "build": "rm -rf lib && babel es -d lib/esm --source-maps && babel es -d lib/cjs --config-file ./babel.config.cjs.json --source-maps && ./fixup",
  20. "prerelease": "npm run build",
  21. "release": "npm version -m \"New version: %s\"",
  22. "postrelease": "npm run push && npm publish",
  23. "push": "git push origin master && git push origin --tags",
  24. "prepare": "husky install"
  25. },
  26. "lint-staged": {
  27. "*.+(js|mjs)": [
  28. "eslint --cache --fix",
  29. "prettier --write"
  30. ],
  31. "*.js": "eslint --cache --fix"
  32. },
  33. "dependencies": {
  34. "@babel/runtime": "^7.15.4",
  35. "is-retry-allowed": "^2.2.0"
  36. },
  37. "devDependencies": {
  38. "@babel/cli": "^7.15.7",
  39. "@babel/core": "^7.15.5",
  40. "@babel/plugin-transform-runtime": "^7.15.8",
  41. "@babel/preset-env": "^7.15.6",
  42. "axios": "^0.21.2",
  43. "eslint": "^7.32.0",
  44. "eslint-config-airbnb-base": "^14.2.1",
  45. "eslint-config-prettier": "^8.3.0",
  46. "eslint-plugin-import": "^2.24.2",
  47. "eslint-plugin-jasmine": "^4.1.2",
  48. "eslint-plugin-prettier": "^4.0.0",
  49. "husky": "^7.0.2",
  50. "jasmine": "^3.9.0",
  51. "lint-staged": "^11.2.0",
  52. "nock": "^13.1.3",
  53. "prettier": "^2.4.1"
  54. },
  55. "repository": {
  56. "type": "git",
  57. "url": "git+https://github.com/softonic/axios-retry.git"
  58. },
  59. "bugs": {
  60. "url": "https://github.com/softonic/axios-retry/issues"
  61. },
  62. "typings": "./index.d.ts",
  63. "main": "index.js",
  64. "module": "lib/esm/index.js",
  65. "exports": {
  66. ".": {
  67. "types": "./index.d.ts",
  68. "import": "./lib/esm/index.js",
  69. "require": "./index.js"
  70. },
  71. "./package.json": "./package.json"
  72. }
  73. }