package.json 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. {
  2. "_from": "axios",
  3. "_id": "axios@1.6.8",
  4. "_inBundle": false,
  5. "_integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
  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.npmjs.org/axios/-/axios-1.6.8.tgz",
  23. "_shasum": "66d294951f5d988a00e87a0ffb955316a619ea66",
  24. "_spec": "axios",
  25. "_where": "C:\\Users\\LvKun\\Desktop\\offline-pdf-app",
  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.6",
  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.23.9",
  119. "@babel/preset-env": "^7.23.9",
  120. "@commitlint/cli": "^17.8.1",
  121. "@commitlint/config-conventional": "^17.8.1",
  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.1.0",
  127. "@rollup/plugin-node-resolve": "^9.0.0",
  128. "abortcontroller-polyfill": "^1.7.5",
  129. "auto-changelog": "^2.4.0",
  130. "body-parser": "^1.20.2",
  131. "chalk": "^5.3.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.56.0",
  138. "express": "^4.18.2",
  139. "formdata-node": "^5.0.1",
  140. "formidable": "^2.1.2",
  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.8",
  146. "husky": "^8.0.3",
  147. "istanbul-instrumenter-loader": "^3.0.1",
  148. "jasmine-core": "^2.99.1",
  149. "karma": "^6.3.17",
  150. "karma-chrome-launcher": "^3.2.0",
  151. "karma-firefox-launcher": "^2.1.2",
  152. "karma-jasmine": "^1.1.2",
  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. "memoizee": "^0.4.15",
  160. "minimist": "^1.2.8",
  161. "mocha": "^10.3.0",
  162. "multer": "^1.4.4",
  163. "pretty-bytes": "^6.1.1",
  164. "release-it": "^15.11.0",
  165. "rollup": "^2.79.1",
  166. "rollup-plugin-auto-external": "^2.0.0",
  167. "rollup-plugin-bundle-size": "^1.0.3",
  168. "rollup-plugin-terser": "^7.0.2",
  169. "sinon": "^4.5.0",
  170. "stream-throttle": "^0.1.3",
  171. "string-replace-async": "^3.0.2",
  172. "terser-webpack-plugin": "^4.2.3",
  173. "typescript": "^4.9.5"
  174. },
  175. "exports": {
  176. ".": {
  177. "types": {
  178. "require": "./index.d.cts",
  179. "default": "./index.d.ts"
  180. },
  181. "browser": {
  182. "require": "./dist/browser/axios.cjs",
  183. "default": "./index.js"
  184. },
  185. "default": {
  186. "require": "./dist/node/axios.cjs",
  187. "default": "./index.js"
  188. }
  189. },
  190. "./lib/adapters/http.js": "./lib/adapters/http.js",
  191. "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
  192. "./unsafe/*": "./lib/*",
  193. "./unsafe/core/settle.js": "./lib/core/settle.js",
  194. "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
  195. "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
  196. "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
  197. "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
  198. "./unsafe/adapters/http.js": "./lib/adapters/http.js",
  199. "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
  200. "./unsafe/utils.js": "./lib/utils.js",
  201. "./package.json": "./package.json"
  202. },
  203. "homepage": "https://axios-http.com",
  204. "jsdelivr": "dist/axios.min.js",
  205. "keywords": [
  206. "xhr",
  207. "http",
  208. "ajax",
  209. "promise",
  210. "node"
  211. ],
  212. "license": "MIT",
  213. "main": "index.js",
  214. "name": "axios",
  215. "release-it": {
  216. "git": {
  217. "commitMessage": "chore(release): v${version}",
  218. "push": true,
  219. "commit": true,
  220. "tag": true,
  221. "requireCommits": false,
  222. "requireCleanWorkingDir": false
  223. },
  224. "github": {
  225. "release": true,
  226. "draft": true
  227. },
  228. "npm": {
  229. "publish": false,
  230. "ignoreVersion": false
  231. },
  232. "plugins": {
  233. "@release-it/conventional-changelog": {
  234. "preset": "angular",
  235. "infile": "CHANGELOG.md",
  236. "header": "# Changelog"
  237. }
  238. },
  239. "hooks": {
  240. "before:init": "npm test",
  241. "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
  242. "before:release": "npm run release:changelog:fix",
  243. "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  244. }
  245. },
  246. "repository": {
  247. "type": "git",
  248. "url": "git+https://github.com/axios/axios.git"
  249. },
  250. "scripts": {
  251. "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
  252. "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
  253. "examples": "node ./examples/server.js",
  254. "fix": "eslint --fix lib/**/*.js",
  255. "postpublish": "git push && git push --tags",
  256. "prepare": "husky install && npm run prepare:hooks",
  257. "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
  258. "prepublishOnly": "npm run test:build:version",
  259. "preversion": "gulp version",
  260. "release": "release-it",
  261. "release:beta": "release-it --preRelease=beta",
  262. "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
  263. "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
  264. "release:dry": "release-it --dry-run --no-npm",
  265. "release:info": "release-it --release-version",
  266. "release:no-npm": "release-it --no-npm",
  267. "start": "node ./sandbox/server.js",
  268. "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
  269. "test:build:version": "node ./bin/check-build-version.js",
  270. "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
  271. "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
  272. "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
  273. "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
  274. "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
  275. "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
  276. "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
  277. "version": "npm run build && git add dist && git add package.json"
  278. },
  279. "sideEffects": false,
  280. "type": "module",
  281. "types": "index.d.ts",
  282. "typings": "./index.d.ts",
  283. "unpkg": "dist/axios.min.js",
  284. "version": "1.6.8"
  285. }