package.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {
  2. "name": "axios",
  3. "version": "1.15.0",
  4. "description": "Promise based HTTP client for the browser and node.js",
  5. "main": "./dist/node/axios.cjs",
  6. "module": "./index.js",
  7. "type": "module",
  8. "types": "index.d.ts",
  9. "jsdelivr": "dist/axios.min.js",
  10. "unpkg": "dist/axios.min.js",
  11. "typings": "./index.d.ts",
  12. "exports": {
  13. ".": {
  14. "types": {
  15. "require": "./index.d.cts",
  16. "default": "./index.d.ts"
  17. },
  18. "bun": {
  19. "require": "./dist/node/axios.cjs",
  20. "default": "./index.js"
  21. },
  22. "react-native": {
  23. "require": "./dist/browser/axios.cjs",
  24. "default": "./dist/esm/axios.js"
  25. },
  26. "browser": {
  27. "require": "./dist/browser/axios.cjs",
  28. "default": "./index.js"
  29. },
  30. "default": {
  31. "require": "./dist/node/axios.cjs",
  32. "default": "./index.js"
  33. }
  34. },
  35. "./lib/adapters/http.js": "./lib/adapters/http.js",
  36. "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
  37. "./unsafe/*": "./lib/*",
  38. "./unsafe/core/settle.js": "./lib/core/settle.js",
  39. "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
  40. "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
  41. "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
  42. "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
  43. "./unsafe/adapters/http.js": "./lib/adapters/http.js",
  44. "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
  45. "./unsafe/utils.js": "./lib/utils.js",
  46. "./package.json": "./package.json",
  47. "./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
  48. "./dist/node/axios.cjs": "./dist/node/axios.cjs"
  49. },
  50. "browser": {
  51. "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
  52. "./lib/adapters/http.js": "./lib/helpers/null.js",
  53. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  54. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  55. },
  56. "react-native": {
  57. "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
  58. "./lib/adapters/http.js": "./lib/helpers/null.js",
  59. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  60. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  61. },
  62. "repository": {
  63. "type": "git",
  64. "url": "https://github.com/axios/axios.git"
  65. },
  66. "keywords": [
  67. "xhr",
  68. "http",
  69. "ajax",
  70. "promise",
  71. "node",
  72. "browser",
  73. "fetch",
  74. "rest",
  75. "api",
  76. "client"
  77. ],
  78. "author": "Matt Zabriskie",
  79. "contributors": [
  80. "Matt Zabriskie (https://github.com/mzabriskie)",
  81. "Jay (https://github.com/jasonsaayman)",
  82. "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
  83. "Nick Uraltsev (https://github.com/nickuraltsev)",
  84. "Emily Morehouse (https://github.com/emilyemorehouse)",
  85. "Rubén Norte (https://github.com/rubennorte)",
  86. "Justin Beckwith (https://github.com/JustinBeckwith)",
  87. "Martti Laine (https://github.com/codeclown)",
  88. "Xianming Zhong (https://github.com/chinesedfan)",
  89. "Remco Haszing (https://github.com/remcohaszing)",
  90. "Willian Agostini (https://github.com/WillianAgostini)",
  91. "Rikki Gibson (https://github.com/RikkiGibson)",
  92. "Ben Carp (https://github.com/carpben)"
  93. ],
  94. "sideEffects": false,
  95. "license": "MIT",
  96. "bugs": {
  97. "url": "https://github.com/axios/axios/issues"
  98. },
  99. "homepage": "https://axios-http.com",
  100. "scripts": {
  101. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  102. "version": "npm run build && git add package.json",
  103. "preversion": "gulp version",
  104. "test": "npm run test:vitest",
  105. "test:vitest": "vitest run",
  106. "test:vitest:unit": "vitest run --project unit",
  107. "test:vitest:browser": "vitest run --project browser",
  108. "test:vitest:browser:headless": "vitest run --project browser-headless",
  109. "test:vitest:watch": "vitest",
  110. "test:smoke:cjs:vitest": "npm --prefix tests/smoke/cjs run test:smoke:cjs:mocha",
  111. "test:smoke:esm:vitest": "npm --prefix tests/smoke/esm run test:smoke:esm:vitest",
  112. "test:smoke:deno": "deno task --cwd tests/smoke/deno test",
  113. "test:smoke:bun": "bun test --cwd tests/smoke/bun",
  114. "test:module:cjs": "npm --prefix tests/module/cjs run test:module:cjs",
  115. "test:module:esm": "npm --prefix tests/module/esm run test:module:esm",
  116. "docs:dev": "cd docs && npm run docs:dev",
  117. "start": "node ./sandbox/server.js",
  118. "examples": "node ./examples/server.js",
  119. "lint": "eslint lib/**/*.js",
  120. "fix": "eslint --fix lib/**/*.js",
  121. "prepare": "husky"
  122. },
  123. "dependencies": {
  124. "follow-redirects": "^1.15.11",
  125. "form-data": "^4.0.5",
  126. "proxy-from-env": "^2.1.0"
  127. },
  128. "devDependencies": {
  129. "@babel/core": "^7.29.0",
  130. "@babel/preset-env": "^7.29.0",
  131. "@commitlint/cli": "^20.4.4",
  132. "@commitlint/config-conventional": "^20.4.4",
  133. "@eslint/js": "^10.0.1",
  134. "@rollup/plugin-alias": "^6.0.0",
  135. "@rollup/plugin-babel": "^7.0.0",
  136. "@rollup/plugin-commonjs": "^29.0.2",
  137. "@rollup/plugin-json": "^6.1.0",
  138. "@rollup/plugin-node-resolve": "^16.0.3",
  139. "@rollup/plugin-terser": "^1.0.0",
  140. "@vitest/browser": "^4.1.1",
  141. "@vitest/browser-playwright": "^4.1.1",
  142. "abortcontroller-polyfill": "^1.7.8",
  143. "auto-changelog": "^2.5.0",
  144. "body-parser": "^2.2.2",
  145. "chalk": "^5.6.2",
  146. "cross-env": "^10.1.0",
  147. "dev-null": "^0.1.1",
  148. "eslint": "^10.1.0",
  149. "express": "^5.2.1",
  150. "formdata-node": "^6.0.3",
  151. "formidable": "^3.2.4",
  152. "fs-extra": "^11.3.4",
  153. "get-stream": "^9.0.1",
  154. "globals": "^17.4.0",
  155. "gulp": "^5.0.1",
  156. "handlebars": "^4.7.8",
  157. "husky": "^9.1.7",
  158. "lint-staged": "^16.4.0",
  159. "memoizee": "^0.4.17",
  160. "minimist": "^1.2.8",
  161. "multer": "^2.1.1",
  162. "pacote": "^21.5.0",
  163. "playwright": "^1.58.2",
  164. "prettier": "^3.8.1",
  165. "pretty-bytes": "^7.1.0",
  166. "rollup": "^4.60.0",
  167. "rollup-plugin-bundle-size": "^1.0.3",
  168. "selfsigned": "^5.5.0",
  169. "stream-throttle": "^0.1.3",
  170. "string-replace-async": "^3.0.2",
  171. "tar-stream": "^3.1.8",
  172. "typescript": "^5.9.3",
  173. "vitest": "^4.1.1"
  174. },
  175. "commitlint": {
  176. "rules": {
  177. "header-max-length": [
  178. 2,
  179. "always",
  180. 130
  181. ]
  182. },
  183. "extends": [
  184. "@commitlint/config-conventional"
  185. ]
  186. },
  187. "lint-staged": {
  188. "*.{js,cjs,mjs,ts,json,md,yml,yaml}": "prettier --write"
  189. }
  190. }