You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
6.5 KiB
203 lines
6.5 KiB
{ |
|
"name": "axios", |
|
"version": "1.19.0", |
|
"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/Buffer.js": "./lib/helpers/null.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/Buffer.js": "./lib/helpers/null.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)", |
|
"Shaan Majid (https://github.com/shaanmajid)", |
|
"Remco Haszing (https://github.com/remcohaszing)", |
|
"Willian Agostini (https://github.com/WillianAgostini)", |
|
"Rikki Gibson (https://github.com/RikkiGibson)" |
|
], |
|
"sideEffects": false, |
|
"license": "MIT", |
|
"bugs": { |
|
"url": "https://github.com/axios/axios/issues" |
|
}, |
|
"homepage": "https://axios-http.com", |
|
"files": [ |
|
"index.js", |
|
"index.d.ts", |
|
"index.d.cts", |
|
"CHANGELOG.md", |
|
"MIGRATION_GUIDE.md", |
|
"lib/", |
|
"dist/axios.js", |
|
"dist/axios.min.js", |
|
"dist/axios.min.js.map", |
|
"dist/esm/axios.js", |
|
"dist/esm/axios.min.js", |
|
"dist/esm/axios.min.js.map", |
|
"dist/browser/axios.cjs", |
|
"dist/node/axios.cjs" |
|
], |
|
"scripts": { |
|
"build": "gulp clear && cross-env NODE_ENV=production rollup -c", |
|
"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.6", |
|
"https-proxy-agent": "^5.0.1", |
|
"proxy-from-env": "^2.1.0" |
|
}, |
|
"devDependencies": { |
|
"@babel/core": "^7.29.0", |
|
"@babel/preset-env": "^7.29.5", |
|
"@commitlint/cli": "^21.2.0", |
|
"@commitlint/config-conventional": "^21.2.0", |
|
"@eslint/js": "^10.0.1", |
|
"@rollup/plugin-alias": "^6.0.0", |
|
"@rollup/plugin-babel": "^7.1.0", |
|
"@rollup/plugin-commonjs": "^29.0.3", |
|
"@rollup/plugin-json": "^6.1.0", |
|
"@rollup/plugin-node-resolve": "^16.0.3", |
|
"@rollup/plugin-terser": "^1.0.0", |
|
"@vitest/browser": "^4.1.9", |
|
"@vitest/browser-playwright": "^4.1.9", |
|
"abortcontroller-polyfill": "^1.7.8", |
|
"acorn": "^8.17.0", |
|
"body-parser": "^2.3.0", |
|
"chalk": "^5.6.2", |
|
"cross-env": "^10.1.0", |
|
"dev-null": "^0.1.1", |
|
"eslint": "^10.6.0", |
|
"express": "^5.2.1", |
|
"formdata-node": "^6.0.3", |
|
"formidable": "^3.5.4", |
|
"fs-extra": "^11.3.6", |
|
"get-stream": "^9.0.1", |
|
"globals": "^17.7.0", |
|
"gulp": "^5.0.1", |
|
"husky": "^9.1.7", |
|
"lint-staged": "^17.0.8", |
|
"minimist": "^1.2.8", |
|
"multer": "^2.2.0", |
|
"playwright": "^1.61.1", |
|
"prettier": "^3.9.4", |
|
"rollup": "^4.60.4", |
|
"rollup-plugin-bundle-size": "^1.0.3", |
|
"selfsigned": "^5.5.0", |
|
"stream-throttle": "^0.1.3", |
|
"typescript": "^5.9.3", |
|
"vitest": "^4.1.9" |
|
}, |
|
"commitlint": { |
|
"rules": { |
|
"header-max-length": [ |
|
2, |
|
"always", |
|
130 |
|
] |
|
}, |
|
"extends": [ |
|
"@commitlint/config-conventional" |
|
] |
|
}, |
|
"lint-staged": { |
|
"*.{js,cjs,mjs,ts,json,md,yml,yaml}": "prettier --write" |
|
} |
|
} |