[d565449] | 1 | {
|
---|
| 2 | "name": "axios",
|
---|
| 3 | "version": "1.7.7",
|
---|
| 4 | "description": "Promise based HTTP client for the browser and node.js",
|
---|
| 5 | "main": "index.js",
|
---|
| 6 | "exports": {
|
---|
| 7 | ".": {
|
---|
| 8 | "types": {
|
---|
| 9 | "require": "./index.d.cts",
|
---|
| 10 | "default": "./index.d.ts"
|
---|
| 11 | },
|
---|
| 12 | "browser": {
|
---|
| 13 | "require": "./dist/browser/axios.cjs",
|
---|
| 14 | "default": "./index.js"
|
---|
| 15 | },
|
---|
| 16 | "default": {
|
---|
| 17 | "require": "./dist/node/axios.cjs",
|
---|
| 18 | "default": "./index.js"
|
---|
| 19 | }
|
---|
| 20 | },
|
---|
| 21 | "./lib/adapters/http.js": "./lib/adapters/http.js",
|
---|
| 22 | "./lib/adapters/xhr.js": "./lib/adapters/xhr.js",
|
---|
| 23 | "./unsafe/*": "./lib/*",
|
---|
| 24 | "./unsafe/core/settle.js": "./lib/core/settle.js",
|
---|
| 25 | "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js",
|
---|
| 26 | "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js",
|
---|
| 27 | "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js",
|
---|
| 28 | "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js",
|
---|
| 29 | "./unsafe/adapters/http.js": "./lib/adapters/http.js",
|
---|
| 30 | "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
|
---|
| 31 | "./unsafe/utils.js": "./lib/utils.js",
|
---|
| 32 | "./package.json": "./package.json"
|
---|
| 33 | },
|
---|
| 34 | "type": "module",
|
---|
| 35 | "types": "index.d.ts",
|
---|
| 36 | "scripts": {
|
---|
| 37 | "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
|
---|
| 38 | "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
|
---|
| 39 | "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
|
---|
| 40 | "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
|
---|
| 41 | "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
|
---|
| 42 | "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
|
---|
| 43 | "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
|
---|
| 44 | "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
|
---|
| 45 | "test:build:version": "node ./bin/check-build-version.js",
|
---|
| 46 | "start": "node ./sandbox/server.js",
|
---|
| 47 | "preversion": "gulp version",
|
---|
| 48 | "version": "npm run build && git add dist && git add package.json",
|
---|
| 49 | "prepublishOnly": "npm run test:build:version",
|
---|
| 50 | "postpublish": "git push && git push --tags",
|
---|
| 51 | "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
|
---|
| 52 | "examples": "node ./examples/server.js",
|
---|
| 53 | "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
---|
| 54 | "fix": "eslint --fix lib/**/*.js",
|
---|
| 55 | "prepare": "husky install && npm run prepare:hooks",
|
---|
| 56 | "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
|
---|
| 57 | "release:dry": "release-it --dry-run --no-npm",
|
---|
| 58 | "release:info": "release-it --release-version",
|
---|
| 59 | "release:beta:no-npm": "release-it --preRelease=beta --no-npm",
|
---|
| 60 | "release:beta": "release-it --preRelease=beta",
|
---|
| 61 | "release:no-npm": "release-it --no-npm",
|
---|
| 62 | "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md",
|
---|
| 63 | "release": "release-it"
|
---|
| 64 | },
|
---|
| 65 | "repository": {
|
---|
| 66 | "type": "git",
|
---|
| 67 | "url": "https://github.com/axios/axios.git"
|
---|
| 68 | },
|
---|
| 69 | "keywords": [
|
---|
| 70 | "xhr",
|
---|
| 71 | "http",
|
---|
| 72 | "ajax",
|
---|
| 73 | "promise",
|
---|
| 74 | "node"
|
---|
| 75 | ],
|
---|
| 76 | "author": "Matt Zabriskie",
|
---|
| 77 | "license": "MIT",
|
---|
| 78 | "bugs": {
|
---|
| 79 | "url": "https://github.com/axios/axios/issues"
|
---|
| 80 | },
|
---|
| 81 | "homepage": "https://axios-http.com",
|
---|
| 82 | "devDependencies": {
|
---|
| 83 | "@babel/core": "^7.23.9",
|
---|
| 84 | "@babel/preset-env": "^7.23.9",
|
---|
| 85 | "@commitlint/cli": "^17.8.1",
|
---|
| 86 | "@commitlint/config-conventional": "^17.8.1",
|
---|
| 87 | "@release-it/conventional-changelog": "^5.1.1",
|
---|
| 88 | "@rollup/plugin-babel": "^5.3.1",
|
---|
| 89 | "@rollup/plugin-commonjs": "^15.1.0",
|
---|
| 90 | "@rollup/plugin-json": "^4.1.0",
|
---|
| 91 | "@rollup/plugin-multi-entry": "^4.1.0",
|
---|
| 92 | "@rollup/plugin-node-resolve": "^9.0.0",
|
---|
| 93 | "abortcontroller-polyfill": "^1.7.5",
|
---|
| 94 | "auto-changelog": "^2.4.0",
|
---|
| 95 | "body-parser": "^1.20.2",
|
---|
| 96 | "chalk": "^5.3.0",
|
---|
| 97 | "coveralls": "^3.1.1",
|
---|
| 98 | "cross-env": "^7.0.3",
|
---|
| 99 | "dev-null": "^0.1.1",
|
---|
| 100 | "dtslint": "^4.2.1",
|
---|
| 101 | "es6-promise": "^4.2.8",
|
---|
| 102 | "eslint": "^8.56.0",
|
---|
| 103 | "express": "^4.18.2",
|
---|
| 104 | "formdata-node": "^5.0.1",
|
---|
| 105 | "formidable": "^2.1.2",
|
---|
| 106 | "fs-extra": "^10.1.0",
|
---|
| 107 | "get-stream": "^3.0.0",
|
---|
| 108 | "gulp": "^4.0.2",
|
---|
| 109 | "gzip-size": "^7.0.0",
|
---|
| 110 | "handlebars": "^4.7.8",
|
---|
| 111 | "husky": "^8.0.3",
|
---|
| 112 | "istanbul-instrumenter-loader": "^3.0.1",
|
---|
| 113 | "jasmine-core": "^2.99.1",
|
---|
| 114 | "karma": "^6.3.17",
|
---|
| 115 | "karma-chrome-launcher": "^3.2.0",
|
---|
| 116 | "karma-firefox-launcher": "^2.1.2",
|
---|
| 117 | "karma-jasmine": "^1.1.2",
|
---|
| 118 | "karma-jasmine-ajax": "^0.1.13",
|
---|
| 119 | "karma-rollup-preprocessor": "^7.0.8",
|
---|
| 120 | "karma-safari-launcher": "^1.0.0",
|
---|
| 121 | "karma-sauce-launcher": "^4.3.6",
|
---|
| 122 | "karma-sinon": "^1.0.5",
|
---|
| 123 | "karma-sourcemap-loader": "^0.3.8",
|
---|
| 124 | "memoizee": "^0.4.15",
|
---|
| 125 | "minimist": "^1.2.8",
|
---|
| 126 | "mocha": "^10.3.0",
|
---|
| 127 | "multer": "^1.4.4",
|
---|
| 128 | "pretty-bytes": "^6.1.1",
|
---|
| 129 | "release-it": "^15.11.0",
|
---|
| 130 | "rollup": "^2.79.1",
|
---|
| 131 | "rollup-plugin-auto-external": "^2.0.0",
|
---|
| 132 | "rollup-plugin-bundle-size": "^1.0.3",
|
---|
| 133 | "rollup-plugin-terser": "^7.0.2",
|
---|
| 134 | "sinon": "^4.5.0",
|
---|
| 135 | "stream-throttle": "^0.1.3",
|
---|
| 136 | "string-replace-async": "^3.0.2",
|
---|
| 137 | "terser-webpack-plugin": "^4.2.3",
|
---|
| 138 | "typescript": "^4.9.5",
|
---|
| 139 | "@rollup/plugin-alias": "^5.1.0"
|
---|
| 140 | },
|
---|
| 141 | "browser": {
|
---|
| 142 | "./lib/adapters/http.js": "./lib/helpers/null.js",
|
---|
| 143 | "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
|
---|
| 144 | "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
|
---|
| 145 | },
|
---|
| 146 | "jsdelivr": "dist/axios.min.js",
|
---|
| 147 | "unpkg": "dist/axios.min.js",
|
---|
| 148 | "typings": "./index.d.ts",
|
---|
| 149 | "dependencies": {
|
---|
| 150 | "follow-redirects": "^1.15.6",
|
---|
| 151 | "form-data": "^4.0.0",
|
---|
| 152 | "proxy-from-env": "^1.1.0"
|
---|
| 153 | },
|
---|
| 154 | "bundlesize": [
|
---|
| 155 | {
|
---|
| 156 | "path": "./dist/axios.min.js",
|
---|
| 157 | "threshold": "5kB"
|
---|
| 158 | }
|
---|
| 159 | ],
|
---|
| 160 | "contributors": [
|
---|
| 161 | "Matt Zabriskie (https://github.com/mzabriskie)",
|
---|
| 162 | "Nick Uraltsev (https://github.com/nickuraltsev)",
|
---|
| 163 | "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
---|
| 164 | "Jay (https://github.com/jasonsaayman)",
|
---|
| 165 | "Emily Morehouse (https://github.com/emilyemorehouse)",
|
---|
| 166 | "Rubén Norte (https://github.com/rubennorte)",
|
---|
| 167 | "Justin Beckwith (https://github.com/JustinBeckwith)",
|
---|
| 168 | "Martti Laine (https://github.com/codeclown)",
|
---|
| 169 | "Xianming Zhong (https://github.com/chinesedfan)",
|
---|
| 170 | "Rikki Gibson (https://github.com/RikkiGibson)",
|
---|
| 171 | "Remco Haszing (https://github.com/remcohaszing)",
|
---|
| 172 | "Yasu Flores (https://github.com/yasuf)",
|
---|
| 173 | "Ben Carp (https://github.com/carpben)"
|
---|
| 174 | ],
|
---|
| 175 | "sideEffects": false,
|
---|
| 176 | "release-it": {
|
---|
| 177 | "git": {
|
---|
| 178 | "commitMessage": "chore(release): v${version}",
|
---|
| 179 | "push": true,
|
---|
| 180 | "commit": true,
|
---|
| 181 | "tag": true,
|
---|
| 182 | "requireCommits": false,
|
---|
| 183 | "requireCleanWorkingDir": false
|
---|
| 184 | },
|
---|
| 185 | "github": {
|
---|
| 186 | "release": true,
|
---|
| 187 | "draft": true
|
---|
| 188 | },
|
---|
| 189 | "npm": {
|
---|
| 190 | "publish": false,
|
---|
| 191 | "ignoreVersion": false
|
---|
| 192 | },
|
---|
| 193 | "plugins": {
|
---|
| 194 | "@release-it/conventional-changelog": {
|
---|
| 195 | "preset": "angular",
|
---|
| 196 | "infile": "CHANGELOG.md",
|
---|
| 197 | "header": "# Changelog"
|
---|
| 198 | }
|
---|
| 199 | },
|
---|
| 200 | "hooks": {
|
---|
| 201 | "before:init": "npm test",
|
---|
| 202 | "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
|
---|
| 203 | "before:release": "npm run release:changelog:fix",
|
---|
| 204 | "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
|
---|
| 205 | }
|
---|
| 206 | },
|
---|
| 207 | "commitlint": {
|
---|
| 208 | "rules": {
|
---|
| 209 | "header-max-length": [
|
---|
| 210 | 2,
|
---|
| 211 | "always",
|
---|
| 212 | 130
|
---|
| 213 | ]
|
---|
| 214 | },
|
---|
| 215 | "extends": [
|
---|
| 216 | "@commitlint/config-conventional"
|
---|
| 217 | ]
|
---|
| 218 | }
|
---|
| 219 | } |
---|