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