File size: 6,197 Bytes
e472a78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
  "name": "axios",
  "version": "1.16.1",
  "description": "Promise based HTTP client for the browser and node.js",
  "main": "./dist/node/axios.cjs",
  "module": "./index.js",
  "type": "module",
  "types": "index.d.ts",
  "jsdelivr": "dist/axios.min.js",
  "unpkg": "dist/axios.min.js",
  "typings": "./index.d.ts",
  "exports": {
    ".": {
      "types": {
        "require": "./index.d.cts",
        "default": "./index.d.ts"
      },
      "bun": {
        "require": "./dist/node/axios.cjs",
        "default": "./index.js"
      },
      "react-native": {
        "require": "./dist/browser/axios.cjs",
        "default": "./dist/esm/axios.js"
      },
      "browser": {
        "require": "./dist/browser/axios.cjs",
        "default": "./index.js"
      },
      "default": {
        "require": "./dist/node/axios.cjs",
        "default": "./index.js"
      }
    },
    "./lib/adapters/http.js": "./lib/adapters/http.js",
    "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
    "./unsafe/*": "./lib/*",
    "./unsafe/core/settle.js": "./lib/core/settle.js",
    "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
    "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
    "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
    "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
    "./unsafe/adapters/http.js": "./lib/adapters/http.js",
    "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
    "./unsafe/utils.js": "./lib/utils.js",
    "./package.json": "./package.json",
    "./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
    "./dist/node/axios.cjs": "./dist/node/axios.cjs"
  },
  "browser": {
    "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
    "./lib/adapters/http.js": "./lib/helpers/null.js",
    "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
    "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  },
  "react-native": {
    "./dist/node/axios.cjs": "./dist/browser/axios.cjs",
    "./lib/adapters/http.js": "./lib/helpers/null.js",
    "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
    "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/axios/axios.git"
  },
  "keywords": [
    "xhr",
    "http",
    "ajax",
    "promise",
    "node",
    "browser",
    "fetch",
    "rest",
    "api",
    "client"
  ],
  "author": "Matt Zabriskie",
  "contributors": [
    "Matt Zabriskie (https://github.com/mzabriskie)",
    "Jay (https://github.com/jasonsaayman)",
    "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
    "Nick Uraltsev (https://github.com/nickuraltsev)",
    "Emily Morehouse (https://github.com/emilyemorehouse)",
    "Rubén Norte (https://github.com/rubennorte)",
    "Justin Beckwith (https://github.com/JustinBeckwith)",
    "Martti Laine (https://github.com/codeclown)",
    "Xianming Zhong (https://github.com/chinesedfan)",
    "Willian Agostini (https://github.com/WillianAgostini)",
    "Shaan Majid (https://github.com/shaanmajid)",
    "Remco Haszing (https://github.com/remcohaszing)",
    "Rikki Gibson (https://github.com/RikkiGibson)"
  ],
  "sideEffects": false,
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/axios/axios/issues"
  },
  "homepage": "https://axios-http.com",
  "scripts": {
    "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
    "version": "npm run build && git add package.json",
    "preversion": "gulp version",
    "test": "npm run test:vitest",
    "test:vitest": "vitest run",
    "test:vitest:unit": "vitest run --project unit",
    "test:vitest:browser": "vitest run --project browser",
    "test:vitest:browser:headless": "vitest run --project browser-headless",
    "test:vitest:watch": "vitest",
    "test:smoke:cjs:vitest": "npm --prefix tests/smoke/cjs run test:smoke:cjs:mocha",
    "test:smoke:esm:vitest": "npm --prefix tests/smoke/esm run test:smoke:esm:vitest",
    "test:smoke:deno": "deno task --cwd tests/smoke/deno test",
    "test:smoke:bun": "bun test --cwd tests/smoke/bun",
    "test:module:cjs": "npm --prefix tests/module/cjs run test:module:cjs",
    "test:module:esm": "npm --prefix tests/module/esm run test:module:esm",
    "docs:dev": "cd docs && npm run docs:dev",
    "start": "node ./sandbox/server.js",
    "examples": "node ./examples/server.js",
    "lint": "eslint lib/**/*.js",
    "fix": "eslint --fix lib/**/*.js",
    "prepare": "husky"
  },
  "dependencies": {
    "follow-redirects": "^1.16.0",
    "form-data": "^4.0.5",
    "https-proxy-agent": "^5.0.1",
    "proxy-from-env": "^2.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.29.0",
    "@babel/preset-env": "^7.29.2",
    "@commitlint/cli": "^20.5.0",
    "@commitlint/config-conventional": "^20.5.0",
    "@eslint/js": "^10.0.1",
    "@rollup/plugin-alias": "^6.0.0",
    "@rollup/plugin-babel": "^7.0.0",
    "@rollup/plugin-commonjs": "^29.0.2",
    "@rollup/plugin-json": "^6.1.0",
    "@rollup/plugin-node-resolve": "^16.0.3",
    "@rollup/plugin-terser": "^1.0.0",
    "@vitest/browser": "^4.1.5",
    "@vitest/browser-playwright": "^4.1.5",
    "abortcontroller-polyfill": "^1.7.8",
    "acorn": "^8.16.0",
    "body-parser": "^2.2.2",
    "chalk": "^5.6.2",
    "cross-env": "^10.1.0",
    "dev-null": "^0.1.1",
    "eslint": "^10.2.1",
    "express": "^5.2.1",
    "formdata-node": "^6.0.3",
    "formidable": "^3.5.4",
    "fs-extra": "^11.3.4",
    "get-stream": "^9.0.1",
    "globals": "^17.5.0",
    "gulp": "^5.0.1",
    "husky": "^9.1.7",
    "lint-staged": "^16.4.0",
    "minimist": "^1.2.8",
    "multer": "^2.1.1",
    "playwright": "^1.59.1",
    "prettier": "^3.8.3",
    "rollup": "^4.60.2",
    "rollup-plugin-bundle-size": "^1.0.3",
    "selfsigned": "^5.5.0",
    "stream-throttle": "^0.1.3",
    "typescript": "^5.9.3",
    "vitest": "^4.1.5"
  },
  "commitlint": {
    "rules": {
      "header-max-length": [
        2,
        "always",
        130
      ]
    },
    "extends": [
      "@commitlint/config-conventional"
    ]
  },
  "lint-staged": {
    "*.{js,cjs,mjs,ts,json,md,yml,yaml}": "prettier --write"
  }
}