1
0

package.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "axios-retry",
  3. "version": "4.1.0",
  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. "dist"
  10. ],
  11. "scripts": {
  12. "lint": "eslint .",
  13. "pretest": "npm run lint",
  14. "test": "ts-node --project tsconfig-cjs.json node_modules/jasmine/bin/jasmine",
  15. "prebuild": "npm run test",
  16. "build": "rm -fr dist/* && npm run build:esm && npm run build:cjs",
  17. "build:esm": "tsc -p tsconfig.json && echo '{\"type\":\"module\"}' > dist/esm/package.json",
  18. "build:cjs": "tsc -p tsconfig-cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
  19. "prerelease": "npm run build",
  20. "release": "npm version -m \"New version: %s\"",
  21. "postrelease": "npm run push && npm publish",
  22. "push": "git push origin master && git push origin --tags",
  23. "prepare": "husky install"
  24. },
  25. "lint-staged": {
  26. "*.ts": [
  27. "eslint --cache --fix",
  28. "prettier --write"
  29. ]
  30. },
  31. "dependencies": {
  32. "is-retry-allowed": "^2.2.0"
  33. },
  34. "peerDependencies": {
  35. "axios": "0.x || 1.x"
  36. },
  37. "devDependencies": {
  38. "@types/axios": "^0.14.0",
  39. "@types/node": "^20.9.1",
  40. "@types/jasmine": "^5.1.2",
  41. "@typescript-eslint/eslint-plugin": "^6.11.0",
  42. "@typescript-eslint/parser": "^6.11.0",
  43. "axios": "^1.6.2",
  44. "eslint": "^8.53.0",
  45. "eslint-config-prettier": "^9.0.0",
  46. "eslint-plugin-jasmine": "^4.1.3",
  47. "eslint-plugin-prettier": "^5.0.1",
  48. "husky": "^8.0.3",
  49. "jasmine": "^5.1.0",
  50. "lint-staged": "^15.1.0",
  51. "nock": "^13.3.8",
  52. "prettier": "^3.1.0",
  53. "ts-node": "^10.9.1",
  54. "typescript": "^5.2.2"
  55. },
  56. "repository": {
  57. "type": "git",
  58. "url": "git+https://github.com/softonic/axios-retry.git"
  59. },
  60. "bugs": {
  61. "url": "https://github.com/softonic/axios-retry/issues"
  62. },
  63. "types": "dist/cjs/index.d.ts",
  64. "main": "dist/cjs/index.js",
  65. "module": "dist/esm/index.js",
  66. "exports": {
  67. ".": {
  68. "import": {
  69. "types": "./dist/esm/index.d.ts",
  70. "default": "./dist/esm/index.js"
  71. },
  72. "require": {
  73. "types": "./dist/cjs/index.d.ts",
  74. "default": "./dist/cjs/index.js"
  75. }
  76. },
  77. "./package.json": "./package.json"
  78. },
  79. "__npminstall_done": true,
  80. "_from": "axios-retry@4.1.0",
  81. "_resolved": "https://registry.npmmirror.com/axios-retry/-/axios-retry-4.1.0.tgz"
  82. }