package.json 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. {
  2. "name": "axios",
  3. "version": "1.10.0",
  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. },
  38. "type": "module",
  39. "types": "index.d.ts",
  40. "scripts": {
  41. "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
  42. "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
  43. "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
  44. "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
  45. "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
  46. "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
  47. "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
  48. "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
  49. "test:build:version": "node ./bin/check-build-version.js",
  50. "start": "node ./sandbox/server.js",
  51. "preversion": "gulp version",
  52. "version": "npm run build && git add dist && git add package.json",
  53. "prepublishOnly": "npm run test:build:version",
  54. "postpublish": "git push && git push --tags",
  55. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  56. "examples": "node ./examples/server.js",
  57. "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
  58. "fix": "eslint --fix lib/**/*.js",
  59. "prepare": "husky install && npm run prepare:hooks",
  60. "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
  61. "release:dry": "release-it --dry-run --no-npm",
  62. "release:info": "release-it --release-version",
  63. "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
  64. "release:beta": "release-it --preRelease=beta",
  65. "release:no-npm": "release-it --no-npm",
  66. "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
  67. "release": "release-it"
  68. },
  69. "repository": {
  70. "type": "git",
  71. "url": "https://github.com/axios/axios.git"
  72. },
  73. "keywords": [
  74. "xhr",
  75. "http",
  76. "ajax",
  77. "promise",
  78. "node"
  79. ],
  80. "author": "Matt Zabriskie",
  81. "license": "MIT",
  82. "bugs": {
  83. "url": "https://github.com/axios/axios/issues"
  84. },
  85. "homepage": "https://axios-http.com",
  86. "devDependencies": {
  87. "@babel/core": "^7.23.9",
  88. "@babel/preset-env": "^7.23.9",
  89. "@commitlint/cli": "^17.8.1",
  90. "@commitlint/config-conventional": "^17.8.1",
  91. "@release-it/conventional-changelog": "^5.1.1",
  92. "@rollup/plugin-babel": "^5.3.1",
  93. "@rollup/plugin-commonjs": "^15.1.0",
  94. "@rollup/plugin-json": "^4.1.0",
  95. "@rollup/plugin-multi-entry": "^4.1.0",
  96. "@rollup/plugin-node-resolve": "^9.0.0",
  97. "abortcontroller-polyfill": "^1.7.5",
  98. "auto-changelog": "^2.4.0",
  99. "body-parser": "^1.20.2",
  100. "chalk": "^5.3.0",
  101. "coveralls": "^3.1.1",
  102. "cross-env": "^7.0.3",
  103. "dev-null": "^0.1.1",
  104. "dtslint": "^4.2.1",
  105. "es6-promise": "^4.2.8",
  106. "eslint": "^8.56.0",
  107. "express": "^4.18.2",
  108. "formdata-node": "^5.0.1",
  109. "formidable": "^2.1.2",
  110. "fs-extra": "^10.1.0",
  111. "get-stream": "^3.0.0",
  112. "gulp": "^4.0.2",
  113. "gzip-size": "^7.0.0",
  114. "handlebars": "^4.7.8",
  115. "husky": "^8.0.3",
  116. "istanbul-instrumenter-loader": "^3.0.1",
  117. "jasmine-core": "^2.99.1",
  118. "karma": "^6.3.17",
  119. "karma-chrome-launcher": "^3.2.0",
  120. "karma-firefox-launcher": "^2.1.2",
  121. "karma-jasmine": "^1.1.2",
  122. "karma-jasmine-ajax": "^0.1.13",
  123. "karma-rollup-preprocessor": "^7.0.8",
  124. "karma-safari-launcher": "^1.0.0",
  125. "karma-sauce-launcher": "^4.3.6",
  126. "karma-sinon": "^1.0.5",
  127. "karma-sourcemap-loader": "^0.3.8",
  128. "memoizee": "^0.4.15",
  129. "minimist": "^1.2.8",
  130. "mocha": "^10.3.0",
  131. "multer": "^1.4.4",
  132. "pretty-bytes": "^6.1.1",
  133. "release-it": "^15.11.0",
  134. "rollup": "^2.79.1",
  135. "rollup-plugin-auto-external": "^2.0.0",
  136. "rollup-plugin-bundle-size": "^1.0.3",
  137. "rollup-plugin-terser": "^7.0.2",
  138. "sinon": "^4.5.0",
  139. "stream-throttle": "^0.1.3",
  140. "string-replace-async": "^3.0.2",
  141. "terser-webpack-plugin": "^4.2.3",
  142. "typescript": "^4.9.5",
  143. "@rollup/plugin-alias": "^5.1.0"
  144. },
  145. "browser": {
  146. "./lib/adapters/http.js": "./lib/helpers/null.js",
  147. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  148. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  149. },
  150. "react-native": {
  151. "./lib/adapters/http.js": "./lib/helpers/null.js",
  152. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  153. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  154. },
  155. "jsdelivr": "dist/axios.min.js",
  156. "unpkg": "dist/axios.min.js",
  157. "typings": "./index.d.ts",
  158. "dependencies": {
  159. "follow-redirects": "^1.15.6",
  160. "form-data": "^4.0.0",
  161. "proxy-from-env": "^1.1.0"
  162. },
  163. "bundlesize": [
  164. {
  165. "path": "./dist/axios.min.js",
  166. "threshold": "5kB"
  167. }
  168. ],
  169. "contributors": [
  170. "Matt Zabriskie (https://github.com/mzabriskie)",
  171. "Nick Uraltsev (https://github.com/nickuraltsev)",
  172. "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
  173. "Jay (https://github.com/jasonsaayman)",
  174. "Emily Morehouse (https://github.com/emilyemorehouse)",
  175. "Rubén Norte (https://github.com/rubennorte)",
  176. "Justin Beckwith (https://github.com/JustinBeckwith)",
  177. "Martti Laine (https://github.com/codeclown)",
  178. "Xianming Zhong (https://github.com/chinesedfan)",
  179. "Rikki Gibson (https://github.com/RikkiGibson)",
  180. "Remco Haszing (https://github.com/remcohaszing)",
  181. "Yasu Flores (https://github.com/yasuf)",
  182. "Ben Carp (https://github.com/carpben)"
  183. ],
  184. "sideEffects": false,
  185. "release-it": {
  186. "git": {
  187. "commitMessage": "chore(release): v${version}",
  188. "push": true,
  189. "commit": true,
  190. "tag": true,
  191. "requireCommits": false,
  192. "requireCleanWorkingDir": false
  193. },
  194. "github": {
  195. "release": true,
  196. "draft": true
  197. },
  198. "npm": {
  199. "publish": false,
  200. "ignoreVersion": false
  201. },
  202. "plugins": {
  203. "@release-it/conventional-changelog": {
  204. "preset": "angular",
  205. "infile": "CHANGELOG.md",
  206. "header": "# Changelog"
  207. }
  208. },
  209. "hooks": {
  210. "before:init": "npm test",
  211. "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
  212. "before:release": "npm run release:changelog:fix",
  213. "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  214. }
  215. },
  216. "commitlint": {
  217. "rules": {
  218. "header-max-length": [
  219. 2,
  220. "always",
  221. 130
  222. ]
  223. },
  224. "extends": [
  225. "@commitlint/config-conventional"
  226. ]
  227. }
  228. }