package.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. {
  2. "name": "axios",
  3. "version": "1.3.4",
  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. "browser": {
  13. "require": "./dist/browser/axios.cjs",
  14. "default": "./index.js"
  15. },
  16. "default": {
  17. "require": "./dist/node/axios.cjs",
  18. "default": "./index.js"
  19. }
  20. },
  21. "./package.json": "./package.json"
  22. },
  23. "type": "module",
  24. "types": "index.d.ts",
  25. "scripts": {
  26. "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
  27. "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
  28. "test:dtslint": "node bin/ssl_hotfix.js dtslint",
  29. "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
  30. "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
  31. "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
  32. "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
  33. "test:build:version": "node ./bin/check-build-version.js",
  34. "start": "node ./sandbox/server.js",
  35. "preversion": "gulp version",
  36. "version": "npm run build && git add dist && git add package.json",
  37. "prepublishOnly": "npm run test:build:version",
  38. "postpublish": "git push && git push --tags",
  39. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  40. "examples": "node ./examples/server.js",
  41. "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
  42. "fix": "eslint --fix lib/**/*.js",
  43. "prepare": "husky install && npm run prepare:hooks",
  44. "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
  45. "release:dry": "release-it --dry-run --no-npm",
  46. "release:info": "release-it --release-version",
  47. "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
  48. "release:beta": "release-it --preRelease=beta",
  49. "release:no-npm": "release-it --no-npm",
  50. "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
  51. "release": "release-it"
  52. },
  53. "repository": {
  54. "type": "git",
  55. "url": "https://github.com/axios/axios.git"
  56. },
  57. "keywords": [
  58. "xhr",
  59. "http",
  60. "ajax",
  61. "promise",
  62. "node"
  63. ],
  64. "author": "Matt Zabriskie",
  65. "license": "MIT",
  66. "bugs": {
  67. "url": "https://github.com/axios/axios/issues"
  68. },
  69. "homepage": "https://axios-http.com",
  70. "devDependencies": {
  71. "@babel/core": "^7.18.2",
  72. "@babel/preset-env": "^7.18.2",
  73. "@commitlint/cli": "^17.3.0",
  74. "@commitlint/config-conventional": "^17.3.0",
  75. "@release-it/conventional-changelog": "^5.1.1",
  76. "@rollup/plugin-babel": "^5.3.1",
  77. "@rollup/plugin-commonjs": "^15.1.0",
  78. "@rollup/plugin-json": "^4.1.0",
  79. "@rollup/plugin-multi-entry": "^4.0.0",
  80. "@rollup/plugin-node-resolve": "^9.0.0",
  81. "abortcontroller-polyfill": "^1.7.3",
  82. "auto-changelog": "^2.4.0",
  83. "body-parser": "^1.20.0",
  84. "chalk": "^5.2.0",
  85. "coveralls": "^3.1.1",
  86. "cross-env": "^7.0.3",
  87. "dev-null": "^0.1.1",
  88. "dtslint": "^4.2.1",
  89. "es6-promise": "^4.2.8",
  90. "eslint": "^8.17.0",
  91. "express": "^4.18.1",
  92. "formdata-node": "^5.0.0",
  93. "formidable": "^2.0.1",
  94. "fs-extra": "^10.1.0",
  95. "get-stream": "^3.0.0",
  96. "gulp": "^4.0.2",
  97. "gzip-size": "^7.0.0",
  98. "handlebars": "^4.7.7",
  99. "husky": "^8.0.2",
  100. "istanbul-instrumenter-loader": "^3.0.1",
  101. "jasmine-core": "^2.4.1",
  102. "karma": "^6.3.17",
  103. "karma-chrome-launcher": "^3.1.1",
  104. "karma-firefox-launcher": "^2.1.2",
  105. "karma-jasmine": "^1.1.1",
  106. "karma-jasmine-ajax": "^0.1.13",
  107. "karma-rollup-preprocessor": "^7.0.8",
  108. "karma-safari-launcher": "^1.0.0",
  109. "karma-sauce-launcher": "^4.3.6",
  110. "karma-sinon": "^1.0.5",
  111. "karma-sourcemap-loader": "^0.3.8",
  112. "minimist": "^1.2.7",
  113. "mocha": "^10.0.0",
  114. "multer": "^1.4.4",
  115. "pretty-bytes": "^6.0.0",
  116. "release-it": "^15.5.1",
  117. "rollup": "^2.67.0",
  118. "rollup-plugin-auto-external": "^2.0.0",
  119. "rollup-plugin-bundle-size": "^1.0.3",
  120. "rollup-plugin-terser": "^7.0.2",
  121. "sinon": "^4.5.0",
  122. "stream-throttle": "^0.1.3",
  123. "string-replace-async": "^3.0.2",
  124. "terser-webpack-plugin": "^4.2.3",
  125. "typescript": "^4.8.4",
  126. "url-search-params": "^0.10.0"
  127. },
  128. "browser": {
  129. "./lib/adapters/http.js": "./lib/helpers/null.js",
  130. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  131. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  132. },
  133. "jsdelivr": "dist/axios.min.js",
  134. "unpkg": "dist/axios.min.js",
  135. "typings": "./index.d.ts",
  136. "dependencies": {
  137. "follow-redirects": "^1.15.0",
  138. "form-data": "^4.0.0",
  139. "proxy-from-env": "^1.1.0"
  140. },
  141. "bundlesize": [
  142. {
  143. "path": "./dist/axios.min.js",
  144. "threshold": "5kB"
  145. }
  146. ],
  147. "contributors": [
  148. "Matt Zabriskie (https://github.com/mzabriskie)",
  149. "Nick Uraltsev (https://github.com/nickuraltsev)",
  150. "Jay (https://github.com/jasonsaayman)",
  151. "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
  152. "Emily Morehouse (https://github.com/emilyemorehouse)",
  153. "Rubén Norte (https://github.com/rubennorte)",
  154. "Justin Beckwith (https://github.com/JustinBeckwith)",
  155. "Martti Laine (https://github.com/codeclown)",
  156. "Xianming Zhong (https://github.com/chinesedfan)",
  157. "Rikki Gibson (https://github.com/RikkiGibson)",
  158. "Remco Haszing (https://github.com/remcohaszing)",
  159. "Yasu Flores (https://github.com/yasuf)",
  160. "Ben Carp (https://github.com/carpben)"
  161. ],
  162. "sideEffects": false,
  163. "release-it": {
  164. "git": {
  165. "commitMessage": "chore(release): v${version}",
  166. "push": true,
  167. "commit": true,
  168. "tag": true,
  169. "requireCommits": false,
  170. "requireCleanWorkingDir": false
  171. },
  172. "github": {
  173. "release": true,
  174. "draft": true
  175. },
  176. "npm": {
  177. "publish": false,
  178. "ignoreVersion": false
  179. },
  180. "plugins": {
  181. "@release-it/conventional-changelog": {
  182. "preset": "angular",
  183. "infile": "CHANGELOG.md",
  184. "header": "# Changelog"
  185. }
  186. },
  187. "hooks": {
  188. "before:init": "npm test",
  189. "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
  190. "before:release": "npm run release:changelog:fix",
  191. "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  192. }
  193. },
  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. }