package.json 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. {
  2. "name": "axios",
  3. "version": "1.12.2",
  4. "description": "Promise based HTTP client for the browser and node.js",
  5. "main": "index.js",
  6. "exports": {
  7. ".": {
  8. "types": {
  9. "require": "./index.d.cts",
  10. "default": "./index.d.ts"
  11. },
  12. "react-native": {
  13. "require": "./dist/browser/axios.cjs",
  14. "default": "./dist/esm/axios.js"
  15. },
  16. "browser": {
  17. "require": "./dist/browser/axios.cjs",
  18. "default": "./index.js"
  19. },
  20. "default": {
  21. "require": "./dist/node/axios.cjs",
  22. "default": "./index.js"
  23. }
  24. },
  25. "./lib/adapters/http.js": "./lib/adapters/http.js",
  26. "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
  27. "./unsafe/*": "./lib/*",
  28. "./unsafe/core/settle.js": "./lib/core/settle.js",
  29. "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
  30. "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
  31. "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
  32. "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
  33. "./unsafe/adapters/http.js": "./lib/adapters/http.js",
  34. "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
  35. "./unsafe/utils.js": "./lib/utils.js",
  36. "./package.json": "./package.json",
  37. "./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
  38. "./dist/node/axios.cjs": "./dist/node/axios.cjs"
  39. },
  40. "type": "module",
  41. "types": "index.d.ts",
  42. "scripts": {
  43. "test": "npm run test:node && npm run test:browser && npm run test:package",
  44. "test:node": "npm run test:mocha",
  45. "test:browser": "npm run test:karma",
  46. "test:package": "npm run test:eslint && npm run test:dtslint && npm run test:exports",
  47. "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
  48. "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
  49. "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
  50. "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
  51. "test:karma": "node ./bin/run-karma-tests.js",
  52. "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
  53. "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
  54. "test:build:version": "node ./bin/check-build-version.js",
  55. "start": "node ./sandbox/server.js",
  56. "preversion": "gulp version",
  57. "version": "npm run build && git add package.json",
  58. "prepublishOnly": "npm run test:build:version",
  59. "postpublish": "git push && git push --tags",
  60. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  61. "examples": "node ./examples/server.js",
  62. "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
  63. "fix": "eslint --fix lib/**/*.js",
  64. "prepare": "husky install && npm run prepare:hooks",
  65. "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
  66. "release:dry": "release-it --dry-run --no-npm",
  67. "release:info": "release-it --release-version",
  68. "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
  69. "release:beta": "release-it --preRelease=beta",
  70. "release:no-npm": "release-it --no-npm",
  71. "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
  72. "release": "release-it"
  73. },
  74. "repository": {
  75. "type": "git",
  76. "url": "https://github.com/axios/axios.git"
  77. },
  78. "keywords": [
  79. "xhr",
  80. "http",
  81. "ajax",
  82. "promise",
  83. "node"
  84. ],
  85. "author": "Matt Zabriskie",
  86. "license": "MIT",
  87. "bugs": {
  88. "url": "https://github.com/axios/axios/issues"
  89. },
  90. "homepage": "https://axios-http.com",
  91. "devDependencies": {
  92. "@babel/core": "^7.23.9",
  93. "@babel/preset-env": "^7.23.9",
  94. "@commitlint/cli": "^17.8.1",
  95. "@commitlint/config-conventional": "^17.8.1",
  96. "@release-it/conventional-changelog": "^5.1.1",
  97. "@rollup/plugin-alias": "^5.1.0",
  98. "@rollup/plugin-babel": "^5.3.1",
  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.5",
  104. "auto-changelog": "^2.4.0",
  105. "body-parser": "^1.20.2",
  106. "chalk": "^5.3.0",
  107. "coveralls": "^3.1.1",
  108. "cross-env": "^7.0.3",
  109. "dev-null": "^0.1.1",
  110. "dtslint": "^4.2.1",
  111. "es6-promise": "^4.2.8",
  112. "eslint": "^8.56.0",
  113. "express": "^4.18.2",
  114. "formdata-node": "^5.0.1",
  115. "formidable": "^2.1.2",
  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.3.17",
  124. "karma-chrome-launcher": "^3.2.0",
  125. "karma-firefox-launcher": "^2.1.2",
  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.3.8",
  133. "memoizee": "^0.4.15",
  134. "minimist": "^1.2.8",
  135. "mocha": "^10.3.0",
  136. "multer": "^1.4.4",
  137. "pacote": "^20.0.0",
  138. "pretty-bytes": "^6.1.1",
  139. "release-it": "^15.11.0",
  140. "rollup": "^2.79.1",
  141. "rollup-plugin-auto-external": "^2.0.0",
  142. "rollup-plugin-bundle-size": "^1.0.3",
  143. "rollup-plugin-terser": "^7.0.2",
  144. "sinon": "^4.5.0",
  145. "stream-throttle": "^0.1.3",
  146. "string-replace-async": "^3.0.2",
  147. "tar-stream": "^3.1.7",
  148. "terser-webpack-plugin": "^4.2.3",
  149. "typescript": "^4.9.5"
  150. },
  151. "browser": {
  152. "./lib/adapters/http.js": "./lib/helpers/null.js",
  153. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  154. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  155. },
  156. "react-native": {
  157. "./lib/adapters/http.js": "./lib/helpers/null.js",
  158. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  159. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  160. },
  161. "jsdelivr": "dist/axios.min.js",
  162. "unpkg": "dist/axios.min.js",
  163. "typings": "./index.d.ts",
  164. "dependencies": {
  165. "follow-redirects": "^1.15.6",
  166. "form-data": "^4.0.4",
  167. "proxy-from-env": "^1.1.0"
  168. },
  169. "bundlesize": [
  170. {
  171. "path": "./dist/axios.min.js",
  172. "threshold": "5kB"
  173. }
  174. ],
  175. "contributors": [
  176. "Matt Zabriskie (https://github.com/mzabriskie)",
  177. "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
  178. "Nick Uraltsev (https://github.com/nickuraltsev)",
  179. "Jay (https://github.com/jasonsaayman)",
  180. "Emily Morehouse (https://github.com/emilyemorehouse)",
  181. "Rubén Norte (https://github.com/rubennorte)",
  182. "Justin Beckwith (https://github.com/JustinBeckwith)",
  183. "Martti Laine (https://github.com/codeclown)",
  184. "Xianming Zhong (https://github.com/chinesedfan)",
  185. "Remco Haszing (https://github.com/remcohaszing)",
  186. "Rikki Gibson (https://github.com/RikkiGibson)",
  187. "Willian Agostini (https://github.com/WillianAgostini)",
  188. "Yasu Flores (https://github.com/yasuf)"
  189. ],
  190. "sideEffects": false,
  191. "release-it": {
  192. "git": {
  193. "commitMessage": "chore(release): v${version}",
  194. "push": true,
  195. "commit": true,
  196. "tag": true,
  197. "requireCommits": false,
  198. "requireCleanWorkingDir": false
  199. },
  200. "github": {
  201. "release": true,
  202. "draft": true
  203. },
  204. "npm": {
  205. "publish": false,
  206. "ignoreVersion": false
  207. },
  208. "plugins": {
  209. "@release-it/conventional-changelog": {
  210. "preset": "angular",
  211. "infile": "CHANGELOG.md",
  212. "header": "# Changelog"
  213. }
  214. },
  215. "hooks": {
  216. "before:init": "npm test",
  217. "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version",
  218. "before:release": "npm run release:changelog:fix && git add ./package-lock.json",
  219. "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  220. }
  221. },
  222. "commitlint": {
  223. "rules": {
  224. "header-max-length": [
  225. 2,
  226. "always",
  227. 130
  228. ]
  229. },
  230. "extends": [
  231. "@commitlint/config-conventional"
  232. ]
  233. }
  234. }