package.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. {
  2. "name": "axios",
  3. "version": "1.19.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/Buffer.js": "./lib/helpers/null.js",
  55. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  56. },
  57. "react-native": {
  58. "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
  59. "./lib/adapters/http.js": "./lib/helpers/null.js",
  60. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  61. "./lib/platform/node/classes/Buffer.js": "./lib/helpers/null.js",
  62. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  63. },
  64. "repository": {
  65. "type": "git",
  66. "url": "https://github.com/axios/axios.git"
  67. },
  68. "keywords": [
  69. "xhr",
  70. "http",
  71. "ajax",
  72. "promise",
  73. "node",
  74. "browser",
  75. "fetch",
  76. "rest",
  77. "api",
  78. "client"
  79. ],
  80. "author": "Matt Zabriskie",
  81. "contributors": [
  82. "Matt Zabriskie (https://github.com/mzabriskie)",
  83. "Jay (https://github.com/jasonsaayman)",
  84. "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
  85. "Nick Uraltsev (https://github.com/nickuraltsev)",
  86. "Emily Morehouse (https://github.com/emilyemorehouse)",
  87. "Rubén Norte (https://github.com/rubennorte)",
  88. "Justin Beckwith (https://github.com/JustinBeckwith)",
  89. "Martti Laine (https://github.com/codeclown)",
  90. "Xianming Zhong (https://github.com/chinesedfan)",
  91. "Shaan Majid (https://github.com/shaanmajid)",
  92. "Remco Haszing (https://github.com/remcohaszing)",
  93. "Willian Agostini (https://github.com/WillianAgostini)",
  94. "Rikki Gibson (https://github.com/RikkiGibson)"
  95. ],
  96. "sideEffects": false,
  97. "license": "MIT",
  98. "bugs": {
  99. "url": "https://github.com/axios/axios/issues"
  100. },
  101. "homepage": "https://axios-http.com",
  102. "files": [
  103. "index.js",
  104. "index.d.ts",
  105. "index.d.cts",
  106. "CHANGELOG.md",
  107. "MIGRATION_GUIDE.md",
  108. "lib/",
  109. "dist/axios.js",
  110. "dist/axios.min.js",
  111. "dist/axios.min.js.map",
  112. "dist/esm/axios.js",
  113. "dist/esm/axios.min.js",
  114. "dist/esm/axios.min.js.map",
  115. "dist/browser/axios.cjs",
  116. "dist/node/axios.cjs"
  117. ],
  118. "scripts": {
  119. "build": "gulp clear && cross-env NODE_ENV=production rollup -c",
  120. "version": "npm run build && git add package.json",
  121. "preversion": "gulp version",
  122. "test": "npm run test:vitest",
  123. "test:vitest": "vitest run",
  124. "test:vitest:unit": "vitest run --project unit",
  125. "test:vitest:browser": "vitest run --project browser",
  126. "test:vitest:browser:headless": "vitest run --project browser-headless",
  127. "test:vitest:watch": "vitest",
  128. "test:smoke:cjs:vitest": "npm --prefix tests/smoke/cjs run test:smoke:cjs:mocha",
  129. "test:smoke:esm:vitest": "npm --prefix tests/smoke/esm run test:smoke:esm:vitest",
  130. "test:smoke:deno": "deno task --cwd tests/smoke/deno test",
  131. "test:smoke:bun": "bun test --cwd tests/smoke/bun",
  132. "test:module:cjs": "npm --prefix tests/module/cjs run test:module:cjs",
  133. "test:module:esm": "npm --prefix tests/module/esm run test:module:esm",
  134. "docs:dev": "cd docs && npm run docs:dev",
  135. "start": "node ./sandbox/server.js",
  136. "examples": "node ./examples/server.js",
  137. "lint": "eslint lib/**/*.js",
  138. "fix": "eslint --fix lib/**/*.js",
  139. "prepare": "husky"
  140. },
  141. "dependencies": {
  142. "follow-redirects": "^1.16.0",
  143. "form-data": "^4.0.6",
  144. "https-proxy-agent": "^5.0.1",
  145. "proxy-from-env": "^2.1.0"
  146. },
  147. "devDependencies": {
  148. "@babel/core": "^7.29.0",
  149. "@babel/preset-env": "^7.29.5",
  150. "@commitlint/cli": "^21.2.0",
  151. "@commitlint/config-conventional": "^21.2.0",
  152. "@eslint/js": "^10.0.1",
  153. "@rollup/plugin-alias": "^6.0.0",
  154. "@rollup/plugin-babel": "^7.1.0",
  155. "@rollup/plugin-commonjs": "^29.0.3",
  156. "@rollup/plugin-json": "^6.1.0",
  157. "@rollup/plugin-node-resolve": "^16.0.3",
  158. "@rollup/plugin-terser": "^1.0.0",
  159. "@vitest/browser": "^4.1.9",
  160. "@vitest/browser-playwright": "^4.1.9",
  161. "abortcontroller-polyfill": "^1.7.8",
  162. "acorn": "^8.17.0",
  163. "body-parser": "^2.3.0",
  164. "chalk": "^5.6.2",
  165. "cross-env": "^10.1.0",
  166. "dev-null": "^0.1.1",
  167. "eslint": "^10.6.0",
  168. "express": "^5.2.1",
  169. "formdata-node": "^6.0.3",
  170. "formidable": "^3.5.4",
  171. "fs-extra": "^11.3.6",
  172. "get-stream": "^9.0.1",
  173. "globals": "^17.7.0",
  174. "gulp": "^5.0.1",
  175. "husky": "^9.1.7",
  176. "lint-staged": "^17.0.8",
  177. "minimist": "^1.2.8",
  178. "multer": "^2.2.0",
  179. "playwright": "^1.61.1",
  180. "prettier": "^3.9.4",
  181. "rollup": "^4.60.4",
  182. "rollup-plugin-bundle-size": "^1.0.3",
  183. "selfsigned": "^5.5.0",
  184. "stream-throttle": "^0.1.3",
  185. "typescript": "^5.9.3",
  186. "vitest": "^4.1.9"
  187. },
  188. "commitlint": {
  189. "rules": {
  190. "header-max-length": [
  191. 2,
  192. "always",
  193. 130
  194. ]
  195. },
  196. "extends": [
  197. "@commitlint/config-conventional"
  198. ]
  199. },
  200. "lint-staged": {
  201. "*.{js,cjs,mjs,ts,json,md,yml,yaml}": "prettier --write"
  202. }
  203. }