package.json 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. {
  2. "_from": "axios",
  3. "_id": "axios@1.5.1",
  4. "_inBundle": false,
  5. "_integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==",
  6. "_location": "/axios",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "tag",
  10. "registry": true,
  11. "raw": "axios",
  12. "name": "axios",
  13. "escapedName": "axios",
  14. "rawSpec": "",
  15. "saveSpec": null,
  16. "fetchSpec": "latest"
  17. },
  18. "_requiredBy": [
  19. "#USER",
  20. "/"
  21. ],
  22. "_resolved": "https://registry.npmmirror.com/axios/-/axios-1.5.1.tgz",
  23. "_shasum": "11fbaa11fc35f431193a9564109c88c1f27b585f",
  24. "_spec": "axios",
  25. "_where": "F:\\git\\gcls_page_mobile_exercise",
  26. "author": {
  27. "name": "Matt Zabriskie"
  28. },
  29. "browser": {
  30. "./lib/adapters/http.js": "./lib/helpers/null.js",
  31. "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
  32. "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  33. },
  34. "bugs": {
  35. "url": "https://github.com/axios/axios/issues"
  36. },
  37. "bundleDependencies": false,
  38. "bundlesize": [
  39. {
  40. "path": "./dist/axios.min.js",
  41. "threshold": "5kB"
  42. }
  43. ],
  44. "commitlint": {
  45. "rules": {
  46. "header-max-length": [
  47. 2,
  48. "always",
  49. 130
  50. ]
  51. },
  52. "extends": [
  53. "@commitlint/config-conventional"
  54. ]
  55. },
  56. "contributors": [
  57. {
  58. "name": "Matt Zabriskie",
  59. "url": "https://github.com/mzabriskie"
  60. },
  61. {
  62. "name": "Nick Uraltsev",
  63. "url": "https://github.com/nickuraltsev"
  64. },
  65. {
  66. "name": "Jay",
  67. "url": "https://github.com/jasonsaayman"
  68. },
  69. {
  70. "name": "Dmitriy Mozgovoy",
  71. "url": "https://github.com/DigitalBrainJS"
  72. },
  73. {
  74. "name": "Emily Morehouse",
  75. "url": "https://github.com/emilyemorehouse"
  76. },
  77. {
  78. "name": "Rubén Norte",
  79. "url": "https://github.com/rubennorte"
  80. },
  81. {
  82. "name": "Justin Beckwith",
  83. "url": "https://github.com/JustinBeckwith"
  84. },
  85. {
  86. "name": "Martti Laine",
  87. "url": "https://github.com/codeclown"
  88. },
  89. {
  90. "name": "Xianming Zhong",
  91. "url": "https://github.com/chinesedfan"
  92. },
  93. {
  94. "name": "Rikki Gibson",
  95. "url": "https://github.com/RikkiGibson"
  96. },
  97. {
  98. "name": "Remco Haszing",
  99. "url": "https://github.com/remcohaszing"
  100. },
  101. {
  102. "name": "Yasu Flores",
  103. "url": "https://github.com/yasuf"
  104. },
  105. {
  106. "name": "Ben Carp",
  107. "url": "https://github.com/carpben"
  108. }
  109. ],
  110. "dependencies": {
  111. "follow-redirects": "^1.15.0",
  112. "form-data": "^4.0.0",
  113. "proxy-from-env": "^1.1.0"
  114. },
  115. "deprecated": false,
  116. "description": "Promise based HTTP client for the browser and node.js",
  117. "devDependencies": {
  118. "@babel/core": "^7.18.2",
  119. "@babel/preset-env": "^7.18.2",
  120. "@commitlint/cli": "^17.3.0",
  121. "@commitlint/config-conventional": "^17.3.0",
  122. "@release-it/conventional-changelog": "^5.1.1",
  123. "@rollup/plugin-babel": "^5.3.1",
  124. "@rollup/plugin-commonjs": "^15.1.0",
  125. "@rollup/plugin-json": "^4.1.0",
  126. "@rollup/plugin-multi-entry": "^4.0.0",
  127. "@rollup/plugin-node-resolve": "^9.0.0",
  128. "abortcontroller-polyfill": "^1.7.3",
  129. "auto-changelog": "^2.4.0",
  130. "body-parser": "^1.20.0",
  131. "chalk": "^5.2.0",
  132. "coveralls": "^3.1.1",
  133. "cross-env": "^7.0.3",
  134. "dev-null": "^0.1.1",
  135. "dtslint": "^4.2.1",
  136. "es6-promise": "^4.2.8",
  137. "eslint": "^8.17.0",
  138. "express": "^4.18.1",
  139. "formdata-node": "^5.0.0",
  140. "formidable": "^2.0.1",
  141. "fs-extra": "^10.1.0",
  142. "get-stream": "^3.0.0",
  143. "gulp": "^4.0.2",
  144. "gzip-size": "^7.0.0",
  145. "handlebars": "^4.7.7",
  146. "husky": "^8.0.2",
  147. "istanbul-instrumenter-loader": "^3.0.1",
  148. "jasmine-core": "^2.4.1",
  149. "karma": "^6.3.17",
  150. "karma-chrome-launcher": "^3.1.1",
  151. "karma-firefox-launcher": "^2.1.2",
  152. "karma-jasmine": "^1.1.1",
  153. "karma-jasmine-ajax": "^0.1.13",
  154. "karma-rollup-preprocessor": "^7.0.8",
  155. "karma-safari-launcher": "^1.0.0",
  156. "karma-sauce-launcher": "^4.3.6",
  157. "karma-sinon": "^1.0.5",
  158. "karma-sourcemap-loader": "^0.3.8",
  159. "minimist": "^1.2.7",
  160. "mocha": "^10.0.0",
  161. "multer": "^1.4.4",
  162. "pretty-bytes": "^6.0.0",
  163. "release-it": "^15.5.1",
  164. "rollup": "^2.67.0",
  165. "rollup-plugin-auto-external": "^2.0.0",
  166. "rollup-plugin-bundle-size": "^1.0.3",
  167. "rollup-plugin-terser": "^7.0.2",
  168. "sinon": "^4.5.0",
  169. "stream-throttle": "^0.1.3",
  170. "string-replace-async": "^3.0.2",
  171. "terser-webpack-plugin": "^4.2.3",
  172. "typescript": "^4.8.4"
  173. },
  174. "exports": {
  175. ".": {
  176. "types": {
  177. "require": "./index.d.cts",
  178. "default": "./index.d.ts"
  179. },
  180. "browser": {
  181. "require": "./dist/browser/axios.cjs",
  182. "default": "./index.js"
  183. },
  184. "default": {
  185. "require": "./dist/node/axios.cjs",
  186. "default": "./index.js"
  187. }
  188. },
  189. "./lib/adapters/http.js": "./lib/adapters/http.js",
  190. "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
  191. "./unsafe/*": "./lib/*",
  192. "./unsafe/core/settle.js": "./lib/core/settle.js",
  193. "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
  194. "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
  195. "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
  196. "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
  197. "./unsafe/adapters/http.js": "./lib/adapters/http.js",
  198. "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
  199. "./unsafe/utils.js": "./lib/utils.js",
  200. "./package.json": "./package.json"
  201. },
  202. "homepage": "https://axios-http.com",
  203. "jsdelivr": "dist/axios.min.js",
  204. "keywords": [
  205. "xhr",
  206. "http",
  207. "ajax",
  208. "promise",
  209. "node"
  210. ],
  211. "license": "MIT",
  212. "main": "index.js",
  213. "name": "axios",
  214. "release-it": {
  215. "git": {
  216. "commitMessage": "chore(release): v${version}",
  217. "push": true,
  218. "commit": true,
  219. "tag": true,
  220. "requireCommits": false,
  221. "requireCleanWorkingDir": false
  222. },
  223. "github": {
  224. "release": true,
  225. "draft": true
  226. },
  227. "npm": {
  228. "publish": false,
  229. "ignoreVersion": false
  230. },
  231. "plugins": {
  232. "@release-it/conventional-changelog": {
  233. "preset": "angular",
  234. "infile": "CHANGELOG.md",
  235. "header": "# Changelog"
  236. }
  237. },
  238. "hooks": {
  239. "before:init": "npm test",
  240. "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
  241. "before:release": "npm run release:changelog:fix",
  242. "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  243. }
  244. },
  245. "repository": {
  246. "type": "git",
  247. "url": "git+https://github.com/axios/axios.git"
  248. },
  249. "scripts": {
  250. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  251. "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
  252. "examples": "node ./examples/server.js",
  253. "fix": "eslint --fix lib/**/*.js",
  254. "postpublish": "git push && git push --tags",
  255. "prepare": "husky install && npm run prepare:hooks",
  256. "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
  257. "prepublishOnly": "npm run test:build:version",
  258. "preversion": "gulp version",
  259. "release": "release-it",
  260. "release:beta": "release-it --preRelease=beta",
  261. "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
  262. "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
  263. "release:dry": "release-it --dry-run --no-npm",
  264. "release:info": "release-it --release-version",
  265. "release:no-npm": "release-it --no-npm",
  266. "start": "node ./sandbox/server.js",
  267. "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
  268. "test:build:version": "node ./bin/check-build-version.js",
  269. "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
  270. "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
  271. "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
  272. "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
  273. "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
  274. "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
  275. "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
  276. "version": "npm run build && git add dist && git add package.json"
  277. },
  278. "sideEffects": false,
  279. "type": "module",
  280. "types": "index.d.ts",
  281. "typings": "./index.d.ts",
  282. "unpkg": "dist/axios.min.js",
  283. "version": "1.5.1"
  284. }