package.json 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. {
  2. "name": "axios",
  3. "version": "1.13.6",
  4. "description": "Promise based HTTP client for the browser and node.js",
  5. "main": "./index.js",
  6. "module": "./index.js",
  7. "exports": {
  8. ".": {
  9. "types": {
  10. "require": "./index.d.cts",
  11. "default": "./index.d.ts"
  12. },
  13. "bun": {
  14. "require": "./dist/node/axios.cjs",
  15. "default": "./index.js"
  16. },
  17. "react-native": {
  18. "require": "./dist/browser/axios.cjs",
  19. "default": "./dist/esm/axios.js"
  20. },
  21. "browser": {
  22. "require": "./dist/browser/axios.cjs",
  23. "default": "./index.js"
  24. },
  25. "default": {
  26. "require": "./dist/node/axios.cjs",
  27. "default": "./index.js"
  28. }
  29. },
  30. "./lib/adapters/http.js": "./lib/adapters/http.js",
  31. "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
  32. "./unsafe/*": "./lib/*",
  33. "./unsafe/core/settle.js": "./lib/core/settle.js",
  34. "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
  35. "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
  36. "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
  37. "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
  38. "./unsafe/adapters/http.js": "./lib/adapters/http.js",
  39. "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
  40. "./unsafe/utils.js": "./lib/utils.js",
  41. "./package.json": "./package.json",
  42. "./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
  43. "./dist/node/axios.cjs": "./dist/node/axios.cjs"
  44. },
  45. "type": "module",
  46. "types": "index.d.ts",
  47. "scripts": {
  48. "test": "npm run test:node && npm run test:browser && npm run test:package",
  49. "test:node": "npm run test:mocha",
  50. "test:node:coverage": "c8 npm run test:mocha",
  51. "test:browser": "npm run test:karma",
  52. "test:package": "npm run test:eslint && npm run test:exports",
  53. "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
  54. "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
  55. "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
  56. "test:karma": "node ./bin/run-karma-tests.js",
  57. "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
  58. "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
  59. "test:build:version": "node ./bin/check-build-version.js",
  60. "start": "node ./sandbox/server.js",
  61. "preversion": "gulp version",
  62. "version": "npm run build && git add package.json",
  63. "prepublishOnly": "npm run test:build:version",
  64. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  65. "examples": "node ./examples/server.js",
  66. "fix": "eslint --fix lib/**/*.js",
  67. "prepare": "husky install && npm run prepare:hooks",
  68. "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\""
  69. },
  70. "repository": {
  71. "type": "git",
  72. "url": "https://github.com/axios/axios.git"
  73. },
  74. "keywords": [
  75. "xhr",
  76. "http",
  77. "ajax",
  78. "promise",
  79. "node",
  80. "browser",
  81. "fetch",
  82. "rest",
  83. "api",
  84. "client"
  85. ],
  86. "author": "Matt Zabriskie",
  87. "license": "MIT",
  88. "bugs": {
  89. "url": "https://github.com/axios/axios/issues"
  90. },
  91. "homepage": "https://axios-http.com",
  92. "devDependencies": {
  93. "@babel/core": "^7.28.6",
  94. "@babel/preset-env": "^7.28.6",
  95. "@commitlint/cli": "^20.3.1",
  96. "@commitlint/config-conventional": "^20.3.1",
  97. "@rollup/plugin-alias": "^5.1.1",
  98. "@rollup/plugin-babel": "^6.1.0",
  99. "@rollup/plugin-commonjs": "^15.1.0",
  100. "@rollup/plugin-json": "^4.1.0",
  101. "@rollup/plugin-multi-entry": "^4.1.0",
  102. "@rollup/plugin-node-resolve": "^9.0.0",
  103. "abortcontroller-polyfill": "^1.7.8",
  104. "auto-changelog": "^2.5.0",
  105. "body-parser": "^1.20.4",
  106. "c8": "^10.1.3",
  107. "chalk": "^5.6.2",
  108. "coveralls": "^3.1.1",
  109. "cross-env": "^7.0.3",
  110. "dev-null": "^0.1.1",
  111. "es6-promise": "^4.2.8",
  112. "eslint": "^8.57.1",
  113. "express": "^4.22.1",
  114. "formdata-node": "^5.0.1",
  115. "formidable": "^2.1.5",
  116. "fs-extra": "^10.1.0",
  117. "get-stream": "^3.0.0",
  118. "gulp": "^4.0.2",
  119. "handlebars": "^4.7.8",
  120. "husky": "^8.0.3",
  121. "istanbul-instrumenter-loader": "^3.0.1",
  122. "jasmine-core": "^2.99.1",
  123. "karma": "^6.4.4",
  124. "karma-chrome-launcher": "^3.2.0",
  125. "karma-firefox-launcher": "^2.1.3",
  126. "karma-jasmine": "^1.1.2",
  127. "karma-jasmine-ajax": "^0.1.13",
  128. "karma-rollup-preprocessor": "^7.0.8",
  129. "karma-safari-launcher": "^1.0.0",
  130. "karma-sauce-launcher": "^4.3.6",
  131. "karma-sinon": "^1.0.5",
  132. "karma-sourcemap-loader": "^0.4.0",
  133. "lint-staged": "^15.2.10",
  134. "memoizee": "^0.4.17",
  135. "minimist": "^1.2.8",
  136. "mocha": "^10.8.2",
  137. "multer": "^1.4.4",
  138. "pacote": "^20.0.0",
  139. "prettier": "^3.8.1",
  140. "pretty-bytes": "^6.1.1",
  141. "rollup": "^2.79.2",
  142. "rollup-plugin-auto-external": "^2.0.0",
  143. "rollup-plugin-bundle-size": "^1.0.3",
  144. "rollup-plugin-terser": "^7.0.2",
  145. "selfsigned": "^3.0.1",
  146. "sinon": "^4.5.0",
  147. "stream-throttle": "^0.1.3",
  148. "string-replace-async": "^3.0.2",
  149. "tar-stream": "^3.1.7",
  150. "typescript": "^4.9.5"
  151. },
  152. "browser": {
  153. "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
  154. "./lib/adapters/http.js": "./lib/helpers/null.js",
  155. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  156. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  157. },
  158. "react-native": {
  159. "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
  160. "./lib/adapters/http.js": "./lib/helpers/null.js",
  161. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  162. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  163. },
  164. "jsdelivr": "dist/axios.min.js",
  165. "unpkg": "dist/axios.min.js",
  166. "typings": "./index.d.ts",
  167. "dependencies": {
  168. "follow-redirects": "^1.15.11",
  169. "form-data": "^4.0.5",
  170. "proxy-from-env": "^1.1.0"
  171. },
  172. "bundlesize": [
  173. {
  174. "path": "./dist/axios.min.js",
  175. "threshold": "5kB"
  176. }
  177. ],
  178. "contributors": [
  179. "Matt Zabriskie (https://github.com/mzabriskie)",
  180. "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
  181. "Nick Uraltsev (https://github.com/nickuraltsev)",
  182. "Jay (https://github.com/jasonsaayman)",
  183. "Emily Morehouse (https://github.com/emilyemorehouse)",
  184. "Rubén Norte (https://github.com/rubennorte)",
  185. "Justin Beckwith (https://github.com/JustinBeckwith)",
  186. "Martti Laine (https://github.com/codeclown)",
  187. "Xianming Zhong (https://github.com/chinesedfan)",
  188. "Remco Haszing (https://github.com/remcohaszing)",
  189. "Willian Agostini (https://github.com/WillianAgostini)",
  190. "Rikki Gibson (https://github.com/RikkiGibson)",
  191. "Ben Carp (https://github.com/carpben)"
  192. ],
  193. "sideEffects": false,
  194. "commitlint": {
  195. "rules": {
  196. "header-max-length": [
  197. 2,
  198. "always",
  199. 130
  200. ]
  201. },
  202. "extends": [
  203. "@commitlint/config-conventional"
  204. ]
  205. },
  206. "lint-staged": {
  207. "*.{js,cjs,mjs,ts,json,md,yml,yaml}": "prettier --write"
  208. },
  209. "c8": {
  210. "all": true,
  211. "include": [
  212. "lib/**/*.js",
  213. "lib/**/*.ts"
  214. ],
  215. "exclude": [
  216. "test",
  217. "sandbox"
  218. ],
  219. "reporter": [
  220. "text",
  221. "lcov",
  222. "html"
  223. ],
  224. "report-dir": "./coverage"
  225. }
  226. }