Spaces:
Runtime error
Runtime error
Upload 811 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Dockerfile +5 -1
- node_modules/.bin/mime +3 -0
- node_modules/.bin/mime.cmd +3 -0
- node_modules/.bin/mime.ps1 +3 -0
- node_modules/.package-lock.json +957 -0
- node_modules/accepts/HISTORY.md +243 -0
- node_modules/accepts/LICENSE +23 -0
- node_modules/accepts/README.md +140 -0
- node_modules/accepts/index.js +238 -0
- node_modules/accepts/package.json +47 -0
- node_modules/array-flatten/LICENSE +21 -0
- node_modules/array-flatten/README.md +43 -0
- node_modules/array-flatten/array-flatten.js +64 -0
- node_modules/array-flatten/package.json +39 -0
- node_modules/asynckit/LICENSE +21 -0
- node_modules/asynckit/README.md +233 -0
- node_modules/asynckit/bench.js +76 -0
- node_modules/asynckit/index.js +6 -0
- node_modules/asynckit/lib/abort.js +29 -0
- node_modules/asynckit/lib/async.js +34 -0
- node_modules/asynckit/lib/defer.js +26 -0
- node_modules/asynckit/lib/iterate.js +75 -0
- node_modules/asynckit/lib/readable_asynckit.js +91 -0
- node_modules/asynckit/lib/readable_parallel.js +25 -0
- node_modules/asynckit/lib/readable_serial.js +25 -0
- node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- node_modules/asynckit/lib/state.js +37 -0
- node_modules/asynckit/lib/streamify.js +141 -0
- node_modules/asynckit/lib/terminator.js +29 -0
- node_modules/asynckit/package.json +63 -0
- node_modules/asynckit/parallel.js +43 -0
- node_modules/asynckit/serial.js +17 -0
- node_modules/asynckit/serialOrdered.js +75 -0
- node_modules/asynckit/stream.js +21 -0
- node_modules/axios/CHANGELOG.md +1295 -0
- node_modules/axios/LICENSE +7 -0
- node_modules/axios/MIGRATION_GUIDE.md +3 -0
- node_modules/axios/README.md +1756 -0
- node_modules/axios/dist/axios.js +0 -0
- node_modules/axios/dist/axios.js.map +0 -0
- node_modules/axios/dist/axios.min.js +3 -0
- node_modules/axios/dist/axios.min.js.map +0 -0
- node_modules/axios/dist/browser/axios.cjs +0 -0
- node_modules/axios/dist/browser/axios.cjs.map +0 -0
- node_modules/axios/dist/esm/axios.js +0 -0
- node_modules/axios/dist/esm/axios.js.map +0 -0
- node_modules/axios/dist/esm/axios.min.js +3 -0
- node_modules/axios/dist/esm/axios.min.js.map +0 -0
- node_modules/axios/dist/node/axios.cjs +0 -0
- node_modules/axios/dist/node/axios.cjs.map +0 -0
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ WORKDIR /app
|
|
| 8 |
COPY package*.json ./
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
-
RUN npm
|
| 12 |
|
| 13 |
# Copy application files
|
| 14 |
COPY server.js ./
|
|
@@ -20,5 +20,9 @@ EXPOSE 7860
|
|
| 20 |
# Set environment variable for port
|
| 21 |
ENV PORT=7860
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Start the application
|
| 24 |
CMD ["node", "server.js"]
|
|
|
|
| 8 |
COPY package*.json ./
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
+
RUN npm install --production
|
| 12 |
|
| 13 |
# Copy application files
|
| 14 |
COPY server.js ./
|
|
|
|
| 20 |
# Set environment variable for port
|
| 21 |
ENV PORT=7860
|
| 22 |
|
| 23 |
+
# Health check
|
| 24 |
+
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 25 |
+
CMD node -e "require('http').get('http://localhost:7860/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
|
| 26 |
+
|
| 27 |
# Start the application
|
| 28 |
CMD ["node", "server.js"]
|
node_modules/.bin/mime
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:394b93eaaac25f18a20d7cdd80920ecca1fe43c8e5b37501389e644944c6e01f
|
| 3 |
+
size 371
|
node_modules/.bin/mime.cmd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd5ca2f059e780c0a4b1aa9cdd6edc7dc10413d30bf51ad537adbd428e5e7a16
|
| 3 |
+
size 316
|
node_modules/.bin/mime.ps1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a43d8b7d57dbbb21f2f98c331970d011177fa1c6be327aa0dbb84c1ad01e9201
|
| 3 |
+
size 769
|
node_modules/.package-lock.json
ADDED
|
@@ -0,0 +1,957 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"node_modules/accepts": {
|
| 8 |
+
"version": "1.3.8",
|
| 9 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
| 10 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"dependencies": {
|
| 13 |
+
"mime-types": "~2.1.34",
|
| 14 |
+
"negotiator": "0.6.3"
|
| 15 |
+
},
|
| 16 |
+
"engines": {
|
| 17 |
+
"node": ">= 0.6"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"node_modules/array-flatten": {
|
| 21 |
+
"version": "1.1.1",
|
| 22 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
| 23 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
| 24 |
+
"license": "MIT"
|
| 25 |
+
},
|
| 26 |
+
"node_modules/asynckit": {
|
| 27 |
+
"version": "0.4.0",
|
| 28 |
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
| 29 |
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
| 30 |
+
"license": "MIT"
|
| 31 |
+
},
|
| 32 |
+
"node_modules/axios": {
|
| 33 |
+
"version": "1.12.2",
|
| 34 |
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz",
|
| 35 |
+
"integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
|
| 36 |
+
"license": "MIT",
|
| 37 |
+
"dependencies": {
|
| 38 |
+
"follow-redirects": "^1.15.6",
|
| 39 |
+
"form-data": "^4.0.4",
|
| 40 |
+
"proxy-from-env": "^1.1.0"
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"node_modules/body-parser": {
|
| 44 |
+
"version": "1.20.3",
|
| 45 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
|
| 46 |
+
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
|
| 47 |
+
"license": "MIT",
|
| 48 |
+
"dependencies": {
|
| 49 |
+
"bytes": "3.1.2",
|
| 50 |
+
"content-type": "~1.0.5",
|
| 51 |
+
"debug": "2.6.9",
|
| 52 |
+
"depd": "2.0.0",
|
| 53 |
+
"destroy": "1.2.0",
|
| 54 |
+
"http-errors": "2.0.0",
|
| 55 |
+
"iconv-lite": "0.4.24",
|
| 56 |
+
"on-finished": "2.4.1",
|
| 57 |
+
"qs": "6.13.0",
|
| 58 |
+
"raw-body": "2.5.2",
|
| 59 |
+
"type-is": "~1.6.18",
|
| 60 |
+
"unpipe": "1.0.0"
|
| 61 |
+
},
|
| 62 |
+
"engines": {
|
| 63 |
+
"node": ">= 0.8",
|
| 64 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"node_modules/bytes": {
|
| 68 |
+
"version": "3.1.2",
|
| 69 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
| 70 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
| 71 |
+
"license": "MIT",
|
| 72 |
+
"engines": {
|
| 73 |
+
"node": ">= 0.8"
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"node_modules/call-bind-apply-helpers": {
|
| 77 |
+
"version": "1.0.2",
|
| 78 |
+
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
| 79 |
+
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
| 80 |
+
"license": "MIT",
|
| 81 |
+
"dependencies": {
|
| 82 |
+
"es-errors": "^1.3.0",
|
| 83 |
+
"function-bind": "^1.1.2"
|
| 84 |
+
},
|
| 85 |
+
"engines": {
|
| 86 |
+
"node": ">= 0.4"
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
"node_modules/call-bound": {
|
| 90 |
+
"version": "1.0.4",
|
| 91 |
+
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
| 92 |
+
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
| 93 |
+
"license": "MIT",
|
| 94 |
+
"dependencies": {
|
| 95 |
+
"call-bind-apply-helpers": "^1.0.2",
|
| 96 |
+
"get-intrinsic": "^1.3.0"
|
| 97 |
+
},
|
| 98 |
+
"engines": {
|
| 99 |
+
"node": ">= 0.4"
|
| 100 |
+
},
|
| 101 |
+
"funding": {
|
| 102 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
"node_modules/combined-stream": {
|
| 106 |
+
"version": "1.0.8",
|
| 107 |
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
| 108 |
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
| 109 |
+
"license": "MIT",
|
| 110 |
+
"dependencies": {
|
| 111 |
+
"delayed-stream": "~1.0.0"
|
| 112 |
+
},
|
| 113 |
+
"engines": {
|
| 114 |
+
"node": ">= 0.8"
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
"node_modules/content-disposition": {
|
| 118 |
+
"version": "0.5.4",
|
| 119 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
| 120 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
| 121 |
+
"license": "MIT",
|
| 122 |
+
"dependencies": {
|
| 123 |
+
"safe-buffer": "5.2.1"
|
| 124 |
+
},
|
| 125 |
+
"engines": {
|
| 126 |
+
"node": ">= 0.6"
|
| 127 |
+
}
|
| 128 |
+
},
|
| 129 |
+
"node_modules/content-type": {
|
| 130 |
+
"version": "1.0.5",
|
| 131 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
| 132 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
| 133 |
+
"license": "MIT",
|
| 134 |
+
"engines": {
|
| 135 |
+
"node": ">= 0.6"
|
| 136 |
+
}
|
| 137 |
+
},
|
| 138 |
+
"node_modules/cookie": {
|
| 139 |
+
"version": "0.7.1",
|
| 140 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
| 141 |
+
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
| 142 |
+
"license": "MIT",
|
| 143 |
+
"engines": {
|
| 144 |
+
"node": ">= 0.6"
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"node_modules/cookie-signature": {
|
| 148 |
+
"version": "1.0.6",
|
| 149 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
| 150 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
|
| 151 |
+
"license": "MIT"
|
| 152 |
+
},
|
| 153 |
+
"node_modules/cors": {
|
| 154 |
+
"version": "2.8.5",
|
| 155 |
+
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
|
| 156 |
+
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
|
| 157 |
+
"license": "MIT",
|
| 158 |
+
"dependencies": {
|
| 159 |
+
"object-assign": "^4",
|
| 160 |
+
"vary": "^1"
|
| 161 |
+
},
|
| 162 |
+
"engines": {
|
| 163 |
+
"node": ">= 0.10"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"node_modules/debug": {
|
| 167 |
+
"version": "2.6.9",
|
| 168 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
| 169 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
| 170 |
+
"license": "MIT",
|
| 171 |
+
"dependencies": {
|
| 172 |
+
"ms": "2.0.0"
|
| 173 |
+
}
|
| 174 |
+
},
|
| 175 |
+
"node_modules/delayed-stream": {
|
| 176 |
+
"version": "1.0.0",
|
| 177 |
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
| 178 |
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
| 179 |
+
"license": "MIT",
|
| 180 |
+
"engines": {
|
| 181 |
+
"node": ">=0.4.0"
|
| 182 |
+
}
|
| 183 |
+
},
|
| 184 |
+
"node_modules/depd": {
|
| 185 |
+
"version": "2.0.0",
|
| 186 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
| 187 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
| 188 |
+
"license": "MIT",
|
| 189 |
+
"engines": {
|
| 190 |
+
"node": ">= 0.8"
|
| 191 |
+
}
|
| 192 |
+
},
|
| 193 |
+
"node_modules/destroy": {
|
| 194 |
+
"version": "1.2.0",
|
| 195 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
| 196 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
| 197 |
+
"license": "MIT",
|
| 198 |
+
"engines": {
|
| 199 |
+
"node": ">= 0.8",
|
| 200 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 201 |
+
}
|
| 202 |
+
},
|
| 203 |
+
"node_modules/dunder-proto": {
|
| 204 |
+
"version": "1.0.1",
|
| 205 |
+
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
| 206 |
+
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
| 207 |
+
"license": "MIT",
|
| 208 |
+
"dependencies": {
|
| 209 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 210 |
+
"es-errors": "^1.3.0",
|
| 211 |
+
"gopd": "^1.2.0"
|
| 212 |
+
},
|
| 213 |
+
"engines": {
|
| 214 |
+
"node": ">= 0.4"
|
| 215 |
+
}
|
| 216 |
+
},
|
| 217 |
+
"node_modules/ee-first": {
|
| 218 |
+
"version": "1.1.1",
|
| 219 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
| 220 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 221 |
+
"license": "MIT"
|
| 222 |
+
},
|
| 223 |
+
"node_modules/encodeurl": {
|
| 224 |
+
"version": "2.0.0",
|
| 225 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
| 226 |
+
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
| 227 |
+
"license": "MIT",
|
| 228 |
+
"engines": {
|
| 229 |
+
"node": ">= 0.8"
|
| 230 |
+
}
|
| 231 |
+
},
|
| 232 |
+
"node_modules/es-define-property": {
|
| 233 |
+
"version": "1.0.1",
|
| 234 |
+
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
| 235 |
+
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
| 236 |
+
"license": "MIT",
|
| 237 |
+
"engines": {
|
| 238 |
+
"node": ">= 0.4"
|
| 239 |
+
}
|
| 240 |
+
},
|
| 241 |
+
"node_modules/es-errors": {
|
| 242 |
+
"version": "1.3.0",
|
| 243 |
+
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 244 |
+
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 245 |
+
"license": "MIT",
|
| 246 |
+
"engines": {
|
| 247 |
+
"node": ">= 0.4"
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"node_modules/es-object-atoms": {
|
| 251 |
+
"version": "1.1.1",
|
| 252 |
+
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
| 253 |
+
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
| 254 |
+
"license": "MIT",
|
| 255 |
+
"dependencies": {
|
| 256 |
+
"es-errors": "^1.3.0"
|
| 257 |
+
},
|
| 258 |
+
"engines": {
|
| 259 |
+
"node": ">= 0.4"
|
| 260 |
+
}
|
| 261 |
+
},
|
| 262 |
+
"node_modules/es-set-tostringtag": {
|
| 263 |
+
"version": "2.1.0",
|
| 264 |
+
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
| 265 |
+
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
| 266 |
+
"license": "MIT",
|
| 267 |
+
"dependencies": {
|
| 268 |
+
"es-errors": "^1.3.0",
|
| 269 |
+
"get-intrinsic": "^1.2.6",
|
| 270 |
+
"has-tostringtag": "^1.0.2",
|
| 271 |
+
"hasown": "^2.0.2"
|
| 272 |
+
},
|
| 273 |
+
"engines": {
|
| 274 |
+
"node": ">= 0.4"
|
| 275 |
+
}
|
| 276 |
+
},
|
| 277 |
+
"node_modules/escape-html": {
|
| 278 |
+
"version": "1.0.3",
|
| 279 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
| 280 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
| 281 |
+
"license": "MIT"
|
| 282 |
+
},
|
| 283 |
+
"node_modules/etag": {
|
| 284 |
+
"version": "1.8.1",
|
| 285 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
| 286 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
| 287 |
+
"license": "MIT",
|
| 288 |
+
"engines": {
|
| 289 |
+
"node": ">= 0.6"
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
"node_modules/express": {
|
| 293 |
+
"version": "4.21.2",
|
| 294 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
| 295 |
+
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
| 296 |
+
"license": "MIT",
|
| 297 |
+
"dependencies": {
|
| 298 |
+
"accepts": "~1.3.8",
|
| 299 |
+
"array-flatten": "1.1.1",
|
| 300 |
+
"body-parser": "1.20.3",
|
| 301 |
+
"content-disposition": "0.5.4",
|
| 302 |
+
"content-type": "~1.0.4",
|
| 303 |
+
"cookie": "0.7.1",
|
| 304 |
+
"cookie-signature": "1.0.6",
|
| 305 |
+
"debug": "2.6.9",
|
| 306 |
+
"depd": "2.0.0",
|
| 307 |
+
"encodeurl": "~2.0.0",
|
| 308 |
+
"escape-html": "~1.0.3",
|
| 309 |
+
"etag": "~1.8.1",
|
| 310 |
+
"finalhandler": "1.3.1",
|
| 311 |
+
"fresh": "0.5.2",
|
| 312 |
+
"http-errors": "2.0.0",
|
| 313 |
+
"merge-descriptors": "1.0.3",
|
| 314 |
+
"methods": "~1.1.2",
|
| 315 |
+
"on-finished": "2.4.1",
|
| 316 |
+
"parseurl": "~1.3.3",
|
| 317 |
+
"path-to-regexp": "0.1.12",
|
| 318 |
+
"proxy-addr": "~2.0.7",
|
| 319 |
+
"qs": "6.13.0",
|
| 320 |
+
"range-parser": "~1.2.1",
|
| 321 |
+
"safe-buffer": "5.2.1",
|
| 322 |
+
"send": "0.19.0",
|
| 323 |
+
"serve-static": "1.16.2",
|
| 324 |
+
"setprototypeof": "1.2.0",
|
| 325 |
+
"statuses": "2.0.1",
|
| 326 |
+
"type-is": "~1.6.18",
|
| 327 |
+
"utils-merge": "1.0.1",
|
| 328 |
+
"vary": "~1.1.2"
|
| 329 |
+
},
|
| 330 |
+
"engines": {
|
| 331 |
+
"node": ">= 0.10.0"
|
| 332 |
+
},
|
| 333 |
+
"funding": {
|
| 334 |
+
"type": "opencollective",
|
| 335 |
+
"url": "https://opencollective.com/express"
|
| 336 |
+
}
|
| 337 |
+
},
|
| 338 |
+
"node_modules/finalhandler": {
|
| 339 |
+
"version": "1.3.1",
|
| 340 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
|
| 341 |
+
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
|
| 342 |
+
"license": "MIT",
|
| 343 |
+
"dependencies": {
|
| 344 |
+
"debug": "2.6.9",
|
| 345 |
+
"encodeurl": "~2.0.0",
|
| 346 |
+
"escape-html": "~1.0.3",
|
| 347 |
+
"on-finished": "2.4.1",
|
| 348 |
+
"parseurl": "~1.3.3",
|
| 349 |
+
"statuses": "2.0.1",
|
| 350 |
+
"unpipe": "~1.0.0"
|
| 351 |
+
},
|
| 352 |
+
"engines": {
|
| 353 |
+
"node": ">= 0.8"
|
| 354 |
+
}
|
| 355 |
+
},
|
| 356 |
+
"node_modules/follow-redirects": {
|
| 357 |
+
"version": "1.15.11",
|
| 358 |
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
|
| 359 |
+
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
|
| 360 |
+
"funding": [
|
| 361 |
+
{
|
| 362 |
+
"type": "individual",
|
| 363 |
+
"url": "https://github.com/sponsors/RubenVerborgh"
|
| 364 |
+
}
|
| 365 |
+
],
|
| 366 |
+
"license": "MIT",
|
| 367 |
+
"engines": {
|
| 368 |
+
"node": ">=4.0"
|
| 369 |
+
},
|
| 370 |
+
"peerDependenciesMeta": {
|
| 371 |
+
"debug": {
|
| 372 |
+
"optional": true
|
| 373 |
+
}
|
| 374 |
+
}
|
| 375 |
+
},
|
| 376 |
+
"node_modules/form-data": {
|
| 377 |
+
"version": "4.0.4",
|
| 378 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
| 379 |
+
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
| 380 |
+
"license": "MIT",
|
| 381 |
+
"dependencies": {
|
| 382 |
+
"asynckit": "^0.4.0",
|
| 383 |
+
"combined-stream": "^1.0.8",
|
| 384 |
+
"es-set-tostringtag": "^2.1.0",
|
| 385 |
+
"hasown": "^2.0.2",
|
| 386 |
+
"mime-types": "^2.1.12"
|
| 387 |
+
},
|
| 388 |
+
"engines": {
|
| 389 |
+
"node": ">= 6"
|
| 390 |
+
}
|
| 391 |
+
},
|
| 392 |
+
"node_modules/forwarded": {
|
| 393 |
+
"version": "0.2.0",
|
| 394 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
| 395 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
| 396 |
+
"license": "MIT",
|
| 397 |
+
"engines": {
|
| 398 |
+
"node": ">= 0.6"
|
| 399 |
+
}
|
| 400 |
+
},
|
| 401 |
+
"node_modules/fresh": {
|
| 402 |
+
"version": "0.5.2",
|
| 403 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
| 404 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
| 405 |
+
"license": "MIT",
|
| 406 |
+
"engines": {
|
| 407 |
+
"node": ">= 0.6"
|
| 408 |
+
}
|
| 409 |
+
},
|
| 410 |
+
"node_modules/function-bind": {
|
| 411 |
+
"version": "1.1.2",
|
| 412 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 413 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 414 |
+
"license": "MIT",
|
| 415 |
+
"funding": {
|
| 416 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
"node_modules/get-intrinsic": {
|
| 420 |
+
"version": "1.3.0",
|
| 421 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
| 422 |
+
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
| 423 |
+
"license": "MIT",
|
| 424 |
+
"dependencies": {
|
| 425 |
+
"call-bind-apply-helpers": "^1.0.2",
|
| 426 |
+
"es-define-property": "^1.0.1",
|
| 427 |
+
"es-errors": "^1.3.0",
|
| 428 |
+
"es-object-atoms": "^1.1.1",
|
| 429 |
+
"function-bind": "^1.1.2",
|
| 430 |
+
"get-proto": "^1.0.1",
|
| 431 |
+
"gopd": "^1.2.0",
|
| 432 |
+
"has-symbols": "^1.1.0",
|
| 433 |
+
"hasown": "^2.0.2",
|
| 434 |
+
"math-intrinsics": "^1.1.0"
|
| 435 |
+
},
|
| 436 |
+
"engines": {
|
| 437 |
+
"node": ">= 0.4"
|
| 438 |
+
},
|
| 439 |
+
"funding": {
|
| 440 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
"node_modules/get-proto": {
|
| 444 |
+
"version": "1.0.1",
|
| 445 |
+
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
| 446 |
+
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
| 447 |
+
"license": "MIT",
|
| 448 |
+
"dependencies": {
|
| 449 |
+
"dunder-proto": "^1.0.1",
|
| 450 |
+
"es-object-atoms": "^1.0.0"
|
| 451 |
+
},
|
| 452 |
+
"engines": {
|
| 453 |
+
"node": ">= 0.4"
|
| 454 |
+
}
|
| 455 |
+
},
|
| 456 |
+
"node_modules/gopd": {
|
| 457 |
+
"version": "1.2.0",
|
| 458 |
+
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
| 459 |
+
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
| 460 |
+
"license": "MIT",
|
| 461 |
+
"engines": {
|
| 462 |
+
"node": ">= 0.4"
|
| 463 |
+
},
|
| 464 |
+
"funding": {
|
| 465 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 466 |
+
}
|
| 467 |
+
},
|
| 468 |
+
"node_modules/has-symbols": {
|
| 469 |
+
"version": "1.1.0",
|
| 470 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
| 471 |
+
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
| 472 |
+
"license": "MIT",
|
| 473 |
+
"engines": {
|
| 474 |
+
"node": ">= 0.4"
|
| 475 |
+
},
|
| 476 |
+
"funding": {
|
| 477 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 478 |
+
}
|
| 479 |
+
},
|
| 480 |
+
"node_modules/has-tostringtag": {
|
| 481 |
+
"version": "1.0.2",
|
| 482 |
+
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
| 483 |
+
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
| 484 |
+
"license": "MIT",
|
| 485 |
+
"dependencies": {
|
| 486 |
+
"has-symbols": "^1.0.3"
|
| 487 |
+
},
|
| 488 |
+
"engines": {
|
| 489 |
+
"node": ">= 0.4"
|
| 490 |
+
},
|
| 491 |
+
"funding": {
|
| 492 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 493 |
+
}
|
| 494 |
+
},
|
| 495 |
+
"node_modules/hasown": {
|
| 496 |
+
"version": "2.0.2",
|
| 497 |
+
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 498 |
+
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
| 499 |
+
"license": "MIT",
|
| 500 |
+
"dependencies": {
|
| 501 |
+
"function-bind": "^1.1.2"
|
| 502 |
+
},
|
| 503 |
+
"engines": {
|
| 504 |
+
"node": ">= 0.4"
|
| 505 |
+
}
|
| 506 |
+
},
|
| 507 |
+
"node_modules/http-errors": {
|
| 508 |
+
"version": "2.0.0",
|
| 509 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
| 510 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
| 511 |
+
"license": "MIT",
|
| 512 |
+
"dependencies": {
|
| 513 |
+
"depd": "2.0.0",
|
| 514 |
+
"inherits": "2.0.4",
|
| 515 |
+
"setprototypeof": "1.2.0",
|
| 516 |
+
"statuses": "2.0.1",
|
| 517 |
+
"toidentifier": "1.0.1"
|
| 518 |
+
},
|
| 519 |
+
"engines": {
|
| 520 |
+
"node": ">= 0.8"
|
| 521 |
+
}
|
| 522 |
+
},
|
| 523 |
+
"node_modules/iconv-lite": {
|
| 524 |
+
"version": "0.4.24",
|
| 525 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
| 526 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
| 527 |
+
"license": "MIT",
|
| 528 |
+
"dependencies": {
|
| 529 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
| 530 |
+
},
|
| 531 |
+
"engines": {
|
| 532 |
+
"node": ">=0.10.0"
|
| 533 |
+
}
|
| 534 |
+
},
|
| 535 |
+
"node_modules/inherits": {
|
| 536 |
+
"version": "2.0.4",
|
| 537 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 538 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 539 |
+
"license": "ISC"
|
| 540 |
+
},
|
| 541 |
+
"node_modules/ipaddr.js": {
|
| 542 |
+
"version": "1.9.1",
|
| 543 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
| 544 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
| 545 |
+
"license": "MIT",
|
| 546 |
+
"engines": {
|
| 547 |
+
"node": ">= 0.10"
|
| 548 |
+
}
|
| 549 |
+
},
|
| 550 |
+
"node_modules/math-intrinsics": {
|
| 551 |
+
"version": "1.1.0",
|
| 552 |
+
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
| 553 |
+
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
| 554 |
+
"license": "MIT",
|
| 555 |
+
"engines": {
|
| 556 |
+
"node": ">= 0.4"
|
| 557 |
+
}
|
| 558 |
+
},
|
| 559 |
+
"node_modules/media-typer": {
|
| 560 |
+
"version": "0.3.0",
|
| 561 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
| 562 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
| 563 |
+
"license": "MIT",
|
| 564 |
+
"engines": {
|
| 565 |
+
"node": ">= 0.6"
|
| 566 |
+
}
|
| 567 |
+
},
|
| 568 |
+
"node_modules/merge-descriptors": {
|
| 569 |
+
"version": "1.0.3",
|
| 570 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
| 571 |
+
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
| 572 |
+
"license": "MIT",
|
| 573 |
+
"funding": {
|
| 574 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 575 |
+
}
|
| 576 |
+
},
|
| 577 |
+
"node_modules/methods": {
|
| 578 |
+
"version": "1.1.2",
|
| 579 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
| 580 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
| 581 |
+
"license": "MIT",
|
| 582 |
+
"engines": {
|
| 583 |
+
"node": ">= 0.6"
|
| 584 |
+
}
|
| 585 |
+
},
|
| 586 |
+
"node_modules/mime": {
|
| 587 |
+
"version": "1.6.0",
|
| 588 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
| 589 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
| 590 |
+
"license": "MIT",
|
| 591 |
+
"bin": {
|
| 592 |
+
"mime": "cli.js"
|
| 593 |
+
},
|
| 594 |
+
"engines": {
|
| 595 |
+
"node": ">=4"
|
| 596 |
+
}
|
| 597 |
+
},
|
| 598 |
+
"node_modules/mime-db": {
|
| 599 |
+
"version": "1.52.0",
|
| 600 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 601 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
| 602 |
+
"license": "MIT",
|
| 603 |
+
"engines": {
|
| 604 |
+
"node": ">= 0.6"
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
"node_modules/mime-types": {
|
| 608 |
+
"version": "2.1.35",
|
| 609 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 610 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 611 |
+
"license": "MIT",
|
| 612 |
+
"dependencies": {
|
| 613 |
+
"mime-db": "1.52.0"
|
| 614 |
+
},
|
| 615 |
+
"engines": {
|
| 616 |
+
"node": ">= 0.6"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
"node_modules/ms": {
|
| 620 |
+
"version": "2.0.0",
|
| 621 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
| 622 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 623 |
+
"license": "MIT"
|
| 624 |
+
},
|
| 625 |
+
"node_modules/negotiator": {
|
| 626 |
+
"version": "0.6.3",
|
| 627 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
| 628 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
| 629 |
+
"license": "MIT",
|
| 630 |
+
"engines": {
|
| 631 |
+
"node": ">= 0.6"
|
| 632 |
+
}
|
| 633 |
+
},
|
| 634 |
+
"node_modules/object-assign": {
|
| 635 |
+
"version": "4.1.1",
|
| 636 |
+
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
| 637 |
+
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
| 638 |
+
"license": "MIT",
|
| 639 |
+
"engines": {
|
| 640 |
+
"node": ">=0.10.0"
|
| 641 |
+
}
|
| 642 |
+
},
|
| 643 |
+
"node_modules/object-inspect": {
|
| 644 |
+
"version": "1.13.4",
|
| 645 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
| 646 |
+
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
| 647 |
+
"license": "MIT",
|
| 648 |
+
"engines": {
|
| 649 |
+
"node": ">= 0.4"
|
| 650 |
+
},
|
| 651 |
+
"funding": {
|
| 652 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 653 |
+
}
|
| 654 |
+
},
|
| 655 |
+
"node_modules/on-finished": {
|
| 656 |
+
"version": "2.4.1",
|
| 657 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
| 658 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
| 659 |
+
"license": "MIT",
|
| 660 |
+
"dependencies": {
|
| 661 |
+
"ee-first": "1.1.1"
|
| 662 |
+
},
|
| 663 |
+
"engines": {
|
| 664 |
+
"node": ">= 0.8"
|
| 665 |
+
}
|
| 666 |
+
},
|
| 667 |
+
"node_modules/parseurl": {
|
| 668 |
+
"version": "1.3.3",
|
| 669 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 670 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 671 |
+
"license": "MIT",
|
| 672 |
+
"engines": {
|
| 673 |
+
"node": ">= 0.8"
|
| 674 |
+
}
|
| 675 |
+
},
|
| 676 |
+
"node_modules/path-to-regexp": {
|
| 677 |
+
"version": "0.1.12",
|
| 678 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
| 679 |
+
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
| 680 |
+
"license": "MIT"
|
| 681 |
+
},
|
| 682 |
+
"node_modules/proxy-addr": {
|
| 683 |
+
"version": "2.0.7",
|
| 684 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
| 685 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
| 686 |
+
"license": "MIT",
|
| 687 |
+
"dependencies": {
|
| 688 |
+
"forwarded": "0.2.0",
|
| 689 |
+
"ipaddr.js": "1.9.1"
|
| 690 |
+
},
|
| 691 |
+
"engines": {
|
| 692 |
+
"node": ">= 0.10"
|
| 693 |
+
}
|
| 694 |
+
},
|
| 695 |
+
"node_modules/proxy-from-env": {
|
| 696 |
+
"version": "1.1.0",
|
| 697 |
+
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 698 |
+
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 699 |
+
"license": "MIT"
|
| 700 |
+
},
|
| 701 |
+
"node_modules/qs": {
|
| 702 |
+
"version": "6.13.0",
|
| 703 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
|
| 704 |
+
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
| 705 |
+
"license": "BSD-3-Clause",
|
| 706 |
+
"dependencies": {
|
| 707 |
+
"side-channel": "^1.0.6"
|
| 708 |
+
},
|
| 709 |
+
"engines": {
|
| 710 |
+
"node": ">=0.6"
|
| 711 |
+
},
|
| 712 |
+
"funding": {
|
| 713 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 714 |
+
}
|
| 715 |
+
},
|
| 716 |
+
"node_modules/range-parser": {
|
| 717 |
+
"version": "1.2.1",
|
| 718 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
| 719 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
| 720 |
+
"license": "MIT",
|
| 721 |
+
"engines": {
|
| 722 |
+
"node": ">= 0.6"
|
| 723 |
+
}
|
| 724 |
+
},
|
| 725 |
+
"node_modules/raw-body": {
|
| 726 |
+
"version": "2.5.2",
|
| 727 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
|
| 728 |
+
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
| 729 |
+
"license": "MIT",
|
| 730 |
+
"dependencies": {
|
| 731 |
+
"bytes": "3.1.2",
|
| 732 |
+
"http-errors": "2.0.0",
|
| 733 |
+
"iconv-lite": "0.4.24",
|
| 734 |
+
"unpipe": "1.0.0"
|
| 735 |
+
},
|
| 736 |
+
"engines": {
|
| 737 |
+
"node": ">= 0.8"
|
| 738 |
+
}
|
| 739 |
+
},
|
| 740 |
+
"node_modules/safe-buffer": {
|
| 741 |
+
"version": "5.2.1",
|
| 742 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
| 743 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
| 744 |
+
"funding": [
|
| 745 |
+
{
|
| 746 |
+
"type": "github",
|
| 747 |
+
"url": "https://github.com/sponsors/feross"
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "patreon",
|
| 751 |
+
"url": "https://www.patreon.com/feross"
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "consulting",
|
| 755 |
+
"url": "https://feross.org/support"
|
| 756 |
+
}
|
| 757 |
+
],
|
| 758 |
+
"license": "MIT"
|
| 759 |
+
},
|
| 760 |
+
"node_modules/safer-buffer": {
|
| 761 |
+
"version": "2.1.2",
|
| 762 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
| 763 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 764 |
+
"license": "MIT"
|
| 765 |
+
},
|
| 766 |
+
"node_modules/send": {
|
| 767 |
+
"version": "0.19.0",
|
| 768 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
| 769 |
+
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
| 770 |
+
"license": "MIT",
|
| 771 |
+
"dependencies": {
|
| 772 |
+
"debug": "2.6.9",
|
| 773 |
+
"depd": "2.0.0",
|
| 774 |
+
"destroy": "1.2.0",
|
| 775 |
+
"encodeurl": "~1.0.2",
|
| 776 |
+
"escape-html": "~1.0.3",
|
| 777 |
+
"etag": "~1.8.1",
|
| 778 |
+
"fresh": "0.5.2",
|
| 779 |
+
"http-errors": "2.0.0",
|
| 780 |
+
"mime": "1.6.0",
|
| 781 |
+
"ms": "2.1.3",
|
| 782 |
+
"on-finished": "2.4.1",
|
| 783 |
+
"range-parser": "~1.2.1",
|
| 784 |
+
"statuses": "2.0.1"
|
| 785 |
+
},
|
| 786 |
+
"engines": {
|
| 787 |
+
"node": ">= 0.8.0"
|
| 788 |
+
}
|
| 789 |
+
},
|
| 790 |
+
"node_modules/send/node_modules/encodeurl": {
|
| 791 |
+
"version": "1.0.2",
|
| 792 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
| 793 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
| 794 |
+
"license": "MIT",
|
| 795 |
+
"engines": {
|
| 796 |
+
"node": ">= 0.8"
|
| 797 |
+
}
|
| 798 |
+
},
|
| 799 |
+
"node_modules/send/node_modules/ms": {
|
| 800 |
+
"version": "2.1.3",
|
| 801 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 802 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 803 |
+
"license": "MIT"
|
| 804 |
+
},
|
| 805 |
+
"node_modules/serve-static": {
|
| 806 |
+
"version": "1.16.2",
|
| 807 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
| 808 |
+
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
| 809 |
+
"license": "MIT",
|
| 810 |
+
"dependencies": {
|
| 811 |
+
"encodeurl": "~2.0.0",
|
| 812 |
+
"escape-html": "~1.0.3",
|
| 813 |
+
"parseurl": "~1.3.3",
|
| 814 |
+
"send": "0.19.0"
|
| 815 |
+
},
|
| 816 |
+
"engines": {
|
| 817 |
+
"node": ">= 0.8.0"
|
| 818 |
+
}
|
| 819 |
+
},
|
| 820 |
+
"node_modules/setprototypeof": {
|
| 821 |
+
"version": "1.2.0",
|
| 822 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
| 823 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
| 824 |
+
"license": "ISC"
|
| 825 |
+
},
|
| 826 |
+
"node_modules/side-channel": {
|
| 827 |
+
"version": "1.1.0",
|
| 828 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
| 829 |
+
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
| 830 |
+
"license": "MIT",
|
| 831 |
+
"dependencies": {
|
| 832 |
+
"es-errors": "^1.3.0",
|
| 833 |
+
"object-inspect": "^1.13.3",
|
| 834 |
+
"side-channel-list": "^1.0.0",
|
| 835 |
+
"side-channel-map": "^1.0.1",
|
| 836 |
+
"side-channel-weakmap": "^1.0.2"
|
| 837 |
+
},
|
| 838 |
+
"engines": {
|
| 839 |
+
"node": ">= 0.4"
|
| 840 |
+
},
|
| 841 |
+
"funding": {
|
| 842 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 843 |
+
}
|
| 844 |
+
},
|
| 845 |
+
"node_modules/side-channel-list": {
|
| 846 |
+
"version": "1.0.0",
|
| 847 |
+
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
| 848 |
+
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
| 849 |
+
"license": "MIT",
|
| 850 |
+
"dependencies": {
|
| 851 |
+
"es-errors": "^1.3.0",
|
| 852 |
+
"object-inspect": "^1.13.3"
|
| 853 |
+
},
|
| 854 |
+
"engines": {
|
| 855 |
+
"node": ">= 0.4"
|
| 856 |
+
},
|
| 857 |
+
"funding": {
|
| 858 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 859 |
+
}
|
| 860 |
+
},
|
| 861 |
+
"node_modules/side-channel-map": {
|
| 862 |
+
"version": "1.0.1",
|
| 863 |
+
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
| 864 |
+
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
| 865 |
+
"license": "MIT",
|
| 866 |
+
"dependencies": {
|
| 867 |
+
"call-bound": "^1.0.2",
|
| 868 |
+
"es-errors": "^1.3.0",
|
| 869 |
+
"get-intrinsic": "^1.2.5",
|
| 870 |
+
"object-inspect": "^1.13.3"
|
| 871 |
+
},
|
| 872 |
+
"engines": {
|
| 873 |
+
"node": ">= 0.4"
|
| 874 |
+
},
|
| 875 |
+
"funding": {
|
| 876 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 877 |
+
}
|
| 878 |
+
},
|
| 879 |
+
"node_modules/side-channel-weakmap": {
|
| 880 |
+
"version": "1.0.2",
|
| 881 |
+
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
| 882 |
+
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
| 883 |
+
"license": "MIT",
|
| 884 |
+
"dependencies": {
|
| 885 |
+
"call-bound": "^1.0.2",
|
| 886 |
+
"es-errors": "^1.3.0",
|
| 887 |
+
"get-intrinsic": "^1.2.5",
|
| 888 |
+
"object-inspect": "^1.13.3",
|
| 889 |
+
"side-channel-map": "^1.0.1"
|
| 890 |
+
},
|
| 891 |
+
"engines": {
|
| 892 |
+
"node": ">= 0.4"
|
| 893 |
+
},
|
| 894 |
+
"funding": {
|
| 895 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 896 |
+
}
|
| 897 |
+
},
|
| 898 |
+
"node_modules/statuses": {
|
| 899 |
+
"version": "2.0.1",
|
| 900 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
| 901 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
| 902 |
+
"license": "MIT",
|
| 903 |
+
"engines": {
|
| 904 |
+
"node": ">= 0.8"
|
| 905 |
+
}
|
| 906 |
+
},
|
| 907 |
+
"node_modules/toidentifier": {
|
| 908 |
+
"version": "1.0.1",
|
| 909 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
| 910 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
| 911 |
+
"license": "MIT",
|
| 912 |
+
"engines": {
|
| 913 |
+
"node": ">=0.6"
|
| 914 |
+
}
|
| 915 |
+
},
|
| 916 |
+
"node_modules/type-is": {
|
| 917 |
+
"version": "1.6.18",
|
| 918 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
| 919 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
| 920 |
+
"license": "MIT",
|
| 921 |
+
"dependencies": {
|
| 922 |
+
"media-typer": "0.3.0",
|
| 923 |
+
"mime-types": "~2.1.24"
|
| 924 |
+
},
|
| 925 |
+
"engines": {
|
| 926 |
+
"node": ">= 0.6"
|
| 927 |
+
}
|
| 928 |
+
},
|
| 929 |
+
"node_modules/unpipe": {
|
| 930 |
+
"version": "1.0.0",
|
| 931 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
| 932 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
| 933 |
+
"license": "MIT",
|
| 934 |
+
"engines": {
|
| 935 |
+
"node": ">= 0.8"
|
| 936 |
+
}
|
| 937 |
+
},
|
| 938 |
+
"node_modules/utils-merge": {
|
| 939 |
+
"version": "1.0.1",
|
| 940 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
| 941 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
| 942 |
+
"license": "MIT",
|
| 943 |
+
"engines": {
|
| 944 |
+
"node": ">= 0.4.0"
|
| 945 |
+
}
|
| 946 |
+
},
|
| 947 |
+
"node_modules/vary": {
|
| 948 |
+
"version": "1.1.2",
|
| 949 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
| 950 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
| 951 |
+
"license": "MIT",
|
| 952 |
+
"engines": {
|
| 953 |
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
1.3.8 / 2022-02-02
|
| 2 |
+
==================
|
| 3 |
+
|
| 4 |
+
* deps: mime-types@~2.1.34
|
| 5 |
+
- deps: mime-db@~1.51.0
|
| 6 |
+
* deps: negotiator@0.6.3
|
| 7 |
+
|
| 8 |
+
1.3.7 / 2019-04-29
|
| 9 |
+
==================
|
| 10 |
+
|
| 11 |
+
* deps: negotiator@0.6.2
|
| 12 |
+
- Fix sorting charset, encoding, and language with extra parameters
|
| 13 |
+
|
| 14 |
+
1.3.6 / 2019-04-28
|
| 15 |
+
==================
|
| 16 |
+
|
| 17 |
+
* deps: mime-types@~2.1.24
|
| 18 |
+
- deps: mime-db@~1.40.0
|
| 19 |
+
|
| 20 |
+
1.3.5 / 2018-02-28
|
| 21 |
+
==================
|
| 22 |
+
|
| 23 |
+
* deps: mime-types@~2.1.18
|
| 24 |
+
- deps: mime-db@~1.33.0
|
| 25 |
+
|
| 26 |
+
1.3.4 / 2017-08-22
|
| 27 |
+
==================
|
| 28 |
+
|
| 29 |
+
* deps: mime-types@~2.1.16
|
| 30 |
+
- deps: mime-db@~1.29.0
|
| 31 |
+
|
| 32 |
+
1.3.3 / 2016-05-02
|
| 33 |
+
==================
|
| 34 |
+
|
| 35 |
+
* deps: mime-types@~2.1.11
|
| 36 |
+
- deps: mime-db@~1.23.0
|
| 37 |
+
* deps: negotiator@0.6.1
|
| 38 |
+
- perf: improve `Accept` parsing speed
|
| 39 |
+
- perf: improve `Accept-Charset` parsing speed
|
| 40 |
+
- perf: improve `Accept-Encoding` parsing speed
|
| 41 |
+
- perf: improve `Accept-Language` parsing speed
|
| 42 |
+
|
| 43 |
+
1.3.2 / 2016-03-08
|
| 44 |
+
==================
|
| 45 |
+
|
| 46 |
+
* deps: mime-types@~2.1.10
|
| 47 |
+
- Fix extension of `application/dash+xml`
|
| 48 |
+
- Update primary extension for `audio/mp4`
|
| 49 |
+
- deps: mime-db@~1.22.0
|
| 50 |
+
|
| 51 |
+
1.3.1 / 2016-01-19
|
| 52 |
+
==================
|
| 53 |
+
|
| 54 |
+
* deps: mime-types@~2.1.9
|
| 55 |
+
- deps: mime-db@~1.21.0
|
| 56 |
+
|
| 57 |
+
1.3.0 / 2015-09-29
|
| 58 |
+
==================
|
| 59 |
+
|
| 60 |
+
* deps: mime-types@~2.1.7
|
| 61 |
+
- deps: mime-db@~1.19.0
|
| 62 |
+
* deps: negotiator@0.6.0
|
| 63 |
+
- Fix including type extensions in parameters in `Accept` parsing
|
| 64 |
+
- Fix parsing `Accept` parameters with quoted equals
|
| 65 |
+
- Fix parsing `Accept` parameters with quoted semicolons
|
| 66 |
+
- Lazy-load modules from main entry point
|
| 67 |
+
- perf: delay type concatenation until needed
|
| 68 |
+
- perf: enable strict mode
|
| 69 |
+
- perf: hoist regular expressions
|
| 70 |
+
- perf: remove closures getting spec properties
|
| 71 |
+
- perf: remove a closure from media type parsing
|
| 72 |
+
- perf: remove property delete from media type parsing
|
| 73 |
+
|
| 74 |
+
1.2.13 / 2015-09-06
|
| 75 |
+
===================
|
| 76 |
+
|
| 77 |
+
* deps: mime-types@~2.1.6
|
| 78 |
+
- deps: mime-db@~1.18.0
|
| 79 |
+
|
| 80 |
+
1.2.12 / 2015-07-30
|
| 81 |
+
===================
|
| 82 |
+
|
| 83 |
+
* deps: mime-types@~2.1.4
|
| 84 |
+
- deps: mime-db@~1.16.0
|
| 85 |
+
|
| 86 |
+
1.2.11 / 2015-07-16
|
| 87 |
+
===================
|
| 88 |
+
|
| 89 |
+
* deps: mime-types@~2.1.3
|
| 90 |
+
- deps: mime-db@~1.15.0
|
| 91 |
+
|
| 92 |
+
1.2.10 / 2015-07-01
|
| 93 |
+
===================
|
| 94 |
+
|
| 95 |
+
* deps: mime-types@~2.1.2
|
| 96 |
+
- deps: mime-db@~1.14.0
|
| 97 |
+
|
| 98 |
+
1.2.9 / 2015-06-08
|
| 99 |
+
==================
|
| 100 |
+
|
| 101 |
+
* deps: mime-types@~2.1.1
|
| 102 |
+
- perf: fix deopt during mapping
|
| 103 |
+
|
| 104 |
+
1.2.8 / 2015-06-07
|
| 105 |
+
==================
|
| 106 |
+
|
| 107 |
+
* deps: mime-types@~2.1.0
|
| 108 |
+
- deps: mime-db@~1.13.0
|
| 109 |
+
* perf: avoid argument reassignment & argument slice
|
| 110 |
+
* perf: avoid negotiator recursive construction
|
| 111 |
+
* perf: enable strict mode
|
| 112 |
+
* perf: remove unnecessary bitwise operator
|
| 113 |
+
|
| 114 |
+
1.2.7 / 2015-05-10
|
| 115 |
+
==================
|
| 116 |
+
|
| 117 |
+
* deps: negotiator@0.5.3
|
| 118 |
+
- Fix media type parameter matching to be case-insensitive
|
| 119 |
+
|
| 120 |
+
1.2.6 / 2015-05-07
|
| 121 |
+
==================
|
| 122 |
+
|
| 123 |
+
* deps: mime-types@~2.0.11
|
| 124 |
+
- deps: mime-db@~1.9.1
|
| 125 |
+
* deps: negotiator@0.5.2
|
| 126 |
+
- Fix comparing media types with quoted values
|
| 127 |
+
- Fix splitting media types with quoted commas
|
| 128 |
+
|
| 129 |
+
1.2.5 / 2015-03-13
|
| 130 |
+
==================
|
| 131 |
+
|
| 132 |
+
* deps: mime-types@~2.0.10
|
| 133 |
+
- deps: mime-db@~1.8.0
|
| 134 |
+
|
| 135 |
+
1.2.4 / 2015-02-14
|
| 136 |
+
==================
|
| 137 |
+
|
| 138 |
+
* Support Node.js 0.6
|
| 139 |
+
* deps: mime-types@~2.0.9
|
| 140 |
+
- deps: mime-db@~1.7.0
|
| 141 |
+
* deps: negotiator@0.5.1
|
| 142 |
+
- Fix preference sorting to be stable for long acceptable lists
|
| 143 |
+
|
| 144 |
+
1.2.3 / 2015-01-31
|
| 145 |
+
==================
|
| 146 |
+
|
| 147 |
+
* deps: mime-types@~2.0.8
|
| 148 |
+
- deps: mime-db@~1.6.0
|
| 149 |
+
|
| 150 |
+
1.2.2 / 2014-12-30
|
| 151 |
+
==================
|
| 152 |
+
|
| 153 |
+
* deps: mime-types@~2.0.7
|
| 154 |
+
- deps: mime-db@~1.5.0
|
| 155 |
+
|
| 156 |
+
1.2.1 / 2014-12-30
|
| 157 |
+
==================
|
| 158 |
+
|
| 159 |
+
* deps: mime-types@~2.0.5
|
| 160 |
+
- deps: mime-db@~1.3.1
|
| 161 |
+
|
| 162 |
+
1.2.0 / 2014-12-19
|
| 163 |
+
==================
|
| 164 |
+
|
| 165 |
+
* deps: negotiator@0.5.0
|
| 166 |
+
- Fix list return order when large accepted list
|
| 167 |
+
- Fix missing identity encoding when q=0 exists
|
| 168 |
+
- Remove dynamic building of Negotiator class
|
| 169 |
+
|
| 170 |
+
1.1.4 / 2014-12-10
|
| 171 |
+
==================
|
| 172 |
+
|
| 173 |
+
* deps: mime-types@~2.0.4
|
| 174 |
+
- deps: mime-db@~1.3.0
|
| 175 |
+
|
| 176 |
+
1.1.3 / 2014-11-09
|
| 177 |
+
==================
|
| 178 |
+
|
| 179 |
+
* deps: mime-types@~2.0.3
|
| 180 |
+
- deps: mime-db@~1.2.0
|
| 181 |
+
|
| 182 |
+
1.1.2 / 2014-10-14
|
| 183 |
+
==================
|
| 184 |
+
|
| 185 |
+
* deps: negotiator@0.4.9
|
| 186 |
+
- Fix error when media type has invalid parameter
|
| 187 |
+
|
| 188 |
+
1.1.1 / 2014-09-28
|
| 189 |
+
==================
|
| 190 |
+
|
| 191 |
+
* deps: mime-types@~2.0.2
|
| 192 |
+
- deps: mime-db@~1.1.0
|
| 193 |
+
* deps: negotiator@0.4.8
|
| 194 |
+
- Fix all negotiations to be case-insensitive
|
| 195 |
+
- Stable sort preferences of same quality according to client order
|
| 196 |
+
|
| 197 |
+
1.1.0 / 2014-09-02
|
| 198 |
+
==================
|
| 199 |
+
|
| 200 |
+
* update `mime-types`
|
| 201 |
+
|
| 202 |
+
1.0.7 / 2014-07-04
|
| 203 |
+
==================
|
| 204 |
+
|
| 205 |
+
* Fix wrong type returned from `type` when match after unknown extension
|
| 206 |
+
|
| 207 |
+
1.0.6 / 2014-06-24
|
| 208 |
+
==================
|
| 209 |
+
|
| 210 |
+
* deps: negotiator@0.4.7
|
| 211 |
+
|
| 212 |
+
1.0.5 / 2014-06-20
|
| 213 |
+
==================
|
| 214 |
+
|
| 215 |
+
* fix crash when unknown extension given
|
| 216 |
+
|
| 217 |
+
1.0.4 / 2014-06-19
|
| 218 |
+
==================
|
| 219 |
+
|
| 220 |
+
* use `mime-types`
|
| 221 |
+
|
| 222 |
+
1.0.3 / 2014-06-11
|
| 223 |
+
==================
|
| 224 |
+
|
| 225 |
+
* deps: negotiator@0.4.6
|
| 226 |
+
- Order by specificity when quality is the same
|
| 227 |
+
|
| 228 |
+
1.0.2 / 2014-05-29
|
| 229 |
+
==================
|
| 230 |
+
|
| 231 |
+
* Fix interpretation when header not in request
|
| 232 |
+
* deps: pin negotiator@0.4.5
|
| 233 |
+
|
| 234 |
+
1.0.1 / 2014-01-18
|
| 235 |
+
==================
|
| 236 |
+
|
| 237 |
+
* Identity encoding isn't always acceptable
|
| 238 |
+
* deps: negotiator@~0.4.0
|
| 239 |
+
|
| 240 |
+
1.0.0 / 2013-12-27
|
| 241 |
+
==================
|
| 242 |
+
|
| 243 |
+
* Genesis
|
node_modules/accepts/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(The MIT License)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
|
| 4 |
+
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
|
| 5 |
+
|
| 6 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 7 |
+
a copy of this software and associated documentation files (the
|
| 8 |
+
'Software'), to deal in the Software without restriction, including
|
| 9 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 10 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 11 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 12 |
+
the following conditions:
|
| 13 |
+
|
| 14 |
+
The above copyright notice and this permission notice shall be
|
| 15 |
+
included in all copies or substantial portions of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
| 18 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 19 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 20 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 21 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 22 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF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][npm-downloads-image]][npm-url]
|
| 5 |
+
[![Node.js Version][node-version-image]][node-version-url]
|
| 6 |
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
| 7 |
+
[![Test Coverage][coveralls-image]][coveralls-url]
|
| 8 |
+
|
| 9 |
+
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
|
| 10 |
+
Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
|
| 11 |
+
|
| 12 |
+
In addition to negotiator, it allows:
|
| 13 |
+
|
| 14 |
+
- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
|
| 15 |
+
as well as `('text/html', 'application/json')`.
|
| 16 |
+
- Allows type shorthands such as `json`.
|
| 17 |
+
- Returns `false` when no types match
|
| 18 |
+
- Treats non-existent headers as `*`
|
| 19 |
+
|
| 20 |
+
## Installation
|
| 21 |
+
|
| 22 |
+
This is a [Node.js](https://nodejs.org/en/) module available through the
|
| 23 |
+
[npm registry](https://www.npmjs.com/). Installation is done using the
|
| 24 |
+
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
| 25 |
+
|
| 26 |
+
```sh
|
| 27 |
+
$ npm install accepts
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## API
|
| 31 |
+
|
| 32 |
+
```js
|
| 33 |
+
var accepts = require('accepts')
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
### accepts(req)
|
| 37 |
+
|
| 38 |
+
Create a new `Accepts` object for the given `req`.
|
| 39 |
+
|
| 40 |
+
#### .charset(charsets)
|
| 41 |
+
|
| 42 |
+
Return the first accepted charset. If nothing in `charsets` is accepted,
|
| 43 |
+
then `false` is returned.
|
| 44 |
+
|
| 45 |
+
#### .charsets()
|
| 46 |
+
|
| 47 |
+
Return the charsets that the request accepts, in the order of the client's
|
| 48 |
+
preference (most preferred first).
|
| 49 |
+
|
| 50 |
+
#### .encoding(encodings)
|
| 51 |
+
|
| 52 |
+
Return the first accepted encoding. If nothing in `encodings` is accepted,
|
| 53 |
+
then `false` is returned.
|
| 54 |
+
|
| 55 |
+
#### .encodings()
|
| 56 |
+
|
| 57 |
+
Return the encodings that the request accepts, in the order of the client's
|
| 58 |
+
preference (most preferred first).
|
| 59 |
+
|
| 60 |
+
#### .language(languages)
|
| 61 |
+
|
| 62 |
+
Return the first accepted language. If nothing in `languages` is accepted,
|
| 63 |
+
then `false` is returned.
|
| 64 |
+
|
| 65 |
+
#### .languages()
|
| 66 |
+
|
| 67 |
+
Return the languages that the request accepts, in the order of the client's
|
| 68 |
+
preference (most preferred first).
|
| 69 |
+
|
| 70 |
+
#### .type(types)
|
| 71 |
+
|
| 72 |
+
Return the first accepted type (and it is returned as the same text as what
|
| 73 |
+
appears in the `types` array). If nothing in `types` is accepted, then `false`
|
| 74 |
+
is returned.
|
| 75 |
+
|
| 76 |
+
The `types` array can contain full MIME types or file extensions. Any value
|
| 77 |
+
that is not a full MIME types is passed to `require('mime-types').lookup`.
|
| 78 |
+
|
| 79 |
+
#### .types()
|
| 80 |
+
|
| 81 |
+
Return the types that the request accepts, in the order of the client's
|
| 82 |
+
preference (most preferred first).
|
| 83 |
+
|
| 84 |
+
## Examples
|
| 85 |
+
|
| 86 |
+
### Simple type negotiation
|
| 87 |
+
|
| 88 |
+
This simple example shows how to use `accepts` to return a different typed
|
| 89 |
+
respond body based on what the client wants to accept. The server lists it's
|
| 90 |
+
preferences in order and will get back the best match between the client and
|
| 91 |
+
server.
|
| 92 |
+
|
| 93 |
+
```js
|
| 94 |
+
var accepts = require('accepts')
|
| 95 |
+
var http = require('http')
|
| 96 |
+
|
| 97 |
+
function app (req, res) {
|
| 98 |
+
var accept = accepts(req)
|
| 99 |
+
|
| 100 |
+
// the order of this list is significant; should be server preferred order
|
| 101 |
+
switch (accept.type(['json', 'html'])) {
|
| 102 |
+
case 'json':
|
| 103 |
+
res.setHeader('Content-Type', 'application/json')
|
| 104 |
+
res.write('{"hello":"world!"}')
|
| 105 |
+
break
|
| 106 |
+
case 'html':
|
| 107 |
+
res.setHeader('Content-Type', 'text/html')
|
| 108 |
+
res.write('<b>hello, world!</b>')
|
| 109 |
+
break
|
| 110 |
+
default:
|
| 111 |
+
// the fallback is text/plain, so no need to specify it above
|
| 112 |
+
res.setHeader('Content-Type', 'text/plain')
|
| 113 |
+
res.write('hello, world!')
|
| 114 |
+
break
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
res.end()
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
http.createServer(app).listen(3000)
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
You can test this out with the cURL program:
|
| 124 |
+
```sh
|
| 125 |
+
curl -I -H'Accept: text/html' http://localhost:3000/
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
## License
|
| 129 |
+
|
| 130 |
+
[MIT](LICENSE)
|
| 131 |
+
|
| 132 |
+
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master
|
| 133 |
+
[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master
|
| 134 |
+
[github-actions-ci-image]: https://badgen.net/github/checks/jshttp/accepts/master?label=ci
|
| 135 |
+
[github-actions-ci-url]: https://github.com/jshttp/accepts/actions/workflows/ci.yml
|
| 136 |
+
[node-version-image]: https://badgen.net/npm/node/accepts
|
| 137 |
+
[node-version-url]: https://nodejs.org/en/download
|
| 138 |
+
[npm-downloads-image]: https://badgen.net/npm/dm/accepts
|
| 139 |
+
[npm-url]: https://npmjs.org/package/accepts
|
| 140 |
+
[npm-version-image]: https://badgen.net/npm/v/accepts
|
node_modules/accepts/index.js
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!
|
| 2 |
+
* accepts
|
| 3 |
+
* Copyright(c) 2014 Jonathan Ong
|
| 4 |
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
| 5 |
+
* MIT Licensed
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
'use strict'
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Module dependencies.
|
| 12 |
+
* @private
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
var Negotiator = require('negotiator')
|
| 16 |
+
var mime = require('mime-types')
|
| 17 |
+
|
| 18 |
+
/**
|
| 19 |
+
* Module exports.
|
| 20 |
+
* @public
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
module.exports = Accepts
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* Create a new Accepts object for the given req.
|
| 27 |
+
*
|
| 28 |
+
* @param {object} req
|
| 29 |
+
* @public
|
| 30 |
+
*/
|
| 31 |
+
|
| 32 |
+
function Accepts (req) {
|
| 33 |
+
if (!(this instanceof Accepts)) {
|
| 34 |
+
return new Accepts(req)
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
this.headers = req.headers
|
| 38 |
+
this.negotiator = new Negotiator(req)
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* Check if the given `type(s)` is acceptable, returning
|
| 43 |
+
* the best match when true, otherwise `undefined`, in which
|
| 44 |
+
* case you should respond with 406 "Not Acceptable".
|
| 45 |
+
*
|
| 46 |
+
* The `type` value may be a single mime type string
|
| 47 |
+
* such as "application/json", the extension name
|
| 48 |
+
* such as "json" or an array `["json", "html", "text/plain"]`. When a list
|
| 49 |
+
* or array is given the _best_ match, if any is returned.
|
| 50 |
+
*
|
| 51 |
+
* Examples:
|
| 52 |
+
*
|
| 53 |
+
* // Accept: text/html
|
| 54 |
+
* this.types('html');
|
| 55 |
+
* // => "html"
|
| 56 |
+
*
|
| 57 |
+
* // Accept: text/*, application/json
|
| 58 |
+
* this.types('html');
|
| 59 |
+
* // => "html"
|
| 60 |
+
* this.types('text/html');
|
| 61 |
+
* // => "text/html"
|
| 62 |
+
* this.types('json', 'text');
|
| 63 |
+
* // => "json"
|
| 64 |
+
* this.types('application/json');
|
| 65 |
+
* // => "application/json"
|
| 66 |
+
*
|
| 67 |
+
* // Accept: text/*, application/json
|
| 68 |
+
* this.types('image/png');
|
| 69 |
+
* this.types('png');
|
| 70 |
+
* // => undefined
|
| 71 |
+
*
|
| 72 |
+
* // Accept: text/*;q=.5, application/json
|
| 73 |
+
* this.types(['html', 'json']);
|
| 74 |
+
* this.types('html', 'json');
|
| 75 |
+
* // => "json"
|
| 76 |
+
*
|
| 77 |
+
* @param {String|Array} types...
|
| 78 |
+
* @return {String|Array|Boolean}
|
| 79 |
+
* @public
|
| 80 |
+
*/
|
| 81 |
+
|
| 82 |
+
Accepts.prototype.type =
|
| 83 |
+
Accepts.prototype.types = function (types_) {
|
| 84 |
+
var types = types_
|
| 85 |
+
|
| 86 |
+
// support flattened arguments
|
| 87 |
+
if (types && !Array.isArray(types)) {
|
| 88 |
+
types = new Array(arguments.length)
|
| 89 |
+
for (var i = 0; i < types.length; i++) {
|
| 90 |
+
types[i] = arguments[i]
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
// no types, return all requested types
|
| 95 |
+
if (!types || types.length === 0) {
|
| 96 |
+
return this.negotiator.mediaTypes()
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
// no accept header, return first given type
|
| 100 |
+
if (!this.headers.accept) {
|
| 101 |
+
return types[0]
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
var mimes = types.map(extToMime)
|
| 105 |
+
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
|
| 106 |
+
var first = accepts[0]
|
| 107 |
+
|
| 108 |
+
return first
|
| 109 |
+
? types[mimes.indexOf(first)]
|
| 110 |
+
: false
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/**
|
| 114 |
+
* Return accepted encodings or best fit based on `encodings`.
|
| 115 |
+
*
|
| 116 |
+
* Given `Accept-Encoding: gzip, deflate`
|
| 117 |
+
* an array sorted by quality is returned:
|
| 118 |
+
*
|
| 119 |
+
* ['gzip', 'deflate']
|
| 120 |
+
*
|
| 121 |
+
* @param {String|Array} encodings...
|
| 122 |
+
* @return {String|Array}
|
| 123 |
+
* @public
|
| 124 |
+
*/
|
| 125 |
+
|
| 126 |
+
Accepts.prototype.encoding =
|
| 127 |
+
Accepts.prototype.encodings = function (encodings_) {
|
| 128 |
+
var encodings = encodings_
|
| 129 |
+
|
| 130 |
+
// support flattened arguments
|
| 131 |
+
if (encodings && !Array.isArray(encodings)) {
|
| 132 |
+
encodings = new Array(arguments.length)
|
| 133 |
+
for (var i = 0; i < encodings.length; i++) {
|
| 134 |
+
encodings[i] = arguments[i]
|
| 135 |
+
}
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
// no encodings, return all requested encodings
|
| 139 |
+
if (!encodings || encodings.length === 0) {
|
| 140 |
+
return this.negotiator.encodings()
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
return this.negotiator.encodings(encodings)[0] || false
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
/**
|
| 147 |
+
* Return accepted charsets or best fit based on `charsets`.
|
| 148 |
+
*
|
| 149 |
+
* Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
|
| 150 |
+
* an array sorted by quality is returned:
|
| 151 |
+
*
|
| 152 |
+
* ['utf-8', 'utf-7', 'iso-8859-1']
|
| 153 |
+
*
|
| 154 |
+
* @param {String|Array} charsets...
|
| 155 |
+
* @return {String|Array}
|
| 156 |
+
* @public
|
| 157 |
+
*/
|
| 158 |
+
|
| 159 |
+
Accepts.prototype.charset =
|
| 160 |
+
Accepts.prototype.charsets = function (charsets_) {
|
| 161 |
+
var charsets = charsets_
|
| 162 |
+
|
| 163 |
+
// support flattened arguments
|
| 164 |
+
if (charsets && !Array.isArray(charsets)) {
|
| 165 |
+
charsets = new Array(arguments.length)
|
| 166 |
+
for (var i = 0; i < charsets.length; i++) {
|
| 167 |
+
charsets[i] = arguments[i]
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
// no charsets, return all requested charsets
|
| 172 |
+
if (!charsets || charsets.length === 0) {
|
| 173 |
+
return this.negotiator.charsets()
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
return this.negotiator.charsets(charsets)[0] || false
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
/**
|
| 180 |
+
* Return accepted languages or best fit based on `langs`.
|
| 181 |
+
*
|
| 182 |
+
* Given `Accept-Language: en;q=0.8, es, pt`
|
| 183 |
+
* an array sorted by quality is returned:
|
| 184 |
+
*
|
| 185 |
+
* ['es', 'pt', 'en']
|
| 186 |
+
*
|
| 187 |
+
* @param {String|Array} langs...
|
| 188 |
+
* @return {Array|String}
|
| 189 |
+
* @public
|
| 190 |
+
*/
|
| 191 |
+
|
| 192 |
+
Accepts.prototype.lang =
|
| 193 |
+
Accepts.prototype.langs =
|
| 194 |
+
Accepts.prototype.language =
|
| 195 |
+
Accepts.prototype.languages = function (languages_) {
|
| 196 |
+
var languages = languages_
|
| 197 |
+
|
| 198 |
+
// support flattened arguments
|
| 199 |
+
if (languages && !Array.isArray(languages)) {
|
| 200 |
+
languages = new Array(arguments.length)
|
| 201 |
+
for (var i = 0; i < languages.length; i++) {
|
| 202 |
+
languages[i] = arguments[i]
|
| 203 |
+
}
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
// no languages, return all requested languages
|
| 207 |
+
if (!languages || languages.length === 0) {
|
| 208 |
+
return this.negotiator.languages()
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
return this.negotiator.languages(languages)[0] || false
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
/**
|
| 215 |
+
* Convert extnames to mime.
|
| 216 |
+
*
|
| 217 |
+
* @param {String} type
|
| 218 |
+
* @return {String}
|
| 219 |
+
* @private
|
| 220 |
+
*/
|
| 221 |
+
|
| 222 |
+
function extToMime (type) {
|
| 223 |
+
return type.indexOf('/') === -1
|
| 224 |
+
? mime.lookup(type)
|
| 225 |
+
: type
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
/**
|
| 229 |
+
* Check if mime is valid.
|
| 230 |
+
*
|
| 231 |
+
* @param {String} type
|
| 232 |
+
* @return {String}
|
| 233 |
+
* @private
|
| 234 |
+
*/
|
| 235 |
+
|
| 236 |
+
function validMime (type) {
|
| 237 |
+
return typeof type === 'string'
|
| 238 |
+
}
|
node_modules/accepts/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "accepts",
|
| 3 |
+
"description": "Higher-level content negotiation",
|
| 4 |
+
"version": "1.3.8",
|
| 5 |
+
"contributors": [
|
| 6 |
+
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
| 7 |
+
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
| 8 |
+
],
|
| 9 |
+
"license": "MIT",
|
| 10 |
+
"repository": "jshttp/accepts",
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"mime-types": "~2.1.34",
|
| 13 |
+
"negotiator": "0.6.3"
|
| 14 |
+
},
|
| 15 |
+
"devDependencies": {
|
| 16 |
+
"deep-equal": "1.0.1",
|
| 17 |
+
"eslint": "7.32.0",
|
| 18 |
+
"eslint-config-standard": "14.1.1",
|
| 19 |
+
"eslint-plugin-import": "2.25.4",
|
| 20 |
+
"eslint-plugin-markdown": "2.2.1",
|
| 21 |
+
"eslint-plugin-node": "11.1.0",
|
| 22 |
+
"eslint-plugin-promise": "4.3.1",
|
| 23 |
+
"eslint-plugin-standard": "4.1.0",
|
| 24 |
+
"mocha": "9.2.0",
|
| 25 |
+
"nyc": "15.1.0"
|
| 26 |
+
},
|
| 27 |
+
"files": [
|
| 28 |
+
"LICENSE",
|
| 29 |
+
"HISTORY.md",
|
| 30 |
+
"index.js"
|
| 31 |
+
],
|
| 32 |
+
"engines": {
|
| 33 |
+
"node": ">= 0.6"
|
| 34 |
+
},
|
| 35 |
+
"scripts": {
|
| 36 |
+
"lint": "eslint .",
|
| 37 |
+
"test": "mocha --reporter spec --check-leaks --bail test/",
|
| 38 |
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
| 39 |
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
| 40 |
+
},
|
| 41 |
+
"keywords": [
|
| 42 |
+
"content",
|
| 43 |
+
"negotiation",
|
| 44 |
+
"accept",
|
| 45 |
+
"accepts"
|
| 46 |
+
]
|
| 47 |
+
}
|
node_modules/array-flatten/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in
|
| 13 |
+
all copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 21 |
+
THE SOFTWARE.
|
node_modules/array-flatten/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Array Flatten
|
| 2 |
+
|
| 3 |
+
[![NPM version][npm-image]][npm-url]
|
| 4 |
+
[![NPM downloads][downloads-image]][downloads-url]
|
| 5 |
+
[![Build status][travis-image]][travis-url]
|
| 6 |
+
[![Test coverage][coveralls-image]][coveralls-url]
|
| 7 |
+
|
| 8 |
+
> Flatten an array of nested arrays into a single flat array. Accepts an optional depth.
|
| 9 |
+
|
| 10 |
+
## Installation
|
| 11 |
+
|
| 12 |
+
```
|
| 13 |
+
npm install array-flatten --save
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
## Usage
|
| 17 |
+
|
| 18 |
+
```javascript
|
| 19 |
+
var flatten = require('array-flatten')
|
| 20 |
+
|
| 21 |
+
flatten([1, [2, [3, [4, [5], 6], 7], 8], 9])
|
| 22 |
+
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
|
| 23 |
+
|
| 24 |
+
flatten([1, [2, [3, [4, [5], 6], 7], 8], 9], 2)
|
| 25 |
+
//=> [1, 2, 3, [4, [5], 6], 7, 8, 9]
|
| 26 |
+
|
| 27 |
+
(function () {
|
| 28 |
+
flatten(arguments) //=> [1, 2, 3]
|
| 29 |
+
})(1, [2, 3])
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## License
|
| 33 |
+
|
| 34 |
+
MIT
|
| 35 |
+
|
| 36 |
+
[npm-image]: https://img.shields.io/npm/v/array-flatten.svg?style=flat
|
| 37 |
+
[npm-url]: https://npmjs.org/package/array-flatten
|
| 38 |
+
[downloads-image]: https://img.shields.io/npm/dm/array-flatten.svg?style=flat
|
| 39 |
+
[downloads-url]: https://npmjs.org/package/array-flatten
|
| 40 |
+
[travis-image]: https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat
|
| 41 |
+
[travis-url]: https://travis-ci.org/blakeembrey/array-flatten
|
| 42 |
+
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat
|
| 43 |
+
[coveralls-url]: https://coveralls.io/r/blakeembrey/array-flatten?branch=master
|
node_modules/array-flatten/array-flatten.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Expose `arrayFlatten`.
|
| 5 |
+
*/
|
| 6 |
+
module.exports = arrayFlatten
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Recursive flatten function with depth.
|
| 10 |
+
*
|
| 11 |
+
* @param {Array} array
|
| 12 |
+
* @param {Array} result
|
| 13 |
+
* @param {Number} depth
|
| 14 |
+
* @return {Array}
|
| 15 |
+
*/
|
| 16 |
+
function flattenWithDepth (array, result, depth) {
|
| 17 |
+
for (var i = 0; i < array.length; i++) {
|
| 18 |
+
var value = array[i]
|
| 19 |
+
|
| 20 |
+
if (depth > 0 && Array.isArray(value)) {
|
| 21 |
+
flattenWithDepth(value, result, depth - 1)
|
| 22 |
+
} else {
|
| 23 |
+
result.push(value)
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
return result
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Recursive flatten function. Omitting depth is slightly faster.
|
| 32 |
+
*
|
| 33 |
+
* @param {Array} array
|
| 34 |
+
* @param {Array} result
|
| 35 |
+
* @return {Array}
|
| 36 |
+
*/
|
| 37 |
+
function flattenForever (array, result) {
|
| 38 |
+
for (var i = 0; i < array.length; i++) {
|
| 39 |
+
var value = array[i]
|
| 40 |
+
|
| 41 |
+
if (Array.isArray(value)) {
|
| 42 |
+
flattenForever(value, result)
|
| 43 |
+
} else {
|
| 44 |
+
result.push(value)
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
return result
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/**
|
| 52 |
+
* Flatten an array, with the ability to define a depth.
|
| 53 |
+
*
|
| 54 |
+
* @param {Array} array
|
| 55 |
+
* @param {Number} depth
|
| 56 |
+
* @return {Array}
|
| 57 |
+
*/
|
| 58 |
+
function arrayFlatten (array, depth) {
|
| 59 |
+
if (depth == null) {
|
| 60 |
+
return flattenForever(array, [])
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
return flattenWithDepth(array, [], depth)
|
| 64 |
+
}
|
node_modules/array-flatten/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "array-flatten",
|
| 3 |
+
"version": "1.1.1",
|
| 4 |
+
"description": "Flatten an array of nested arrays into a single flat array",
|
| 5 |
+
"main": "array-flatten.js",
|
| 6 |
+
"files": [
|
| 7 |
+
"array-flatten.js",
|
| 8 |
+
"LICENSE"
|
| 9 |
+
],
|
| 10 |
+
"scripts": {
|
| 11 |
+
"test": "istanbul cover _mocha -- -R spec"
|
| 12 |
+
},
|
| 13 |
+
"repository": {
|
| 14 |
+
"type": "git",
|
| 15 |
+
"url": "git://github.com/blakeembrey/array-flatten.git"
|
| 16 |
+
},
|
| 17 |
+
"keywords": [
|
| 18 |
+
"array",
|
| 19 |
+
"flatten",
|
| 20 |
+
"arguments",
|
| 21 |
+
"depth"
|
| 22 |
+
],
|
| 23 |
+
"author": {
|
| 24 |
+
"name": "Blake Embrey",
|
| 25 |
+
"email": "hello@blakeembrey.com",
|
| 26 |
+
"url": "http://blakeembrey.me"
|
| 27 |
+
},
|
| 28 |
+
"license": "MIT",
|
| 29 |
+
"bugs": {
|
| 30 |
+
"url": "https://github.com/blakeembrey/array-flatten/issues"
|
| 31 |
+
},
|
| 32 |
+
"homepage": "https://github.com/blakeembrey/array-flatten",
|
| 33 |
+
"devDependencies": {
|
| 34 |
+
"istanbul": "^0.3.13",
|
| 35 |
+
"mocha": "^2.2.4",
|
| 36 |
+
"pre-commit": "^1.0.7",
|
| 37 |
+
"standard": "^3.7.3"
|
| 38 |
+
}
|
| 39 |
+
}
|
node_modules/asynckit/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2016 Alex Indigo
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
node_modules/asynckit/README.md
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# asynckit [](https://www.npmjs.com/package/asynckit)
|
| 2 |
+
|
| 3 |
+
Minimal async jobs utility library, with streams support.
|
| 4 |
+
|
| 5 |
+
[](https://travis-ci.org/alexindigo/asynckit)
|
| 6 |
+
[](https://travis-ci.org/alexindigo/asynckit)
|
| 7 |
+
[](https://ci.appveyor.com/project/alexindigo/asynckit)
|
| 8 |
+
|
| 9 |
+
[](https://coveralls.io/github/alexindigo/asynckit?branch=master)
|
| 10 |
+
[](https://david-dm.org/alexindigo/asynckit)
|
| 11 |
+
[](https://www.bithound.io/github/alexindigo/asynckit)
|
| 12 |
+
|
| 13 |
+
<!-- [](https://www.npmjs.com/package/reamde) -->
|
| 14 |
+
|
| 15 |
+
AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects.
|
| 16 |
+
Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method.
|
| 17 |
+
|
| 18 |
+
It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators.
|
| 19 |
+
|
| 20 |
+
| compression | size |
|
| 21 |
+
| :----------------- | -------: |
|
| 22 |
+
| asynckit.js | 12.34 kB |
|
| 23 |
+
| asynckit.min.js | 4.11 kB |
|
| 24 |
+
| asynckit.min.js.gz | 1.47 kB |
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
## Install
|
| 28 |
+
|
| 29 |
+
```sh
|
| 30 |
+
$ npm install --save asynckit
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Examples
|
| 34 |
+
|
| 35 |
+
### Parallel Jobs
|
| 36 |
+
|
| 37 |
+
Runs iterator over provided array in parallel. Stores output in the `result` array,
|
| 38 |
+
on the matching positions. In unlikely event of an error from one of the jobs,
|
| 39 |
+
will terminate rest of the active jobs (if abort function is provided)
|
| 40 |
+
and return error along with salvaged data to the main callback function.
|
| 41 |
+
|
| 42 |
+
#### Input Array
|
| 43 |
+
|
| 44 |
+
```javascript
|
| 45 |
+
var parallel = require('asynckit').parallel
|
| 46 |
+
, assert = require('assert')
|
| 47 |
+
;
|
| 48 |
+
|
| 49 |
+
var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
|
| 50 |
+
, expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
|
| 51 |
+
, expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
|
| 52 |
+
, target = []
|
| 53 |
+
;
|
| 54 |
+
|
| 55 |
+
parallel(source, asyncJob, function(err, result)
|
| 56 |
+
{
|
| 57 |
+
assert.deepEqual(result, expectedResult);
|
| 58 |
+
assert.deepEqual(target, expectedTarget);
|
| 59 |
+
});
|
| 60 |
+
|
| 61 |
+
// async job accepts one element from the array
|
| 62 |
+
// and a callback function
|
| 63 |
+
function asyncJob(item, cb)
|
| 64 |
+
{
|
| 65 |
+
// different delays (in ms) per item
|
| 66 |
+
var delay = item * 25;
|
| 67 |
+
|
| 68 |
+
// pretend different jobs take different time to finish
|
| 69 |
+
// and not in consequential order
|
| 70 |
+
var timeoutId = setTimeout(function() {
|
| 71 |
+
target.push(item);
|
| 72 |
+
cb(null, item * 2);
|
| 73 |
+
}, delay);
|
| 74 |
+
|
| 75 |
+
// allow to cancel "leftover" jobs upon error
|
| 76 |
+
// return function, invoking of which will abort this job
|
| 77 |
+
return clearTimeout.bind(null, timeoutId);
|
| 78 |
+
}
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js).
|
| 82 |
+
|
| 83 |
+
#### Input Object
|
| 84 |
+
|
| 85 |
+
Also it supports named jobs, listed via object.
|
| 86 |
+
|
| 87 |
+
```javascript
|
| 88 |
+
var parallel = require('asynckit/parallel')
|
| 89 |
+
, assert = require('assert')
|
| 90 |
+
;
|
| 91 |
+
|
| 92 |
+
var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
|
| 93 |
+
, expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
|
| 94 |
+
, expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
|
| 95 |
+
, expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ]
|
| 96 |
+
, target = []
|
| 97 |
+
, keys = []
|
| 98 |
+
;
|
| 99 |
+
|
| 100 |
+
parallel(source, asyncJob, function(err, result)
|
| 101 |
+
{
|
| 102 |
+
assert.deepEqual(result, expectedResult);
|
| 103 |
+
assert.deepEqual(target, expectedTarget);
|
| 104 |
+
assert.deepEqual(keys, expectedKeys);
|
| 105 |
+
});
|
| 106 |
+
|
| 107 |
+
// supports full value, key, callback (shortcut) interface
|
| 108 |
+
function asyncJob(item, key, cb)
|
| 109 |
+
{
|
| 110 |
+
// different delays (in ms) per item
|
| 111 |
+
var delay = item * 25;
|
| 112 |
+
|
| 113 |
+
// pretend different jobs take different time to finish
|
| 114 |
+
// and not in consequential order
|
| 115 |
+
var timeoutId = setTimeout(function() {
|
| 116 |
+
keys.push(key);
|
| 117 |
+
target.push(item);
|
| 118 |
+
cb(null, item * 2);
|
| 119 |
+
}, delay);
|
| 120 |
+
|
| 121 |
+
// allow to cancel "leftover" jobs upon error
|
| 122 |
+
// return function, invoking of which will abort this job
|
| 123 |
+
return clearTimeout.bind(null, timeoutId);
|
| 124 |
+
}
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js).
|
| 128 |
+
|
| 129 |
+
### Serial Jobs
|
| 130 |
+
|
| 131 |
+
Runs iterator over provided array sequentially. Stores output in the `result` array,
|
| 132 |
+
on the matching positions. In unlikely event of an error from one of the jobs,
|
| 133 |
+
will not proceed to the rest of the items in the list
|
| 134 |
+
and return error along with salvaged data to the main callback function.
|
| 135 |
+
|
| 136 |
+
#### Input Array
|
| 137 |
+
|
| 138 |
+
```javascript
|
| 139 |
+
var serial = require('asynckit/serial')
|
| 140 |
+
, assert = require('assert')
|
| 141 |
+
;
|
| 142 |
+
|
| 143 |
+
var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
|
| 144 |
+
, expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
|
| 145 |
+
, expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
|
| 146 |
+
, target = []
|
| 147 |
+
;
|
| 148 |
+
|
| 149 |
+
serial(source, asyncJob, function(err, result)
|
| 150 |
+
{
|
| 151 |
+
assert.deepEqual(result, expectedResult);
|
| 152 |
+
assert.deepEqual(target, expectedTarget);
|
| 153 |
+
});
|
| 154 |
+
|
| 155 |
+
// extended interface (item, key, callback)
|
| 156 |
+
// also supported for arrays
|
| 157 |
+
function asyncJob(item, key, cb)
|
| 158 |
+
{
|
| 159 |
+
target.push(key);
|
| 160 |
+
|
| 161 |
+
// it will be automatically made async
|
| 162 |
+
// even it iterator "returns" in the same event loop
|
| 163 |
+
cb(null, item * 2);
|
| 164 |
+
}
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
More examples could be found in [test/test-serial-array.js](test/test-serial-array.js).
|
| 168 |
+
|
| 169 |
+
#### Input Object
|
| 170 |
+
|
| 171 |
+
Also it supports named jobs, listed via object.
|
| 172 |
+
|
| 173 |
+
```javascript
|
| 174 |
+
var serial = require('asynckit').serial
|
| 175 |
+
, assert = require('assert')
|
| 176 |
+
;
|
| 177 |
+
|
| 178 |
+
var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
|
| 179 |
+
, expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
|
| 180 |
+
, expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
|
| 181 |
+
, target = []
|
| 182 |
+
;
|
| 183 |
+
|
| 184 |
+
var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
|
| 185 |
+
, expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
|
| 186 |
+
, expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
|
| 187 |
+
, target = []
|
| 188 |
+
;
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
serial(source, asyncJob, function(err, result)
|
| 192 |
+
{
|
| 193 |
+
assert.deepEqual(result, expectedResult);
|
| 194 |
+
assert.deepEqual(target, expectedTarget);
|
| 195 |
+
});
|
| 196 |
+
|
| 197 |
+
// shortcut interface (item, callback)
|
| 198 |
+
// works for object as well as for the arrays
|
| 199 |
+
function asyncJob(item, cb)
|
| 200 |
+
{
|
| 201 |
+
target.push(item);
|
| 202 |
+
|
| 203 |
+
// it will be automatically made async
|
| 204 |
+
// even it iterator "returns" in the same event loop
|
| 205 |
+
cb(null, item * 2);
|
| 206 |
+
}
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
More examples could be found in [test/test-serial-object.js](test/test-serial-object.js).
|
| 210 |
+
|
| 211 |
+
_Note: Since _object_ is an _unordered_ collection of properties,
|
| 212 |
+
it may produce unexpected results with sequential iterations.
|
| 213 |
+
Whenever order of the jobs' execution is important please use `serialOrdered` method._
|
| 214 |
+
|
| 215 |
+
### Ordered Serial Iterations
|
| 216 |
+
|
| 217 |
+
TBD
|
| 218 |
+
|
| 219 |
+
For example [compare-property](compare-property) package.
|
| 220 |
+
|
| 221 |
+
### Streaming interface
|
| 222 |
+
|
| 223 |
+
TBD
|
| 224 |
+
|
| 225 |
+
## Want to Know More?
|
| 226 |
+
|
| 227 |
+
More examples can be found in [test folder](test/).
|
| 228 |
+
|
| 229 |
+
Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions.
|
| 230 |
+
|
| 231 |
+
## License
|
| 232 |
+
|
| 233 |
+
AsyncKit is licensed under the MIT license.
|
node_modules/asynckit/bench.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* eslint no-console: "off" */
|
| 2 |
+
|
| 3 |
+
var asynckit = require('./')
|
| 4 |
+
, async = require('async')
|
| 5 |
+
, assert = require('assert')
|
| 6 |
+
, expected = 0
|
| 7 |
+
;
|
| 8 |
+
|
| 9 |
+
var Benchmark = require('benchmark');
|
| 10 |
+
var suite = new Benchmark.Suite;
|
| 11 |
+
|
| 12 |
+
var source = [];
|
| 13 |
+
for (var z = 1; z < 100; z++)
|
| 14 |
+
{
|
| 15 |
+
source.push(z);
|
| 16 |
+
expected += z;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
suite
|
| 20 |
+
// add tests
|
| 21 |
+
|
| 22 |
+
.add('async.map', function(deferred)
|
| 23 |
+
{
|
| 24 |
+
var total = 0;
|
| 25 |
+
|
| 26 |
+
async.map(source,
|
| 27 |
+
function(i, cb)
|
| 28 |
+
{
|
| 29 |
+
setImmediate(function()
|
| 30 |
+
{
|
| 31 |
+
total += i;
|
| 32 |
+
cb(null, total);
|
| 33 |
+
});
|
| 34 |
+
},
|
| 35 |
+
function(err, result)
|
| 36 |
+
{
|
| 37 |
+
assert.ifError(err);
|
| 38 |
+
assert.equal(result[result.length - 1], expected);
|
| 39 |
+
deferred.resolve();
|
| 40 |
+
});
|
| 41 |
+
}, {'defer': true})
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
.add('asynckit.parallel', function(deferred)
|
| 45 |
+
{
|
| 46 |
+
var total = 0;
|
| 47 |
+
|
| 48 |
+
asynckit.parallel(source,
|
| 49 |
+
function(i, cb)
|
| 50 |
+
{
|
| 51 |
+
setImmediate(function()
|
| 52 |
+
{
|
| 53 |
+
total += i;
|
| 54 |
+
cb(null, total);
|
| 55 |
+
});
|
| 56 |
+
},
|
| 57 |
+
function(err, result)
|
| 58 |
+
{
|
| 59 |
+
assert.ifError(err);
|
| 60 |
+
assert.equal(result[result.length - 1], expected);
|
| 61 |
+
deferred.resolve();
|
| 62 |
+
});
|
| 63 |
+
}, {'defer': true})
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
// add listeners
|
| 67 |
+
.on('cycle', function(ev)
|
| 68 |
+
{
|
| 69 |
+
console.log(String(ev.target));
|
| 70 |
+
})
|
| 71 |
+
.on('complete', function()
|
| 72 |
+
{
|
| 73 |
+
console.log('Fastest is ' + this.filter('fastest').map('name'));
|
| 74 |
+
})
|
| 75 |
+
// run async
|
| 76 |
+
.run({ 'async': true });
|
node_modules/asynckit/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports =
|
| 2 |
+
{
|
| 3 |
+
parallel : require('./parallel.js'),
|
| 4 |
+
serial : require('./serial.js'),
|
| 5 |
+
serialOrdered : require('./serialOrdered.js')
|
| 6 |
+
};
|
node_modules/asynckit/lib/abort.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// API
|
| 2 |
+
module.exports = abort;
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* Aborts leftover active jobs
|
| 6 |
+
*
|
| 7 |
+
* @param {object} state - current state object
|
| 8 |
+
*/
|
| 9 |
+
function abort(state)
|
| 10 |
+
{
|
| 11 |
+
Object.keys(state.jobs).forEach(clean.bind(state));
|
| 12 |
+
|
| 13 |
+
// reset leftover jobs
|
| 14 |
+
state.jobs = {};
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
/**
|
| 18 |
+
* Cleans up leftover job by invoking abort function for the provided job id
|
| 19 |
+
*
|
| 20 |
+
* @this state
|
| 21 |
+
* @param {string|number} key - job id to abort
|
| 22 |
+
*/
|
| 23 |
+
function clean(key)
|
| 24 |
+
{
|
| 25 |
+
if (typeof this.jobs[key] == 'function')
|
| 26 |
+
{
|
| 27 |
+
this.jobs[key]();
|
| 28 |
+
}
|
| 29 |
+
}
|
node_modules/asynckit/lib/async.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var defer = require('./defer.js');
|
| 2 |
+
|
| 3 |
+
// API
|
| 4 |
+
module.exports = async;
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* Runs provided callback asynchronously
|
| 8 |
+
* even if callback itself is not
|
| 9 |
+
*
|
| 10 |
+
* @param {function} callback - callback to invoke
|
| 11 |
+
* @returns {function} - augmented callback
|
| 12 |
+
*/
|
| 13 |
+
function async(callback)
|
| 14 |
+
{
|
| 15 |
+
var isAsync = false;
|
| 16 |
+
|
| 17 |
+
// check if async happened
|
| 18 |
+
defer(function() { isAsync = true; });
|
| 19 |
+
|
| 20 |
+
return function async_callback(err, result)
|
| 21 |
+
{
|
| 22 |
+
if (isAsync)
|
| 23 |
+
{
|
| 24 |
+
callback(err, result);
|
| 25 |
+
}
|
| 26 |
+
else
|
| 27 |
+
{
|
| 28 |
+
defer(function nextTick_callback()
|
| 29 |
+
{
|
| 30 |
+
callback(err, result);
|
| 31 |
+
});
|
| 32 |
+
}
|
| 33 |
+
};
|
| 34 |
+
}
|
node_modules/asynckit/lib/defer.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = defer;
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Runs provided function on next iteration of the event loop
|
| 5 |
+
*
|
| 6 |
+
* @param {function} fn - function to run
|
| 7 |
+
*/
|
| 8 |
+
function defer(fn)
|
| 9 |
+
{
|
| 10 |
+
var nextTick = typeof setImmediate == 'function'
|
| 11 |
+
? setImmediate
|
| 12 |
+
: (
|
| 13 |
+
typeof process == 'object' && typeof process.nextTick == 'function'
|
| 14 |
+
? process.nextTick
|
| 15 |
+
: null
|
| 16 |
+
);
|
| 17 |
+
|
| 18 |
+
if (nextTick)
|
| 19 |
+
{
|
| 20 |
+
nextTick(fn);
|
| 21 |
+
}
|
| 22 |
+
else
|
| 23 |
+
{
|
| 24 |
+
setTimeout(fn, 0);
|
| 25 |
+
}
|
| 26 |
+
}
|
node_modules/asynckit/lib/iterate.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var async = require('./async.js')
|
| 2 |
+
, abort = require('./abort.js')
|
| 3 |
+
;
|
| 4 |
+
|
| 5 |
+
// API
|
| 6 |
+
module.exports = iterate;
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Iterates over each job object
|
| 10 |
+
*
|
| 11 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 12 |
+
* @param {function} iterator - iterator to run
|
| 13 |
+
* @param {object} state - current job status
|
| 14 |
+
* @param {function} callback - invoked when all elements processed
|
| 15 |
+
*/
|
| 16 |
+
function iterate(list, iterator, state, callback)
|
| 17 |
+
{
|
| 18 |
+
// store current index
|
| 19 |
+
var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;
|
| 20 |
+
|
| 21 |
+
state.jobs[key] = runJob(iterator, key, list[key], function(error, output)
|
| 22 |
+
{
|
| 23 |
+
// don't repeat yourself
|
| 24 |
+
// skip secondary callbacks
|
| 25 |
+
if (!(key in state.jobs))
|
| 26 |
+
{
|
| 27 |
+
return;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
// clean up jobs
|
| 31 |
+
delete state.jobs[key];
|
| 32 |
+
|
| 33 |
+
if (error)
|
| 34 |
+
{
|
| 35 |
+
// don't process rest of the results
|
| 36 |
+
// stop still active jobs
|
| 37 |
+
// and reset the list
|
| 38 |
+
abort(state);
|
| 39 |
+
}
|
| 40 |
+
else
|
| 41 |
+
{
|
| 42 |
+
state.results[key] = output;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
// return salvaged results
|
| 46 |
+
callback(error, state.results);
|
| 47 |
+
});
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
/**
|
| 51 |
+
* Runs iterator over provided job element
|
| 52 |
+
*
|
| 53 |
+
* @param {function} iterator - iterator to invoke
|
| 54 |
+
* @param {string|number} key - key/index of the element in the list of jobs
|
| 55 |
+
* @param {mixed} item - job description
|
| 56 |
+
* @param {function} callback - invoked after iterator is done with the job
|
| 57 |
+
* @returns {function|mixed} - job abort function or something else
|
| 58 |
+
*/
|
| 59 |
+
function runJob(iterator, key, item, callback)
|
| 60 |
+
{
|
| 61 |
+
var aborter;
|
| 62 |
+
|
| 63 |
+
// allow shortcut if iterator expects only two arguments
|
| 64 |
+
if (iterator.length == 2)
|
| 65 |
+
{
|
| 66 |
+
aborter = iterator(item, async(callback));
|
| 67 |
+
}
|
| 68 |
+
// otherwise go with full three arguments
|
| 69 |
+
else
|
| 70 |
+
{
|
| 71 |
+
aborter = iterator(item, key, async(callback));
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
return aborter;
|
| 75 |
+
}
|
node_modules/asynckit/lib/readable_asynckit.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var streamify = require('./streamify.js')
|
| 2 |
+
, defer = require('./defer.js')
|
| 3 |
+
;
|
| 4 |
+
|
| 5 |
+
// API
|
| 6 |
+
module.exports = ReadableAsyncKit;
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Base constructor for all streams
|
| 10 |
+
* used to hold properties/methods
|
| 11 |
+
*/
|
| 12 |
+
function ReadableAsyncKit()
|
| 13 |
+
{
|
| 14 |
+
ReadableAsyncKit.super_.apply(this, arguments);
|
| 15 |
+
|
| 16 |
+
// list of active jobs
|
| 17 |
+
this.jobs = {};
|
| 18 |
+
|
| 19 |
+
// add stream methods
|
| 20 |
+
this.destroy = destroy;
|
| 21 |
+
this._start = _start;
|
| 22 |
+
this._read = _read;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* Destroys readable stream,
|
| 27 |
+
* by aborting outstanding jobs
|
| 28 |
+
*
|
| 29 |
+
* @returns {void}
|
| 30 |
+
*/
|
| 31 |
+
function destroy()
|
| 32 |
+
{
|
| 33 |
+
if (this.destroyed)
|
| 34 |
+
{
|
| 35 |
+
return;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
this.destroyed = true;
|
| 39 |
+
|
| 40 |
+
if (typeof this.terminator == 'function')
|
| 41 |
+
{
|
| 42 |
+
this.terminator();
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Starts provided jobs in async manner
|
| 48 |
+
*
|
| 49 |
+
* @private
|
| 50 |
+
*/
|
| 51 |
+
function _start()
|
| 52 |
+
{
|
| 53 |
+
// first argument – runner function
|
| 54 |
+
var runner = arguments[0]
|
| 55 |
+
// take away first argument
|
| 56 |
+
, args = Array.prototype.slice.call(arguments, 1)
|
| 57 |
+
// second argument - input data
|
| 58 |
+
, input = args[0]
|
| 59 |
+
// last argument - result callback
|
| 60 |
+
, endCb = streamify.callback.call(this, args[args.length - 1])
|
| 61 |
+
;
|
| 62 |
+
|
| 63 |
+
args[args.length - 1] = endCb;
|
| 64 |
+
// third argument - iterator
|
| 65 |
+
args[1] = streamify.iterator.call(this, args[1]);
|
| 66 |
+
|
| 67 |
+
// allow time for proper setup
|
| 68 |
+
defer(function()
|
| 69 |
+
{
|
| 70 |
+
if (!this.destroyed)
|
| 71 |
+
{
|
| 72 |
+
this.terminator = runner.apply(null, args);
|
| 73 |
+
}
|
| 74 |
+
else
|
| 75 |
+
{
|
| 76 |
+
endCb(null, Array.isArray(input) ? [] : {});
|
| 77 |
+
}
|
| 78 |
+
}.bind(this));
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Implement _read to comply with Readable streams
|
| 84 |
+
* Doesn't really make sense for flowing object mode
|
| 85 |
+
*
|
| 86 |
+
* @private
|
| 87 |
+
*/
|
| 88 |
+
function _read()
|
| 89 |
+
{
|
| 90 |
+
|
| 91 |
+
}
|
node_modules/asynckit/lib/readable_parallel.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var parallel = require('../parallel.js');
|
| 2 |
+
|
| 3 |
+
// API
|
| 4 |
+
module.exports = ReadableParallel;
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* Streaming wrapper to `asynckit.parallel`
|
| 8 |
+
*
|
| 9 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 10 |
+
* @param {function} iterator - iterator to run
|
| 11 |
+
* @param {function} callback - invoked when all elements processed
|
| 12 |
+
* @returns {stream.Readable#}
|
| 13 |
+
*/
|
| 14 |
+
function ReadableParallel(list, iterator, callback)
|
| 15 |
+
{
|
| 16 |
+
if (!(this instanceof ReadableParallel))
|
| 17 |
+
{
|
| 18 |
+
return new ReadableParallel(list, iterator, callback);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
// turn on object mode
|
| 22 |
+
ReadableParallel.super_.call(this, {objectMode: true});
|
| 23 |
+
|
| 24 |
+
this._start(parallel, list, iterator, callback);
|
| 25 |
+
}
|
node_modules/asynckit/lib/readable_serial.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var serial = require('../serial.js');
|
| 2 |
+
|
| 3 |
+
// API
|
| 4 |
+
module.exports = ReadableSerial;
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* Streaming wrapper to `asynckit.serial`
|
| 8 |
+
*
|
| 9 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 10 |
+
* @param {function} iterator - iterator to run
|
| 11 |
+
* @param {function} callback - invoked when all elements processed
|
| 12 |
+
* @returns {stream.Readable#}
|
| 13 |
+
*/
|
| 14 |
+
function ReadableSerial(list, iterator, callback)
|
| 15 |
+
{
|
| 16 |
+
if (!(this instanceof ReadableSerial))
|
| 17 |
+
{
|
| 18 |
+
return new ReadableSerial(list, iterator, callback);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
// turn on object mode
|
| 22 |
+
ReadableSerial.super_.call(this, {objectMode: true});
|
| 23 |
+
|
| 24 |
+
this._start(serial, list, iterator, callback);
|
| 25 |
+
}
|
node_modules/asynckit/lib/readable_serial_ordered.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var serialOrdered = require('../serialOrdered.js');
|
| 2 |
+
|
| 3 |
+
// API
|
| 4 |
+
module.exports = ReadableSerialOrdered;
|
| 5 |
+
// expose sort helpers
|
| 6 |
+
module.exports.ascending = serialOrdered.ascending;
|
| 7 |
+
module.exports.descending = serialOrdered.descending;
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Streaming wrapper to `asynckit.serialOrdered`
|
| 11 |
+
*
|
| 12 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 13 |
+
* @param {function} iterator - iterator to run
|
| 14 |
+
* @param {function} sortMethod - custom sort function
|
| 15 |
+
* @param {function} callback - invoked when all elements processed
|
| 16 |
+
* @returns {stream.Readable#}
|
| 17 |
+
*/
|
| 18 |
+
function ReadableSerialOrdered(list, iterator, sortMethod, callback)
|
| 19 |
+
{
|
| 20 |
+
if (!(this instanceof ReadableSerialOrdered))
|
| 21 |
+
{
|
| 22 |
+
return new ReadableSerialOrdered(list, iterator, sortMethod, callback);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
// turn on object mode
|
| 26 |
+
ReadableSerialOrdered.super_.call(this, {objectMode: true});
|
| 27 |
+
|
| 28 |
+
this._start(serialOrdered, list, iterator, sortMethod, callback);
|
| 29 |
+
}
|
node_modules/asynckit/lib/state.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// API
|
| 2 |
+
module.exports = state;
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* Creates initial state object
|
| 6 |
+
* for iteration over list
|
| 7 |
+
*
|
| 8 |
+
* @param {array|object} list - list to iterate over
|
| 9 |
+
* @param {function|null} sortMethod - function to use for keys sort,
|
| 10 |
+
* or `null` to keep them as is
|
| 11 |
+
* @returns {object} - initial state object
|
| 12 |
+
*/
|
| 13 |
+
function state(list, sortMethod)
|
| 14 |
+
{
|
| 15 |
+
var isNamedList = !Array.isArray(list)
|
| 16 |
+
, initState =
|
| 17 |
+
{
|
| 18 |
+
index : 0,
|
| 19 |
+
keyedList: isNamedList || sortMethod ? Object.keys(list) : null,
|
| 20 |
+
jobs : {},
|
| 21 |
+
results : isNamedList ? {} : [],
|
| 22 |
+
size : isNamedList ? Object.keys(list).length : list.length
|
| 23 |
+
}
|
| 24 |
+
;
|
| 25 |
+
|
| 26 |
+
if (sortMethod)
|
| 27 |
+
{
|
| 28 |
+
// sort array keys based on it's values
|
| 29 |
+
// sort object's keys just on own merit
|
| 30 |
+
initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)
|
| 31 |
+
{
|
| 32 |
+
return sortMethod(list[a], list[b]);
|
| 33 |
+
});
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
return initState;
|
| 37 |
+
}
|
node_modules/asynckit/lib/streamify.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var async = require('./async.js');
|
| 2 |
+
|
| 3 |
+
// API
|
| 4 |
+
module.exports = {
|
| 5 |
+
iterator: wrapIterator,
|
| 6 |
+
callback: wrapCallback
|
| 7 |
+
};
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Wraps iterators with long signature
|
| 11 |
+
*
|
| 12 |
+
* @this ReadableAsyncKit#
|
| 13 |
+
* @param {function} iterator - function to wrap
|
| 14 |
+
* @returns {function} - wrapped function
|
| 15 |
+
*/
|
| 16 |
+
function wrapIterator(iterator)
|
| 17 |
+
{
|
| 18 |
+
var stream = this;
|
| 19 |
+
|
| 20 |
+
return function(item, key, cb)
|
| 21 |
+
{
|
| 22 |
+
var aborter
|
| 23 |
+
, wrappedCb = async(wrapIteratorCallback.call(stream, cb, key))
|
| 24 |
+
;
|
| 25 |
+
|
| 26 |
+
stream.jobs[key] = wrappedCb;
|
| 27 |
+
|
| 28 |
+
// it's either shortcut (item, cb)
|
| 29 |
+
if (iterator.length == 2)
|
| 30 |
+
{
|
| 31 |
+
aborter = iterator(item, wrappedCb);
|
| 32 |
+
}
|
| 33 |
+
// or long format (item, key, cb)
|
| 34 |
+
else
|
| 35 |
+
{
|
| 36 |
+
aborter = iterator(item, key, wrappedCb);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
return aborter;
|
| 40 |
+
};
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Wraps provided callback function
|
| 45 |
+
* allowing to execute snitch function before
|
| 46 |
+
* real callback
|
| 47 |
+
*
|
| 48 |
+
* @this ReadableAsyncKit#
|
| 49 |
+
* @param {function} callback - function to wrap
|
| 50 |
+
* @returns {function} - wrapped function
|
| 51 |
+
*/
|
| 52 |
+
function wrapCallback(callback)
|
| 53 |
+
{
|
| 54 |
+
var stream = this;
|
| 55 |
+
|
| 56 |
+
var wrapped = function(error, result)
|
| 57 |
+
{
|
| 58 |
+
return finisher.call(stream, error, result, callback);
|
| 59 |
+
};
|
| 60 |
+
|
| 61 |
+
return wrapped;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
/**
|
| 65 |
+
* Wraps provided iterator callback function
|
| 66 |
+
* makes sure snitch only called once,
|
| 67 |
+
* but passes secondary calls to the original callback
|
| 68 |
+
*
|
| 69 |
+
* @this ReadableAsyncKit#
|
| 70 |
+
* @param {function} callback - callback to wrap
|
| 71 |
+
* @param {number|string} key - iteration key
|
| 72 |
+
* @returns {function} wrapped callback
|
| 73 |
+
*/
|
| 74 |
+
function wrapIteratorCallback(callback, key)
|
| 75 |
+
{
|
| 76 |
+
var stream = this;
|
| 77 |
+
|
| 78 |
+
return function(error, output)
|
| 79 |
+
{
|
| 80 |
+
// don't repeat yourself
|
| 81 |
+
if (!(key in stream.jobs))
|
| 82 |
+
{
|
| 83 |
+
callback(error, output);
|
| 84 |
+
return;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
// clean up jobs
|
| 88 |
+
delete stream.jobs[key];
|
| 89 |
+
|
| 90 |
+
return streamer.call(stream, error, {key: key, value: output}, callback);
|
| 91 |
+
};
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
/**
|
| 95 |
+
* Stream wrapper for iterator callback
|
| 96 |
+
*
|
| 97 |
+
* @this ReadableAsyncKit#
|
| 98 |
+
* @param {mixed} error - error response
|
| 99 |
+
* @param {mixed} output - iterator output
|
| 100 |
+
* @param {function} callback - callback that expects iterator results
|
| 101 |
+
*/
|
| 102 |
+
function streamer(error, output, callback)
|
| 103 |
+
{
|
| 104 |
+
if (error && !this.error)
|
| 105 |
+
{
|
| 106 |
+
this.error = error;
|
| 107 |
+
this.pause();
|
| 108 |
+
this.emit('error', error);
|
| 109 |
+
// send back value only, as expected
|
| 110 |
+
callback(error, output && output.value);
|
| 111 |
+
return;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
// stream stuff
|
| 115 |
+
this.push(output);
|
| 116 |
+
|
| 117 |
+
// back to original track
|
| 118 |
+
// send back value only, as expected
|
| 119 |
+
callback(error, output && output.value);
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
/**
|
| 123 |
+
* Stream wrapper for finishing callback
|
| 124 |
+
*
|
| 125 |
+
* @this ReadableAsyncKit#
|
| 126 |
+
* @param {mixed} error - error response
|
| 127 |
+
* @param {mixed} output - iterator output
|
| 128 |
+
* @param {function} callback - callback that expects final results
|
| 129 |
+
*/
|
| 130 |
+
function finisher(error, output, callback)
|
| 131 |
+
{
|
| 132 |
+
// signal end of the stream
|
| 133 |
+
// only for successfully finished streams
|
| 134 |
+
if (!error)
|
| 135 |
+
{
|
| 136 |
+
this.push(null);
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
// back to original track
|
| 140 |
+
callback(error, output);
|
| 141 |
+
}
|
node_modules/asynckit/lib/terminator.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var abort = require('./abort.js')
|
| 2 |
+
, async = require('./async.js')
|
| 3 |
+
;
|
| 4 |
+
|
| 5 |
+
// API
|
| 6 |
+
module.exports = terminator;
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Terminates jobs in the attached state context
|
| 10 |
+
*
|
| 11 |
+
* @this AsyncKitState#
|
| 12 |
+
* @param {function} callback - final callback to invoke after termination
|
| 13 |
+
*/
|
| 14 |
+
function terminator(callback)
|
| 15 |
+
{
|
| 16 |
+
if (!Object.keys(this.jobs).length)
|
| 17 |
+
{
|
| 18 |
+
return;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
// fast forward iteration index
|
| 22 |
+
this.index = this.size;
|
| 23 |
+
|
| 24 |
+
// abort jobs
|
| 25 |
+
abort(this);
|
| 26 |
+
|
| 27 |
+
// send back results we have so far
|
| 28 |
+
async(callback)(null, this.results);
|
| 29 |
+
}
|
node_modules/asynckit/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "asynckit",
|
| 3 |
+
"version": "0.4.0",
|
| 4 |
+
"description": "Minimal async jobs utility library, with streams support",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"clean": "rimraf coverage",
|
| 8 |
+
"lint": "eslint *.js lib/*.js test/*.js",
|
| 9 |
+
"test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec",
|
| 10 |
+
"win-test": "tape test/test-*.js",
|
| 11 |
+
"browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec",
|
| 12 |
+
"report": "istanbul report",
|
| 13 |
+
"size": "browserify index.js | size-table asynckit",
|
| 14 |
+
"debug": "tape test/test-*.js"
|
| 15 |
+
},
|
| 16 |
+
"pre-commit": [
|
| 17 |
+
"clean",
|
| 18 |
+
"lint",
|
| 19 |
+
"test",
|
| 20 |
+
"browser",
|
| 21 |
+
"report",
|
| 22 |
+
"size"
|
| 23 |
+
],
|
| 24 |
+
"repository": {
|
| 25 |
+
"type": "git",
|
| 26 |
+
"url": "git+https://github.com/alexindigo/asynckit.git"
|
| 27 |
+
},
|
| 28 |
+
"keywords": [
|
| 29 |
+
"async",
|
| 30 |
+
"jobs",
|
| 31 |
+
"parallel",
|
| 32 |
+
"serial",
|
| 33 |
+
"iterator",
|
| 34 |
+
"array",
|
| 35 |
+
"object",
|
| 36 |
+
"stream",
|
| 37 |
+
"destroy",
|
| 38 |
+
"terminate",
|
| 39 |
+
"abort"
|
| 40 |
+
],
|
| 41 |
+
"author": "Alex Indigo <iam@alexindigo.com>",
|
| 42 |
+
"license": "MIT",
|
| 43 |
+
"bugs": {
|
| 44 |
+
"url": "https://github.com/alexindigo/asynckit/issues"
|
| 45 |
+
},
|
| 46 |
+
"homepage": "https://github.com/alexindigo/asynckit#readme",
|
| 47 |
+
"devDependencies": {
|
| 48 |
+
"browserify": "^13.0.0",
|
| 49 |
+
"browserify-istanbul": "^2.0.0",
|
| 50 |
+
"coveralls": "^2.11.9",
|
| 51 |
+
"eslint": "^2.9.0",
|
| 52 |
+
"istanbul": "^0.4.3",
|
| 53 |
+
"obake": "^0.1.2",
|
| 54 |
+
"phantomjs-prebuilt": "^2.1.7",
|
| 55 |
+
"pre-commit": "^1.1.3",
|
| 56 |
+
"reamde": "^1.1.0",
|
| 57 |
+
"rimraf": "^2.5.2",
|
| 58 |
+
"size-table": "^0.2.0",
|
| 59 |
+
"tap-spec": "^4.1.1",
|
| 60 |
+
"tape": "^4.5.1"
|
| 61 |
+
},
|
| 62 |
+
"dependencies": {}
|
| 63 |
+
}
|
node_modules/asynckit/parallel.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var iterate = require('./lib/iterate.js')
|
| 2 |
+
, initState = require('./lib/state.js')
|
| 3 |
+
, terminator = require('./lib/terminator.js')
|
| 4 |
+
;
|
| 5 |
+
|
| 6 |
+
// Public API
|
| 7 |
+
module.exports = parallel;
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Runs iterator over provided array elements in parallel
|
| 11 |
+
*
|
| 12 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 13 |
+
* @param {function} iterator - iterator to run
|
| 14 |
+
* @param {function} callback - invoked when all elements processed
|
| 15 |
+
* @returns {function} - jobs terminator
|
| 16 |
+
*/
|
| 17 |
+
function parallel(list, iterator, callback)
|
| 18 |
+
{
|
| 19 |
+
var state = initState(list);
|
| 20 |
+
|
| 21 |
+
while (state.index < (state['keyedList'] || list).length)
|
| 22 |
+
{
|
| 23 |
+
iterate(list, iterator, state, function(error, result)
|
| 24 |
+
{
|
| 25 |
+
if (error)
|
| 26 |
+
{
|
| 27 |
+
callback(error, result);
|
| 28 |
+
return;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
// looks like it's the last one
|
| 32 |
+
if (Object.keys(state.jobs).length === 0)
|
| 33 |
+
{
|
| 34 |
+
callback(null, state.results);
|
| 35 |
+
return;
|
| 36 |
+
}
|
| 37 |
+
});
|
| 38 |
+
|
| 39 |
+
state.index++;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
return terminator.bind(state, callback);
|
| 43 |
+
}
|
node_modules/asynckit/serial.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var serialOrdered = require('./serialOrdered.js');
|
| 2 |
+
|
| 3 |
+
// Public API
|
| 4 |
+
module.exports = serial;
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* Runs iterator over provided array elements in series
|
| 8 |
+
*
|
| 9 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 10 |
+
* @param {function} iterator - iterator to run
|
| 11 |
+
* @param {function} callback - invoked when all elements processed
|
| 12 |
+
* @returns {function} - jobs terminator
|
| 13 |
+
*/
|
| 14 |
+
function serial(list, iterator, callback)
|
| 15 |
+
{
|
| 16 |
+
return serialOrdered(list, iterator, null, callback);
|
| 17 |
+
}
|
node_modules/asynckit/serialOrdered.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var iterate = require('./lib/iterate.js')
|
| 2 |
+
, initState = require('./lib/state.js')
|
| 3 |
+
, terminator = require('./lib/terminator.js')
|
| 4 |
+
;
|
| 5 |
+
|
| 6 |
+
// Public API
|
| 7 |
+
module.exports = serialOrdered;
|
| 8 |
+
// sorting helpers
|
| 9 |
+
module.exports.ascending = ascending;
|
| 10 |
+
module.exports.descending = descending;
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* Runs iterator over provided sorted array elements in series
|
| 14 |
+
*
|
| 15 |
+
* @param {array|object} list - array or object (named list) to iterate over
|
| 16 |
+
* @param {function} iterator - iterator to run
|
| 17 |
+
* @param {function} sortMethod - custom sort function
|
| 18 |
+
* @param {function} callback - invoked when all elements processed
|
| 19 |
+
* @returns {function} - jobs terminator
|
| 20 |
+
*/
|
| 21 |
+
function serialOrdered(list, iterator, sortMethod, callback)
|
| 22 |
+
{
|
| 23 |
+
var state = initState(list, sortMethod);
|
| 24 |
+
|
| 25 |
+
iterate(list, iterator, state, function iteratorHandler(error, result)
|
| 26 |
+
{
|
| 27 |
+
if (error)
|
| 28 |
+
{
|
| 29 |
+
callback(error, result);
|
| 30 |
+
return;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
state.index++;
|
| 34 |
+
|
| 35 |
+
// are we there yet?
|
| 36 |
+
if (state.index < (state['keyedList'] || list).length)
|
| 37 |
+
{
|
| 38 |
+
iterate(list, iterator, state, iteratorHandler);
|
| 39 |
+
return;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
// done here
|
| 43 |
+
callback(null, state.results);
|
| 44 |
+
});
|
| 45 |
+
|
| 46 |
+
return terminator.bind(state, callback);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/*
|
| 50 |
+
* -- Sort methods
|
| 51 |
+
*/
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* sort helper to sort array elements in ascending order
|
| 55 |
+
*
|
| 56 |
+
* @param {mixed} a - an item to compare
|
| 57 |
+
* @param {mixed} b - an item to compare
|
| 58 |
+
* @returns {number} - comparison result
|
| 59 |
+
*/
|
| 60 |
+
function ascending(a, b)
|
| 61 |
+
{
|
| 62 |
+
return a < b ? -1 : a > b ? 1 : 0;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/**
|
| 66 |
+
* sort helper to sort array elements in descending order
|
| 67 |
+
*
|
| 68 |
+
* @param {mixed} a - an item to compare
|
| 69 |
+
* @param {mixed} b - an item to compare
|
| 70 |
+
* @returns {number} - comparison result
|
| 71 |
+
*/
|
| 72 |
+
function descending(a, b)
|
| 73 |
+
{
|
| 74 |
+
return -1 * ascending(a, b);
|
| 75 |
+
}
|
node_modules/asynckit/stream.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var inherits = require('util').inherits
|
| 2 |
+
, Readable = require('stream').Readable
|
| 3 |
+
, ReadableAsyncKit = require('./lib/readable_asynckit.js')
|
| 4 |
+
, ReadableParallel = require('./lib/readable_parallel.js')
|
| 5 |
+
, ReadableSerial = require('./lib/readable_serial.js')
|
| 6 |
+
, ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
|
| 7 |
+
;
|
| 8 |
+
|
| 9 |
+
// API
|
| 10 |
+
module.exports =
|
| 11 |
+
{
|
| 12 |
+
parallel : ReadableParallel,
|
| 13 |
+
serial : ReadableSerial,
|
| 14 |
+
serialOrdered : ReadableSerialOrdered,
|
| 15 |
+
};
|
| 16 |
+
|
| 17 |
+
inherits(ReadableAsyncKit, Readable);
|
| 18 |
+
|
| 19 |
+
inherits(ReadableParallel, ReadableAsyncKit);
|
| 20 |
+
inherits(ReadableSerial, ReadableAsyncKit);
|
| 21 |
+
inherits(ReadableSerialOrdered, ReadableAsyncKit);
|
node_modules/axios/CHANGELOG.md
ADDED
|
@@ -0,0 +1,1295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
## [1.12.2](https://github.com/axios/axios/compare/v1.12.1...v1.12.2) (2025-09-14)
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
### Bug Fixes
|
| 7 |
+
|
| 8 |
+
* **fetch:** use current global fetch instead of cached one when env fetch is not specified to keep MSW support; ([#7030](https://github.com/axios/axios/issues/7030)) ([cf78825](https://github.com/axios/axios/commit/cf78825e1229b60d1629ad0bbc8a752ff43c3f53))
|
| 9 |
+
|
| 10 |
+
### Contributors to this release
|
| 11 |
+
|
| 12 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+247/-16 (#7030 #7022 #7024 )")
|
| 13 |
+
- <img src="https://avatars.githubusercontent.com/u/189505037?v=4&s=18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 (#7028 #7029 )")
|
| 14 |
+
|
| 15 |
+
## [1.12.1](https://github.com/axios/axios/compare/v1.12.0...v1.12.1) (2025-09-12)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
### Bug Fixes
|
| 19 |
+
|
| 20 |
+
* **types:** fixed env config types; ([#7020](https://github.com/axios/axios/issues/7020)) ([b5f26b7](https://github.com/axios/axios/commit/b5f26b75bdd9afa95016fb67d0cab15fc74cbf05))
|
| 21 |
+
|
| 22 |
+
### Contributors to this release
|
| 23 |
+
|
| 24 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+10/-4 (#7020 )")
|
| 25 |
+
|
| 26 |
+
# [1.12.0](https://github.com/axios/axios/compare/v1.11.0...v1.12.0) (2025-09-11)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
### Bug Fixes
|
| 30 |
+
|
| 31 |
+
* adding build artifacts ([9ec86de](https://github.com/axios/axios/commit/9ec86de257bfa33856571036279169f385ed92bd))
|
| 32 |
+
* dont add dist on release ([a2edc36](https://github.com/axios/axios/commit/a2edc3606a4f775d868a67bb3461ff18ce7ecd11))
|
| 33 |
+
* **fetch-adapter:** set correct Content-Type for Node FormData ([#6998](https://github.com/axios/axios/issues/6998)) ([a9f47af](https://github.com/axios/axios/commit/a9f47afbf3224d2ca987dbd8188789c7ea853c5d))
|
| 34 |
+
* **node:** enforce maxContentLength for data: URLs ([#7011](https://github.com/axios/axios/issues/7011)) ([945435f](https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593))
|
| 35 |
+
* package exports ([#5627](https://github.com/axios/axios/issues/5627)) ([aa78ac2](https://github.com/axios/axios/commit/aa78ac23fc9036163308c0f6bd2bb885e7af3f36))
|
| 36 |
+
* **params:** removing '[' and ']' from URL encode exclude characters ([#3316](https://github.com/axios/axios/issues/3316)) ([#5715](https://github.com/axios/axios/issues/5715)) ([6d84189](https://github.com/axios/axios/commit/6d84189349c43b1dcdd977b522610660cc4c7042))
|
| 37 |
+
* release pr run ([fd7f404](https://github.com/axios/axios/commit/fd7f404488b2c4f238c2fbe635b58026a634bfd2))
|
| 38 |
+
* **types:** change the type guard on isCancel ([#5595](https://github.com/axios/axios/issues/5595)) ([0dbb7fd](https://github.com/axios/axios/commit/0dbb7fd4f61dc568498cd13a681fa7f907d6ec7e))
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
### Features
|
| 42 |
+
|
| 43 |
+
* **adapter:** surface low‑level network error details; attach original error via cause ([#6982](https://github.com/axios/axios/issues/6982)) ([78b290c](https://github.com/axios/axios/commit/78b290c57c978ed2ab420b90d97350231c9e5d74))
|
| 44 |
+
* **fetch:** add fetch, Request, Response env config variables for the adapter; ([#7003](https://github.com/axios/axios/issues/7003)) ([c959ff2](https://github.com/axios/axios/commit/c959ff29013a3bc90cde3ac7ea2d9a3f9c08974b))
|
| 45 |
+
* support reviver on JSON.parse ([#5926](https://github.com/axios/axios/issues/5926)) ([2a97634](https://github.com/axios/axios/commit/2a9763426e43d996fd60d01afe63fa6e1f5b4fca)), closes [#5924](https://github.com/axios/axios/issues/5924)
|
| 46 |
+
* **types:** extend AxiosResponse interface to include custom headers type ([#6782](https://github.com/axios/axios/issues/6782)) ([7960d34](https://github.com/axios/axios/commit/7960d34eded2de66ffd30b4687f8da0e46c4903e))
|
| 47 |
+
|
| 48 |
+
### Contributors to this release
|
| 49 |
+
|
| 50 |
+
- <img src="https://avatars.githubusercontent.com/u/22686401?v=4&s=18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+132/-16760 (#7002 #5926 #6782 )")
|
| 51 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+4263/-293 (#7006 #7003 )")
|
| 52 |
+
- <img src="https://avatars.githubusercontent.com/u/53833811?v=4&s=18" alt="avatar" width="18"/> [khani](https://github.com/mkhani01 "+111/-15 (#6982 )")
|
| 53 |
+
- <img src="https://avatars.githubusercontent.com/u/7712804?v=4&s=18" alt="avatar" width="18"/> [Ameer Assadi](https://github.com/AmeerAssadi "+123/-0 (#7011 )")
|
| 54 |
+
- <img src="https://avatars.githubusercontent.com/u/70265727?v=4&s=18" alt="avatar" width="18"/> [Emiedonmokumo Dick-Boro](https://github.com/emiedonmokumo "+55/-35 (#6998 )")
|
| 55 |
+
- <img src="https://avatars.githubusercontent.com/u/47859767?v=4&s=18" alt="avatar" width="18"/> [Zeroday BYTE](https://github.com/opsysdebug "+8/-8 (#6980 )")
|
| 56 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jason Saayman](https://github.com/jasonsaayman "+7/-7 (#6985 #6985 )")
|
| 57 |
+
- <img src="https://avatars.githubusercontent.com/u/13010755?v=4&s=18" alt="avatar" width="18"/> [최예찬](https://github.com/HealGaren "+5/-7 (#5715 )")
|
| 58 |
+
- <img src="https://avatars.githubusercontent.com/u/7002604?v=4&s=18" alt="avatar" width="18"/> [Gligor Kotushevski](https://github.com/gligorkot "+3/-1 (#5627 )")
|
| 59 |
+
- <img src="https://avatars.githubusercontent.com/u/15893?v=4&s=18" alt="avatar" width="18"/> [Aleksandar Dimitrov](https://github.com/adimit "+2/-1 (#5595 )")
|
| 60 |
+
|
| 61 |
+
# [1.11.0](https://github.com/axios/axios/compare/v1.10.0...v1.11.0) (2025-07-22)
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
### Bug Fixes
|
| 65 |
+
|
| 66 |
+
* form-data npm pakcage ([#6970](https://github.com/axios/axios/issues/6970)) ([e72c193](https://github.com/axios/axios/commit/e72c193722530db538b19e5ddaaa4544d226b253))
|
| 67 |
+
* prevent RangeError when using large Buffers ([#6961](https://github.com/axios/axios/issues/6961)) ([a2214ca](https://github.com/axios/axios/commit/a2214ca1bc60540baf2c80573cea3a0ff91ba9d1))
|
| 68 |
+
* **types:** resolve type discrepancies between ESM and CJS TypeScript declaration files ([#6956](https://github.com/axios/axios/issues/6956)) ([8517aa1](https://github.com/axios/axios/commit/8517aa16f8d082fc1d5309c642220fa736159110))
|
| 69 |
+
|
| 70 |
+
### Contributors to this release
|
| 71 |
+
|
| 72 |
+
- <img src="https://avatars.githubusercontent.com/u/12534341?v=4&s=18" alt="avatar" width="18"/> [izzy goldman](https://github.com/izzygld "+186/-93 (#6970 )")
|
| 73 |
+
- <img src="https://avatars.githubusercontent.com/u/142807367?v=4&s=18" alt="avatar" width="18"/> [Manish Sahani](https://github.com/manishsahanidev "+70/-0 (#6961 )")
|
| 74 |
+
- <img src="https://avatars.githubusercontent.com/u/189505037?v=4&s=18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+12/-10 (#6938 #6939 )")
|
| 75 |
+
- <img src="https://avatars.githubusercontent.com/u/392612?v=4&s=18" alt="avatar" width="18"/> [James Nail](https://github.com/jrnail23 "+13/-2 (#6956 )")
|
| 76 |
+
- <img src="https://avatars.githubusercontent.com/u/163745239?v=4&s=18" alt="avatar" width="18"/> [Tejaswi1305](https://github.com/Tejaswi1305 "+1/-1 (#6894 )")
|
| 77 |
+
|
| 78 |
+
# [1.10.0](https://github.com/axios/axios/compare/v1.9.0...v1.10.0) (2025-06-14)
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
### Bug Fixes
|
| 82 |
+
|
| 83 |
+
* **adapter:** pass fetchOptions to fetch function ([#6883](https://github.com/axios/axios/issues/6883)) ([0f50af8](https://github.com/axios/axios/commit/0f50af8e076b7fb403844789bd5e812dedcaf4ed))
|
| 84 |
+
* **form-data:** convert boolean values to strings in FormData serialization ([#6917](https://github.com/axios/axios/issues/6917)) ([5064b10](https://github.com/axios/axios/commit/5064b108de336ff34862650709761b8a96d26be0))
|
| 85 |
+
* **package:** add module entry point for React Native; ([#6933](https://github.com/axios/axios/issues/6933)) ([3d343b8](https://github.com/axios/axios/commit/3d343b86dc4fd0eea0987059c5af04327c7ae304))
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
### Features
|
| 89 |
+
|
| 90 |
+
* **types:** improved fetchOptions interface ([#6867](https://github.com/axios/axios/issues/6867)) ([63f1fce](https://github.com/axios/axios/commit/63f1fce233009f5db1abf2586c145825ac98c3d7))
|
| 91 |
+
|
| 92 |
+
### Contributors to this release
|
| 93 |
+
|
| 94 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-19 (#6933 #6920 #6893 #6892 )")
|
| 95 |
+
- <img src="https://avatars.githubusercontent.com/u/189505037?v=4&s=18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 (#6922 #6923 )")
|
| 96 |
+
- <img src="https://avatars.githubusercontent.com/u/48370490?v=4&s=18" alt="avatar" width="18"/> [Dimitrios Lazanas](https://github.com/dimitry-lzs "+4/-0 (#6917 )")
|
| 97 |
+
- <img src="https://avatars.githubusercontent.com/u/71047946?v=4&s=18" alt="avatar" width="18"/> [Adrian Knapp](https://github.com/AdrianKnapp "+2/-2 (#6867 )")
|
| 98 |
+
- <img src="https://avatars.githubusercontent.com/u/16129206?v=4&s=18" alt="avatar" width="18"/> [Howie Zhao](https://github.com/howiezhao "+3/-1 (#6872 )")
|
| 99 |
+
- <img src="https://avatars.githubusercontent.com/u/6788611?v=4&s=18" alt="avatar" width="18"/> [Uhyeon Park](https://github.com/warpdev "+1/-1 (#6883 )")
|
| 100 |
+
- <img src="https://avatars.githubusercontent.com/u/20028934?v=4&s=18" alt="avatar" width="18"/> [Sampo Silvennoinen](https://github.com/stscoundrel "+1/-1 (#6913 )")
|
| 101 |
+
|
| 102 |
+
# [1.9.0](https://github.com/axios/axios/compare/v1.8.4...v1.9.0) (2025-04-24)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
### Bug Fixes
|
| 106 |
+
|
| 107 |
+
* **core:** fix the Axios constructor implementation to treat the config argument as optional; ([#6881](https://github.com/axios/axios/issues/6881)) ([6c5d4cd](https://github.com/axios/axios/commit/6c5d4cd69286868059c5e52d45085cb9a894a983))
|
| 108 |
+
* **fetch:** fixed ERR_NETWORK mapping for Safari browsers; ([#6767](https://github.com/axios/axios/issues/6767)) ([dfe8411](https://github.com/axios/axios/commit/dfe8411c9a082c3d068bdd1f8d6e73054f387f45))
|
| 109 |
+
* **headers:** allow iterable objects to be a data source for the set method; ([#6873](https://github.com/axios/axios/issues/6873)) ([1b1f9cc](https://github.com/axios/axios/commit/1b1f9ccdc15f1ea745160ec9a5223de9db4673bc))
|
| 110 |
+
* **headers:** fix `getSetCookie` by using 'get' method for caseless access; ([#6874](https://github.com/axios/axios/issues/6874)) ([d4f7df4](https://github.com/axios/axios/commit/d4f7df4b304af8b373488fdf8e830793ff843eb9))
|
| 111 |
+
* **headers:** fixed support for setting multiple header values from an iterated source; ([#6885](https://github.com/axios/axios/issues/6885)) ([f7a3b5e](https://github.com/axios/axios/commit/f7a3b5e0f7e5e127b97defa92a132fbf1b55cf15))
|
| 112 |
+
* **http:** send minimal end multipart boundary ([#6661](https://github.com/axios/axios/issues/6661)) ([987d2e2](https://github.com/axios/axios/commit/987d2e2dd3b362757550f36eab875e60640b6ddc))
|
| 113 |
+
* **types:** fix autocomplete for adapter config ([#6855](https://github.com/axios/axios/issues/6855)) ([e61a893](https://github.com/axios/axios/commit/e61a8934d8f94dd429a2f309b48c67307c700df0))
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
### Features
|
| 117 |
+
|
| 118 |
+
* **AxiosHeaders:** add getSetCookie method to retrieve set-cookie headers values ([#5707](https://github.com/axios/axios/issues/5707)) ([80ea756](https://github.com/axios/axios/commit/80ea756e72bcf53110fa792f5d7ab76e8b11c996))
|
| 119 |
+
|
| 120 |
+
### Contributors to this release
|
| 121 |
+
|
| 122 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+200/-34 (#6890 #6889 #6888 #6885 #6881 #6767 #6874 #6873 )")
|
| 123 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+26/-1 ()")
|
| 124 |
+
- <img src="https://avatars.githubusercontent.com/u/22686401?v=4&s=18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+21/-0 (#5707 )")
|
| 125 |
+
- <img src="https://avatars.githubusercontent.com/u/2500247?v=4&s=18" alt="avatar" width="18"/> [George Cheng](https://github.com/Gerhut "+3/-3 (#5096 )")
|
| 126 |
+
- <img src="https://avatars.githubusercontent.com/u/30260221?v=4&s=18" alt="avatar" width="18"/> [FatahChan](https://github.com/FatahChan "+2/-2 (#6855 )")
|
| 127 |
+
- <img src="https://avatars.githubusercontent.com/u/49002?v=4&s=18" alt="avatar" width="18"/> [Ionuț G. Stan](https://github.com/igstan "+1/-1 (#6661 )")
|
| 128 |
+
|
| 129 |
+
## [1.8.4](https://github.com/axios/axios/compare/v1.8.3...v1.8.4) (2025-03-19)
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
### Bug Fixes
|
| 133 |
+
|
| 134 |
+
* **buildFullPath:** handle `allowAbsoluteUrls: false` without `baseURL` ([#6833](https://github.com/axios/axios/issues/6833)) ([f10c2e0](https://github.com/axios/axios/commit/f10c2e0de7fde0051f848609a29c2906d0caa1d9))
|
| 135 |
+
|
| 136 |
+
### Contributors to this release
|
| 137 |
+
|
| 138 |
+
- <img src="https://avatars.githubusercontent.com/u/8029107?v=4&s=18" alt="avatar" width="18"/> [Marc Hassan](https://github.com/mhassan1 "+5/-1 (#6833 )")
|
| 139 |
+
|
| 140 |
+
## [1.8.3](https://github.com/axios/axios/compare/v1.8.2...v1.8.3) (2025-03-10)
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
### Bug Fixes
|
| 144 |
+
|
| 145 |
+
* add missing type for allowAbsoluteUrls ([#6818](https://github.com/axios/axios/issues/6818)) ([10fa70e](https://github.com/axios/axios/commit/10fa70ef14fe39558b15a179f0e82f5f5e5d11b2))
|
| 146 |
+
* **xhr/fetch:** pass `allowAbsoluteUrls` to `buildFullPath` in `xhr` and `fetch` adapters ([#6814](https://github.com/axios/axios/issues/6814)) ([ec159e5](https://github.com/axios/axios/commit/ec159e507bdf08c04ba1a10fe7710094e9e50ec9))
|
| 147 |
+
|
| 148 |
+
### Contributors to this release
|
| 149 |
+
|
| 150 |
+
- <img src="https://avatars.githubusercontent.com/u/3238291?v=4&s=18" alt="avatar" width="18"/> [Ashcon Partovi](https://github.com/Electroid "+6/-0 (#6811 )")
|
| 151 |
+
- <img src="https://avatars.githubusercontent.com/u/28559054?v=4&s=18" alt="avatar" width="18"/> [StefanBRas](https://github.com/StefanBRas "+4/-0 (#6818 )")
|
| 152 |
+
- <img src="https://avatars.githubusercontent.com/u/8029107?v=4&s=18" alt="avatar" width="18"/> [Marc Hassan](https://github.com/mhassan1 "+2/-2 (#6814 )")
|
| 153 |
+
|
| 154 |
+
## [1.8.2](https://github.com/axios/axios/compare/v1.8.1...v1.8.2) (2025-03-07)
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
### Bug Fixes
|
| 158 |
+
|
| 159 |
+
* **http-adapter:** add allowAbsoluteUrls to path building ([#6810](https://github.com/axios/axios/issues/6810)) ([fb8eec2](https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f))
|
| 160 |
+
|
| 161 |
+
### Contributors to this release
|
| 162 |
+
|
| 163 |
+
- <img src="https://avatars.githubusercontent.com/u/14166260?v=4&s=18" alt="avatar" width="18"/> [Fasoro-Joseph Alexander](https://github.com/lexcorp16 "+1/-1 (#6810 )")
|
| 164 |
+
|
| 165 |
+
## [1.8.1](https://github.com/axios/axios/compare/v1.8.0...v1.8.1) (2025-02-26)
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
### Bug Fixes
|
| 169 |
+
|
| 170 |
+
* **utils:** move `generateString` to platform utils to avoid importing crypto module into client builds; ([#6789](https://github.com/axios/axios/issues/6789)) ([36a5a62](https://github.com/axios/axios/commit/36a5a620bec0b181451927f13ac85b9888b86cec))
|
| 171 |
+
|
| 172 |
+
### Contributors to this release
|
| 173 |
+
|
| 174 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+51/-47 (#6789 )")
|
| 175 |
+
|
| 176 |
+
# [1.8.0](https://github.com/axios/axios/compare/v1.7.9...v1.8.0) (2025-02-25)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
### Bug Fixes
|
| 180 |
+
|
| 181 |
+
* **examples:** application crashed when navigating examples in browser ([#5938](https://github.com/axios/axios/issues/5938)) ([1260ded](https://github.com/axios/axios/commit/1260ded634ec101dd5ed05d3b70f8e8f899dba6c))
|
| 182 |
+
* missing word in SUPPORT_QUESTION.yml ([#6757](https://github.com/axios/axios/issues/6757)) ([1f890b1](https://github.com/axios/axios/commit/1f890b13f2c25a016f3c84ae78efb769f244133e))
|
| 183 |
+
* **utils:** replace getRandomValues with crypto module ([#6788](https://github.com/axios/axios/issues/6788)) ([23a25af](https://github.com/axios/axios/commit/23a25af0688d1db2c396deb09229d2271cc24f6c))
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
### Features
|
| 187 |
+
|
| 188 |
+
* Add config for ignoring absolute URLs ([#5902](https://github.com/axios/axios/issues/5902)) ([#6192](https://github.com/axios/axios/issues/6192)) ([32c7bcc](https://github.com/axios/axios/commit/32c7bcc0f233285ba27dec73a4b1e81fb7a219b3))
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
### Reverts
|
| 192 |
+
|
| 193 |
+
* Revert "chore: expose fromDataToStream to be consumable (#6731)" (#6732) ([1317261](https://github.com/axios/axios/commit/1317261125e9c419fe9f126867f64d28f9c1efda)), closes [#6731](https://github.com/axios/axios/issues/6731) [#6732](https://github.com/axios/axios/issues/6732)
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
### BREAKING CHANGES
|
| 197 |
+
|
| 198 |
+
* code relying on the above will now combine the URLs instead of prefer request URL
|
| 199 |
+
|
| 200 |
+
* feat: add config option for allowing absolute URLs
|
| 201 |
+
|
| 202 |
+
* fix: add default value for allowAbsoluteUrls in buildFullPath
|
| 203 |
+
|
| 204 |
+
* fix: typo in flow control when setting allowAbsoluteUrls
|
| 205 |
+
|
| 206 |
+
### Contributors to this release
|
| 207 |
+
|
| 208 |
+
- <img src="https://avatars.githubusercontent.com/u/7661715?v=4&s=18" alt="avatar" width="18"/> [Michael Toscano](https://github.com/GethosTheWalrus "+42/-8 (#6192 )")
|
| 209 |
+
- <img src="https://avatars.githubusercontent.com/u/22686401?v=4&s=18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+26/-3 (#6788 #6777 )")
|
| 210 |
+
- <img src="https://avatars.githubusercontent.com/u/72578270?v=4&s=18" alt="avatar" width="18"/> [Naron](https://github.com/naronchen "+27/-0 (#5901 )")
|
| 211 |
+
- <img src="https://avatars.githubusercontent.com/u/47430686?v=4&s=18" alt="avatar" width="18"/> [shravan || श्रvan](https://github.com/shravan20 "+7/-3 (#6116 )")
|
| 212 |
+
- <img src="https://avatars.githubusercontent.com/u/145078271?v=4&s=18" alt="avatar" width="18"/> [Justin Dhillon](https://github.com/justindhillon "+0/-7 (#6312 )")
|
| 213 |
+
- <img src="https://avatars.githubusercontent.com/u/30925732?v=4&s=18" alt="avatar" width="18"/> [yionr](https://github.com/yionr "+5/-1 (#6129 )")
|
| 214 |
+
- <img src="https://avatars.githubusercontent.com/u/534166?v=4&s=18" alt="avatar" width="18"/> [Shin'ya Ueoka](https://github.com/ueokande "+3/-3 (#5935 )")
|
| 215 |
+
- <img src="https://avatars.githubusercontent.com/u/33569?v=4&s=18" alt="avatar" width="18"/> [Dan Dascalescu](https://github.com/dandv "+3/-3 (#5908 #6757 )")
|
| 216 |
+
- <img src="https://avatars.githubusercontent.com/u/16476523?v=4&s=18" alt="avatar" width="18"/> [Nitin Ramnani](https://github.com/NitinRamnani "+2/-2 (#5938 )")
|
| 217 |
+
- <img src="https://avatars.githubusercontent.com/u/152275799?v=4&s=18" alt="avatar" width="18"/> [Shay Molcho](https://github.com/shaymolcho "+2/-2 (#6770 )")
|
| 218 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+0/-3 (#6732 )")
|
| 219 |
+
- fancy45daddy
|
| 220 |
+
- <img src="https://avatars.githubusercontent.com/u/127725897?v=4&s=18" alt="avatar" width="18"/> [Habip Akyol](https://github.com/habipakyol "+1/-1 (#6030 )")
|
| 221 |
+
- <img src="https://avatars.githubusercontent.com/u/54869395?v=4&s=18" alt="avatar" width="18"/> [Bailey Lissington](https://github.com/llamington "+1/-1 (#6771 )")
|
| 222 |
+
- <img src="https://avatars.githubusercontent.com/u/14969290?v=4&s=18" alt="avatar" width="18"/> [Bernardo da Eira Duarte](https://github.com/bernardoduarte "+1/-1 (#6480 )")
|
| 223 |
+
- <img src="https://avatars.githubusercontent.com/u/117800149?v=4&s=18" alt="avatar" width="18"/> [Shivam Batham](https://github.com/Shivam-Batham "+1/-1 (#5949 )")
|
| 224 |
+
- <img src="https://avatars.githubusercontent.com/u/67861627?v=4&s=18" alt="avatar" width="18"/> [Lipin Kariappa](https://github.com/lipinnnnn "+1/-1 (#5936 )")
|
| 225 |
+
|
| 226 |
+
## [1.7.9](https://github.com/axios/axios/compare/v1.7.8...v1.7.9) (2024-12-04)
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
### Reverts
|
| 230 |
+
|
| 231 |
+
* Revert "fix(types): export CJS types from ESM (#6218)" (#6729) ([c44d2f2](https://github.com/axios/axios/commit/c44d2f2316ad289b38997657248ba10de11deb6c)), closes [#6218](https://github.com/axios/axios/issues/6218) [#6729](https://github.com/axios/axios/issues/6729)
|
| 232 |
+
|
| 233 |
+
### Contributors to this release
|
| 234 |
+
|
| 235 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+596/-108 (#6729 )")
|
| 236 |
+
|
| 237 |
+
## [1.7.8](https://github.com/axios/axios/compare/v1.7.7...v1.7.8) (2024-11-25)
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
### Bug Fixes
|
| 241 |
+
|
| 242 |
+
* allow passing a callback as paramsSerializer to buildURL ([#6680](https://github.com/axios/axios/issues/6680)) ([eac4619](https://github.com/axios/axios/commit/eac4619fe2e0926e876cd260ee21e3690381dbb5))
|
| 243 |
+
* **core:** fixed config merging bug ([#6668](https://github.com/axios/axios/issues/6668)) ([5d99fe4](https://github.com/axios/axios/commit/5d99fe4491202a6268c71e5dcc09192359d73cea))
|
| 244 |
+
* fixed width form to not shrink after 'Send Request' button is clicked ([#6644](https://github.com/axios/axios/issues/6644)) ([7ccd5fd](https://github.com/axios/axios/commit/7ccd5fd42402102d38712c32707bf055be72ab54))
|
| 245 |
+
* **http:** add support for File objects as payload in http adapter ([#6588](https://github.com/axios/axios/issues/6588)) ([#6605](https://github.com/axios/axios/issues/6605)) ([6841d8d](https://github.com/axios/axios/commit/6841d8d18ddc71cc1bd202ffcfddb3f95622eef3))
|
| 246 |
+
* **http:** fixed proxy-from-env module import ([#5222](https://github.com/axios/axios/issues/5222)) ([12b3295](https://github.com/axios/axios/commit/12b32957f1258aee94ef859809ed39f8f88f9dfa))
|
| 247 |
+
* **http:** use `globalThis.TextEncoder` when available ([#6634](https://github.com/axios/axios/issues/6634)) ([df956d1](https://github.com/axios/axios/commit/df956d18febc9100a563298dfdf0f102c3d15410))
|
| 248 |
+
* ios11 breaks when build ([#6608](https://github.com/axios/axios/issues/6608)) ([7638952](https://github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd))
|
| 249 |
+
* **types:** add missing types for mergeConfig function ([#6590](https://github.com/axios/axios/issues/6590)) ([00de614](https://github.com/axios/axios/commit/00de614cd07b7149af335e202aef0e076c254f49))
|
| 250 |
+
* **types:** export CJS types from ESM ([#6218](https://github.com/axios/axios/issues/6218)) ([c71811b](https://github.com/axios/axios/commit/c71811b00f2fcff558e4382ba913bdac4ad7200e))
|
| 251 |
+
* updated stream aborted error message to be more clear ([#6615](https://github.com/axios/axios/issues/6615)) ([cc3217a](https://github.com/axios/axios/commit/cc3217a612024d83a663722a56d7a98d8759c6d5))
|
| 252 |
+
* use URL API instead of DOM to fix a potential vulnerability warning; ([#6714](https://github.com/axios/axios/issues/6714)) ([0a8d6e1](https://github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db))
|
| 253 |
+
|
| 254 |
+
### Contributors to this release
|
| 255 |
+
|
| 256 |
+
- <img src="https://avatars.githubusercontent.com/u/779047?v=4&s=18" alt="avatar" width="18"/> [Remco Haszing](https://github.com/remcohaszing "+108/-596 (#6218 )")
|
| 257 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+281/-19 (#6640 #6619 )")
|
| 258 |
+
- <img src="https://avatars.githubusercontent.com/u/140250471?v=4&s=18" alt="avatar" width="18"/> [Aayush Yadav](https://github.com/aayushyadav020 "+124/-111 (#6617 )")
|
| 259 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+12/-65 (#6714 )")
|
| 260 |
+
- <img src="https://avatars.githubusercontent.com/u/479715?v=4&s=18" alt="avatar" width="18"/> [Ell Bradshaw](https://github.com/cincodenada "+29/-0 (#6489 )")
|
| 261 |
+
- <img src="https://avatars.githubusercontent.com/u/60218780?v=4&s=18" alt="avatar" width="18"/> [Amit Saini](https://github.com/amitsainii "+13/-3 (#5237 )")
|
| 262 |
+
- <img src="https://avatars.githubusercontent.com/u/19817867?v=4&s=18" alt="avatar" width="18"/> [Tommaso Paulon](https://github.com/guuido "+14/-1 (#6680 )")
|
| 263 |
+
- <img src="https://avatars.githubusercontent.com/u/63336443?v=4&s=18" alt="avatar" width="18"/> [Akki](https://github.com/Aakash-Rana "+5/-5 (#6668 )")
|
| 264 |
+
- <img src="https://avatars.githubusercontent.com/u/20028934?v=4&s=18" alt="avatar" width="18"/> [Sampo Silvennoinen](https://github.com/stscoundrel "+3/-3 (#6633 )")
|
| 265 |
+
- <img src="https://avatars.githubusercontent.com/u/1174718?v=4&s=18" alt="avatar" width="18"/> [Kasper Isager Dalsgarð](https://github.com/kasperisager "+2/-2 (#6634 )")
|
| 266 |
+
- <img src="https://avatars.githubusercontent.com/u/3709715?v=4&s=18" alt="avatar" width="18"/> [Christian Clauss](https://github.com/cclauss "+4/-0 (#6683 )")
|
| 267 |
+
- <img src="https://avatars.githubusercontent.com/u/1639119?v=4&s=18" alt="avatar" width="18"/> [Pavan Welihinda](https://github.com/pavan168 "+2/-2 (#5222 )")
|
| 268 |
+
- <img src="https://avatars.githubusercontent.com/u/5742900?v=4&s=18" alt="avatar" width="18"/> [Taylor Flatt](https://github.com/taylorflatt "+2/-2 (#6615 )")
|
| 269 |
+
- <img src="https://avatars.githubusercontent.com/u/79452224?v=4&s=18" alt="avatar" width="18"/> [Kenzo Wada](https://github.com/Kenzo-Wada "+2/-2 (#6608 )")
|
| 270 |
+
- <img src="https://avatars.githubusercontent.com/u/50064240?v=4&s=18" alt="avatar" width="18"/> [Ngole Lawson](https://github.com/echelonnought "+3/-0 (#6644 )")
|
| 271 |
+
- <img src="https://avatars.githubusercontent.com/u/1262198?v=4&s=18" alt="avatar" width="18"/> [Haven](https://github.com/Baoyx007 "+3/-0 (#6590 )")
|
| 272 |
+
- <img src="https://avatars.githubusercontent.com/u/149003676?v=4&s=18" alt="avatar" width="18"/> [Shrivali Dutt](https://github.com/shrivalidutt "+1/-1 (#6637 )")
|
| 273 |
+
- <img src="https://avatars.githubusercontent.com/u/1304290?v=4&s=18" alt="avatar" width="18"/> [Henco Appel](https://github.com/hencoappel "+1/-1 (#6605 )")
|
| 274 |
+
|
| 275 |
+
## [1.7.7](https://github.com/axios/axios/compare/v1.7.6...v1.7.7) (2024-08-31)
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
### Bug Fixes
|
| 279 |
+
|
| 280 |
+
* **fetch:** fix stream handling in Safari by fallback to using a stream reader instead of an async iterator; ([#6584](https://github.com/axios/axios/issues/6584)) ([d198085](https://github.com/axios/axios/commit/d1980854fee1765cd02fa0787adf5d6e34dd9dcf))
|
| 281 |
+
* **http:** fixed support for IPv6 literal strings in url ([#5731](https://github.com/axios/axios/issues/5731)) ([364993f](https://github.com/axios/axios/commit/364993f0d8bc6e0e06f76b8a35d2d0a35cab054c))
|
| 282 |
+
|
| 283 |
+
### Contributors to this release
|
| 284 |
+
|
| 285 |
+
- <img src="https://avatars.githubusercontent.com/u/10539109?v=4&s=18" alt="avatar" width="18"/> [Rishi556](https://github.com/Rishi556 "+39/-1 (#5731 )")
|
| 286 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-7 (#6584 )")
|
| 287 |
+
|
| 288 |
+
## [1.7.6](https://github.com/axios/axios/compare/v1.7.5...v1.7.6) (2024-08-30)
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
### Bug Fixes
|
| 292 |
+
|
| 293 |
+
* **fetch:** fix content length calculation for FormData payload; ([#6524](https://github.com/axios/axios/issues/6524)) ([085f568](https://github.com/axios/axios/commit/085f56861a83e9ac02c140ad9d68dac540dfeeaa))
|
| 294 |
+
* **fetch:** optimize signals composing logic; ([#6582](https://github.com/axios/axios/issues/6582)) ([df9889b](https://github.com/axios/axios/commit/df9889b83c2cc37e9e6189675a73ab70c60f031f))
|
| 295 |
+
|
| 296 |
+
### Contributors to this release
|
| 297 |
+
|
| 298 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+98/-46 (#6582 )")
|
| 299 |
+
- <img src="https://avatars.githubusercontent.com/u/3534453?v=4&s=18" alt="avatar" width="18"/> [Jacques Germishuys](https://github.com/jacquesg "+5/-1 (#6524 )")
|
| 300 |
+
- <img src="https://avatars.githubusercontent.com/u/53894505?v=4&s=18" alt="avatar" width="18"/> [kuroino721](https://github.com/kuroino721 "+3/-1 (#6575 )")
|
| 301 |
+
|
| 302 |
+
## [1.7.5](https://github.com/axios/axios/compare/v1.7.4...v1.7.5) (2024-08-23)
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
### Bug Fixes
|
| 306 |
+
|
| 307 |
+
* **adapter:** fix undefined reference to hasBrowserEnv ([#6572](https://github.com/axios/axios/issues/6572)) ([7004707](https://github.com/axios/axios/commit/7004707c4180b416341863bd86913fe4fc2f1df1))
|
| 308 |
+
* **core:** add the missed implementation of AxiosError#status property; ([#6573](https://github.com/axios/axios/issues/6573)) ([6700a8a](https://github.com/axios/axios/commit/6700a8adac06942205f6a7a21421ecb36c4e0852))
|
| 309 |
+
* **core:** fix `ReferenceError: navigator is not defined` for custom environments; ([#6567](https://github.com/axios/axios/issues/6567)) ([fed1a4b](https://github.com/axios/axios/commit/fed1a4b2d78ed4a588c84e09d32749ed01dc2794))
|
| 310 |
+
* **fetch:** fix credentials handling in Cloudflare workers ([#6533](https://github.com/axios/axios/issues/6533)) ([550d885](https://github.com/axios/axios/commit/550d885eb90fd156add7b93bbdc54d30d2f9a98d))
|
| 311 |
+
|
| 312 |
+
### Contributors to this release
|
| 313 |
+
|
| 314 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+187/-83 (#6573 #6567 #6566 #6564 #6563 #6557 #6556 #6555 #6554 #6552 )")
|
| 315 |
+
- <img src="https://avatars.githubusercontent.com/u/2495809?v=4&s=18" alt="avatar" width="18"/> [Antonin Bas](https://github.com/antoninbas "+6/-6 (#6572 )")
|
| 316 |
+
- <img src="https://avatars.githubusercontent.com/u/5406212?v=4&s=18" alt="avatar" width="18"/> [Hans Otto Wirtz](https://github.com/hansottowirtz "+4/-1 (#6533 )")
|
| 317 |
+
|
| 318 |
+
## [1.7.4](https://github.com/axios/axios/compare/v1.7.3...v1.7.4) (2024-08-13)
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
### Bug Fixes
|
| 322 |
+
|
| 323 |
+
* **sec:** CVE-2024-39338 ([#6539](https://github.com/axios/axios/issues/6539)) ([#6543](https://github.com/axios/axios/issues/6543)) ([6b6b605](https://github.com/axios/axios/commit/6b6b605eaf73852fb2dae033f1e786155959de3a))
|
| 324 |
+
* **sec:** disregard protocol-relative URL to remediate SSRF ([#6539](https://github.com/axios/axios/issues/6539)) ([07a661a](https://github.com/axios/axios/commit/07a661a2a6b9092c4aa640dcc7f724ec5e65bdda))
|
| 325 |
+
|
| 326 |
+
### Contributors to this release
|
| 327 |
+
|
| 328 |
+
- <img src="https://avatars.githubusercontent.com/u/31389480?v=4&s=18" alt="avatar" width="18"/> [Lev Pachmanov](https://github.com/levpachmanov "+47/-11 (#6543 )")
|
| 329 |
+
- <img src="https://avatars.githubusercontent.com/u/41283691?v=4&s=18" alt="avatar" width="18"/> [Đỗ Trọng Hải](https://github.com/hainenber "+49/-4 (#6539 )")
|
| 330 |
+
|
| 331 |
+
## [1.7.3](https://github.com/axios/axios/compare/v1.7.2...v1.7.3) (2024-08-01)
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
### Bug Fixes
|
| 335 |
+
|
| 336 |
+
* **adapter:** fix progress event emitting; ([#6518](https://github.com/axios/axios/issues/6518)) ([e3c76fc](https://github.com/axios/axios/commit/e3c76fc9bdd03aa4d98afaf211df943e2031453f))
|
| 337 |
+
* **fetch:** fix withCredentials request config ([#6505](https://github.com/axios/axios/issues/6505)) ([85d4d0e](https://github.com/axios/axios/commit/85d4d0ea0aae91082f04e303dec46510d1b4e787))
|
| 338 |
+
* **xhr:** return original config on errors from XHR adapter ([#6515](https://github.com/axios/axios/issues/6515)) ([8966ee7](https://github.com/axios/axios/commit/8966ee7ea62ecbd6cfb39a905939bcdab5cf6388))
|
| 339 |
+
|
| 340 |
+
### Contributors to this release
|
| 341 |
+
|
| 342 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+211/-159 (#6518 #6519 )")
|
| 343 |
+
- <img src="https://avatars.githubusercontent.com/u/10867286?v=4&s=18" alt="avatar" width="18"/> [Valerii Sidorenko](https://github.com/ValeraS "+3/-3 (#6515 )")
|
| 344 |
+
- <img src="https://avatars.githubusercontent.com/u/8599535?v=4&s=18" alt="avatar" width="18"/> [prianYu](https://github.com/prianyu "+2/-2 (#6505 )")
|
| 345 |
+
|
| 346 |
+
## [1.7.2](https://github.com/axios/axios/compare/v1.7.1...v1.7.2) (2024-05-21)
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
### Bug Fixes
|
| 350 |
+
|
| 351 |
+
* **fetch:** enhance fetch API detection; ([#6413](https://github.com/axios/axios/issues/6413)) ([4f79aef](https://github.com/axios/axios/commit/4f79aef81b7c4644328365bfc33acf0a9ef595bc))
|
| 352 |
+
|
| 353 |
+
### Contributors to this release
|
| 354 |
+
|
| 355 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-3 (#6413 )")
|
| 356 |
+
|
| 357 |
+
## [1.7.1](https://github.com/axios/axios/compare/v1.7.0...v1.7.1) (2024-05-20)
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
### Bug Fixes
|
| 361 |
+
|
| 362 |
+
* **fetch:** fixed ReferenceError issue when TextEncoder is not available in the environment; ([#6410](https://github.com/axios/axios/issues/6410)) ([733f15f](https://github.com/axios/axios/commit/733f15fe5bd2d67e1fadaee82e7913b70d45dc5e))
|
| 363 |
+
|
| 364 |
+
### Contributors to this release
|
| 365 |
+
|
| 366 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+14/-9 (#6410 )")
|
| 367 |
+
|
| 368 |
+
# [1.7.0](https://github.com/axios/axios/compare/v1.7.0-beta.2...v1.7.0) (2024-05-19)
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
### Features
|
| 372 |
+
|
| 373 |
+
* **adapter:** add fetch adapter; ([#6371](https://github.com/axios/axios/issues/6371)) ([a3ff99b](https://github.com/axios/axios/commit/a3ff99b59d8ec2ab5dd049e68c043617a4072e42))
|
| 374 |
+
|
| 375 |
+
### Bug Fixes
|
| 376 |
+
|
| 377 |
+
* **core/axios:** handle un-writable error stack ([#6362](https://github.com/axios/axios/issues/6362)) ([81e0455](https://github.com/axios/axios/commit/81e0455b7b57fbaf2be16a73ebe0e6591cc6d8f9))
|
| 378 |
+
|
| 379 |
+
### Contributors to this release
|
| 380 |
+
|
| 381 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+1015/-127 (#6371 )")
|
| 382 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+30/-14 ()")
|
| 383 |
+
- <img src="https://avatars.githubusercontent.com/u/16711696?v=4&s=18" alt="avatar" width="18"/> [Alexandre ABRIOUX](https://github.com/alexandre-abrioux "+56/-6 (#6362 )")
|
| 384 |
+
|
| 385 |
+
# [1.7.0-beta.2](https://github.com/axios/axios/compare/v1.7.0-beta.1...v1.7.0-beta.2) (2024-05-19)
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
### Bug Fixes
|
| 389 |
+
|
| 390 |
+
* **fetch:** capitalize HTTP method names; ([#6395](https://github.com/axios/axios/issues/6395)) ([ad3174a](https://github.com/axios/axios/commit/ad3174a3515c3c2573f4bcb94818d582826f3914))
|
| 391 |
+
* **fetch:** fix & optimize progress capturing for cases when the request data has a nullish value or zero data length ([#6400](https://github.com/axios/axios/issues/6400)) ([95a3e8e](https://github.com/axios/axios/commit/95a3e8e346cfd6a5548e171f2341df3235d0e26b))
|
| 392 |
+
* **fetch:** fix headers getting from a stream response; ([#6401](https://github.com/axios/axios/issues/6401)) ([870e0a7](https://github.com/axios/axios/commit/870e0a76f60d0094774a6a63fa606eec52a381af))
|
| 393 |
+
|
| 394 |
+
### Contributors to this release
|
| 395 |
+
|
| 396 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+99/-46 (#6405 #6404 #6401 #6400 #6395 )")
|
| 397 |
+
|
| 398 |
+
# [1.7.0-beta.1](https://github.com/axios/axios/compare/v1.7.0-beta.0...v1.7.0-beta.1) (2024-05-07)
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
### Bug Fixes
|
| 402 |
+
|
| 403 |
+
* **core/axios:** handle un-writable error stack ([#6362](https://github.com/axios/axios/issues/6362)) ([81e0455](https://github.com/axios/axios/commit/81e0455b7b57fbaf2be16a73ebe0e6591cc6d8f9))
|
| 404 |
+
* **fetch:** fix cases when ReadableStream or Response.body are not available; ([#6377](https://github.com/axios/axios/issues/6377)) ([d1d359d](https://github.com/axios/axios/commit/d1d359da347704e8b28d768e61515a3e96c5b072))
|
| 405 |
+
* **fetch:** treat fetch-related TypeError as an AxiosError.ERR_NETWORK error; ([#6380](https://github.com/axios/axios/issues/6380)) ([bb5f9a5](https://github.com/axios/axios/commit/bb5f9a5ab768452de9e166dc28d0ffc234245ef1))
|
| 406 |
+
|
| 407 |
+
### Contributors to this release
|
| 408 |
+
|
| 409 |
+
- <img src="https://avatars.githubusercontent.com/u/16711696?v=4&s=18" alt="avatar" width="18"/> [Alexandre ABRIOUX](https://github.com/alexandre-abrioux "+56/-6 (#6362 )")
|
| 410 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+42/-17 (#6380 #6377 )")
|
| 411 |
+
|
| 412 |
+
# [1.7.0-beta.0](https://github.com/axios/axios/compare/v1.6.8...v1.7.0-beta.0) (2024-04-28)
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
### Features
|
| 416 |
+
|
| 417 |
+
* **adapter:** add fetch adapter; ([#6371](https://github.com/axios/axios/issues/6371)) ([a3ff99b](https://github.com/axios/axios/commit/a3ff99b59d8ec2ab5dd049e68c043617a4072e42))
|
| 418 |
+
|
| 419 |
+
### Contributors to this release
|
| 420 |
+
|
| 421 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+1015/-127 (#6371 )")
|
| 422 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+30/-14 ()")
|
| 423 |
+
|
| 424 |
+
## [1.6.8](https://github.com/axios/axios/compare/v1.6.7...v1.6.8) (2024-03-15)
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
### Bug Fixes
|
| 428 |
+
|
| 429 |
+
* **AxiosHeaders:** fix AxiosHeaders conversion to an object during config merging ([#6243](https://github.com/axios/axios/issues/6243)) ([2656612](https://github.com/axios/axios/commit/2656612bc10fe2757e9832b708ed773ab340b5cb))
|
| 430 |
+
* **import:** use named export for EventEmitter; ([7320430](https://github.com/axios/axios/commit/7320430aef2e1ba2b89488a0eaf42681165498b1))
|
| 431 |
+
* **vulnerability:** update follow-redirects to 1.15.6 ([#6300](https://github.com/axios/axios/issues/6300)) ([8786e0f](https://github.com/axios/axios/commit/8786e0ff55a8c68d4ca989801ad26df924042e27))
|
| 432 |
+
|
| 433 |
+
### Contributors to this release
|
| 434 |
+
|
| 435 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+4572/-3446 (#6238 )")
|
| 436 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-0 (#6231 )")
|
| 437 |
+
- <img src="https://avatars.githubusercontent.com/u/68230846?v=4&s=18" alt="avatar" width="18"/> [Mitchell](https://github.com/Creaous "+9/-9 (#6300 )")
|
| 438 |
+
- <img src="https://avatars.githubusercontent.com/u/53797821?v=4&s=18" alt="avatar" width="18"/> [Emmanuel](https://github.com/mannoeu "+2/-2 (#6196 )")
|
| 439 |
+
- <img src="https://avatars.githubusercontent.com/u/44109284?v=4&s=18" alt="avatar" width="18"/> [Lucas Keller](https://github.com/ljkeller "+3/-0 (#6194 )")
|
| 440 |
+
- <img src="https://avatars.githubusercontent.com/u/72791488?v=4&s=18" alt="avatar" width="18"/> [Aditya Mogili](https://github.com/ADITYA-176 "+1/-1 ()")
|
| 441 |
+
- <img src="https://avatars.githubusercontent.com/u/46135319?v=4&s=18" alt="avatar" width="18"/> [Miroslav Petrov](https://github.com/petrovmiroslav "+1/-1 (#6243 )")
|
| 442 |
+
|
| 443 |
+
## [1.6.7](https://github.com/axios/axios/compare/v1.6.6...v1.6.7) (2024-01-25)
|
| 444 |
+
|
| 445 |
+
|
| 446 |
+
### Bug Fixes
|
| 447 |
+
|
| 448 |
+
* capture async stack only for rejections with native error objects; ([#6203](https://github.com/axios/axios/issues/6203)) ([1a08f90](https://github.com/axios/axios/commit/1a08f90f402336e4d00e9ee82f211c6adb1640b0))
|
| 449 |
+
|
| 450 |
+
### Contributors to this release
|
| 451 |
+
|
| 452 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-26 (#6203 )")
|
| 453 |
+
- <img src="https://avatars.githubusercontent.com/u/73059627?v=4&s=18" alt="avatar" width="18"/> [zhoulixiang](https://github.com/zh-lx "+0/-3 (#6186 )")
|
| 454 |
+
|
| 455 |
+
## [1.6.6](https://github.com/axios/axios/compare/v1.6.5...v1.6.6) (2024-01-24)
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
### Bug Fixes
|
| 459 |
+
|
| 460 |
+
* fixed missed dispatchBeforeRedirect argument ([#5778](https://github.com/axios/axios/issues/5778)) ([a1938ff](https://github.com/axios/axios/commit/a1938ff073fcb0f89011f001dfbc1fa1dc995e39))
|
| 461 |
+
* wrap errors to improve async stack trace ([#5987](https://github.com/axios/axios/issues/5987)) ([123f354](https://github.com/axios/axios/commit/123f354b920f154a209ea99f76b7b2ef3d9ebbab))
|
| 462 |
+
|
| 463 |
+
### Contributors to this release
|
| 464 |
+
|
| 465 |
+
- <img src="https://avatars.githubusercontent.com/u/1186084?v=4&s=18" alt="avatar" width="18"/> [Ilya Priven](https://github.com/ikonst "+91/-8 (#5987 )")
|
| 466 |
+
- <img src="https://avatars.githubusercontent.com/u/1884246?v=4&s=18" alt="avatar" width="18"/> [Zao Soula](https://github.com/zaosoula "+6/-6 (#5778 )")
|
| 467 |
+
|
| 468 |
+
## [1.6.5](https://github.com/axios/axios/compare/v1.6.4...v1.6.5) (2024-01-05)
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
### Bug Fixes
|
| 472 |
+
|
| 473 |
+
* **ci:** refactor notify action as a job of publish action; ([#6176](https://github.com/axios/axios/issues/6176)) ([0736f95](https://github.com/axios/axios/commit/0736f95ce8776366dc9ca569f49ba505feb6373c))
|
| 474 |
+
* **dns:** fixed lookup error handling; ([#6175](https://github.com/axios/axios/issues/6175)) ([f4f2b03](https://github.com/axios/axios/commit/f4f2b039dd38eb4829e8583caede4ed6d2dd59be))
|
| 475 |
+
|
| 476 |
+
### Contributors to this release
|
| 477 |
+
|
| 478 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+41/-6 (#6176 #6175 )")
|
| 479 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+6/-1 ()")
|
| 480 |
+
|
| 481 |
+
## [1.6.4](https://github.com/axios/axios/compare/v1.6.3...v1.6.4) (2024-01-03)
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
### Bug Fixes
|
| 485 |
+
|
| 486 |
+
* **security:** fixed formToJSON prototype pollution vulnerability; ([#6167](https://github.com/axios/axios/issues/6167)) ([3c0c11c](https://github.com/axios/axios/commit/3c0c11cade045c4412c242b5727308cff9897a0e))
|
| 487 |
+
* **security:** fixed security vulnerability in follow-redirects ([#6163](https://github.com/axios/axios/issues/6163)) ([75af1cd](https://github.com/axios/axios/commit/75af1cdff5b3a6ca3766d3d3afbc3115bb0811b8))
|
| 488 |
+
|
| 489 |
+
### Contributors to this release
|
| 490 |
+
|
| 491 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+34/-6 ()")
|
| 492 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+34/-3 (#6172 #6167 )")
|
| 493 |
+
- <img src="https://avatars.githubusercontent.com/u/1402060?v=4&s=18" alt="avatar" width="18"/> [Guy Nesher](https://github.com/gnesher "+10/-10 (#6163 )")
|
| 494 |
+
|
| 495 |
+
## [1.6.3](https://github.com/axios/axios/compare/v1.6.2...v1.6.3) (2023-12-26)
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
### Bug Fixes
|
| 499 |
+
|
| 500 |
+
* Regular Expression Denial of Service (ReDoS) ([#6132](https://github.com/axios/axios/issues/6132)) ([5e7ad38](https://github.com/axios/axios/commit/5e7ad38fb0f819fceb19fb2ee5d5d38f56aa837d))
|
| 501 |
+
|
| 502 |
+
### Contributors to this release
|
| 503 |
+
|
| 504 |
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+15/-6 (#6145 )")
|
| 505 |
+
- <img src="https://avatars.githubusercontent.com/u/22686401?v=4&s=18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+17/-2 (#6132 )")
|
| 506 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-0 (#6084 )")
|
| 507 |
+
|
| 508 |
+
## [1.6.2](https://github.com/axios/axios/compare/v1.6.1...v1.6.2) (2023-11-14)
|
| 509 |
+
|
| 510 |
+
|
| 511 |
+
### Features
|
| 512 |
+
|
| 513 |
+
* **withXSRFToken:** added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ([#6046](https://github.com/axios/axios/issues/6046)) ([cff9967](https://github.com/axios/axios/commit/cff996779b272a5e94c2b52f5503ccf668bc42dc))
|
| 514 |
+
|
| 515 |
+
### PRs
|
| 516 |
+
- feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) )
|
| 517 |
+
```
|
| 518 |
+
|
| 519 |
+
📢 This PR added 'withXSRFToken' option as a replacement for old withCredentials behaviour.
|
| 520 |
+
You should now use withXSRFToken along with withCredential to get the old behavior.
|
| 521 |
+
This functionality is considered as a fix.
|
| 522 |
+
```
|
| 523 |
+
|
| 524 |
+
### Contributors to this release
|
| 525 |
+
|
| 526 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+271/-146 (#6081 #6080 #6079 #6078 #6046 #6064 #6063 )")
|
| 527 |
+
- <img src="https://avatars.githubusercontent.com/u/79681367?v=4&s=18" alt="avatar" width="18"/> [Ng Choon Khon (CK)](https://github.com/ckng0221 "+4/-4 (#6073 )")
|
| 528 |
+
- <img src="https://avatars.githubusercontent.com/u/9162827?v=4&s=18" alt="avatar" width="18"/> [Muhammad Noman](https://github.com/mnomanmemon "+2/-2 (#6048 )")
|
| 529 |
+
|
| 530 |
+
## [1.6.1](https://github.com/axios/axios/compare/v1.6.0...v1.6.1) (2023-11-08)
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
### Bug Fixes
|
| 534 |
+
|
| 535 |
+
* **formdata:** fixed content-type header normalization for non-standard browser environments; ([#6056](https://github.com/axios/axios/issues/6056)) ([dd465ab](https://github.com/axios/axios/commit/dd465ab22bbfa262c6567be6574bf46a057d5288))
|
| 536 |
+
* **platform:** fixed emulated browser detection in node.js environment; ([#6055](https://github.com/axios/axios/issues/6055)) ([3dc8369](https://github.com/axios/axios/commit/3dc8369e505e32a4e12c22f154c55fd63ac67fbb))
|
| 537 |
+
|
| 538 |
+
### Contributors to this release
|
| 539 |
+
|
| 540 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+432/-65 (#6059 #6056 #6055 )")
|
| 541 |
+
- <img src="https://avatars.githubusercontent.com/u/3982806?v=4&s=18" alt="avatar" width="18"/> [Fabian Meyer](https://github.com/meyfa "+5/-2 (#5835 )")
|
| 542 |
+
|
| 543 |
+
### PRs
|
| 544 |
+
- feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) )
|
| 545 |
+
```
|
| 546 |
+
|
| 547 |
+
📢 This PR added 'withXSRFToken' option as a replacement for old withCredentials behaviour.
|
| 548 |
+
You should now use withXSRFToken along with withCredential to get the old behavior.
|
| 549 |
+
This functionality is considered as a fix.
|
| 550 |
+
```
|
| 551 |
+
|
| 552 |
+
# [1.6.0](https://github.com/axios/axios/compare/v1.5.1...v1.6.0) (2023-10-26)
|
| 553 |
+
|
| 554 |
+
|
| 555 |
+
### Bug Fixes
|
| 556 |
+
|
| 557 |
+
* **CSRF:** fixed CSRF vulnerability CVE-2023-45857 ([#6028](https://github.com/axios/axios/issues/6028)) ([96ee232](https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0))
|
| 558 |
+
* **dns:** fixed lookup function decorator to work properly in node v20; ([#6011](https://github.com/axios/axios/issues/6011)) ([5aaff53](https://github.com/axios/axios/commit/5aaff532a6b820bb9ab6a8cd0f77131b47e2adb8))
|
| 559 |
+
* **types:** fix AxiosHeaders types; ([#5931](https://github.com/axios/axios/issues/5931)) ([a1c8ad0](https://github.com/axios/axios/commit/a1c8ad008b3c13d53e135bbd0862587fb9d3fc09))
|
| 560 |
+
|
| 561 |
+
### PRs
|
| 562 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 563 |
+
```
|
| 564 |
+
|
| 565 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 566 |
+
```
|
| 567 |
+
|
| 568 |
+
### Contributors to this release
|
| 569 |
+
|
| 570 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+449/-114 (#6032 #6021 #6011 #5932 #5931 )")
|
| 571 |
+
- <img src="https://avatars.githubusercontent.com/u/63700910?v=4&s=18" alt="avatar" width="18"/> [Valentin Panov](https://github.com/valentin-panov "+4/-4 (#6028 )")
|
| 572 |
+
- <img src="https://avatars.githubusercontent.com/u/76877078?v=4&s=18" alt="avatar" width="18"/> [Rinku Chaudhari](https://github.com/therealrinku "+1/-1 (#5889 )")
|
| 573 |
+
|
| 574 |
+
## [1.5.1](https://github.com/axios/axios/compare/v1.5.0...v1.5.1) (2023-09-26)
|
| 575 |
+
|
| 576 |
+
|
| 577 |
+
### Bug Fixes
|
| 578 |
+
|
| 579 |
+
* **adapters:** improved adapters loading logic to have clear error messages; ([#5919](https://github.com/axios/axios/issues/5919)) ([e410779](https://github.com/axios/axios/commit/e4107797a7a1376f6209fbecfbbce73d3faa7859))
|
| 580 |
+
* **formdata:** fixed automatic addition of the `Content-Type` header for FormData in non-browser environments; ([#5917](https://github.com/axios/axios/issues/5917)) ([bc9af51](https://github.com/axios/axios/commit/bc9af51b1886d1b3529617702f2a21a6c0ed5d92))
|
| 581 |
+
* **headers:** allow `content-encoding` header to handle case-insensitive values ([#5890](https://github.com/axios/axios/issues/5890)) ([#5892](https://github.com/axios/axios/issues/5892)) ([4c89f25](https://github.com/axios/axios/commit/4c89f25196525e90a6e75eda9cb31ae0a2e18acd))
|
| 582 |
+
* **types:** removed duplicated code ([9e62056](https://github.com/axios/axios/commit/9e6205630e1c9cf863adf141c0edb9e6d8d4b149))
|
| 583 |
+
|
| 584 |
+
### Contributors to this release
|
| 585 |
+
|
| 586 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+89/-18 (#5919 #5917 )")
|
| 587 |
+
- <img src="https://avatars.githubusercontent.com/u/110460234?v=4&s=18" alt="avatar" width="18"/> [David Dallas](https://github.com/DavidJDallas "+11/-5 ()")
|
| 588 |
+
- <img src="https://avatars.githubusercontent.com/u/71556073?v=4&s=18" alt="avatar" width="18"/> [Sean Sattler](https://github.com/fb-sean "+2/-8 ()")
|
| 589 |
+
- <img src="https://avatars.githubusercontent.com/u/4294069?v=4&s=18" alt="avatar" width="18"/> [Mustafa Ateş Uzun](https://github.com/0o001 "+4/-4 ()")
|
| 590 |
+
- <img src="https://avatars.githubusercontent.com/u/132928043?v=4&s=18" alt="avatar" width="18"/> [Przemyslaw Motacki](https://github.com/sfc-gh-pmotacki "+2/-1 (#5892 )")
|
| 591 |
+
- <img src="https://avatars.githubusercontent.com/u/5492927?v=4&s=18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+1/-1 ()")
|
| 592 |
+
|
| 593 |
+
### PRs
|
| 594 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 595 |
+
```
|
| 596 |
+
|
| 597 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 598 |
+
```
|
| 599 |
+
|
| 600 |
+
# [1.5.0](https://github.com/axios/axios/compare/v1.4.0...v1.5.0) (2023-08-26)
|
| 601 |
+
|
| 602 |
+
|
| 603 |
+
### Bug Fixes
|
| 604 |
+
|
| 605 |
+
* **adapter:** make adapter loading error more clear by using platform-specific adapters explicitly ([#5837](https://github.com/axios/axios/issues/5837)) ([9a414bb](https://github.com/axios/axios/commit/9a414bb6c81796a95c6c7fe668637825458e8b6d))
|
| 606 |
+
* **dns:** fixed `cacheable-lookup` integration; ([#5836](https://github.com/axios/axios/issues/5836)) ([b3e327d](https://github.com/axios/axios/commit/b3e327dcc9277bdce34c7ef57beedf644b00d628))
|
| 607 |
+
* **headers:** added support for setting header names that overlap with class methods; ([#5831](https://github.com/axios/axios/issues/5831)) ([d8b4ca0](https://github.com/axios/axios/commit/d8b4ca0ea5f2f05efa4edfe1e7684593f9f68273))
|
| 608 |
+
* **headers:** fixed common Content-Type header merging; ([#5832](https://github.com/axios/axios/issues/5832)) ([8fda276](https://github.com/axios/axios/commit/8fda2766b1e6bcb72c3fabc146223083ef13ce17))
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
### Features
|
| 612 |
+
|
| 613 |
+
* export getAdapter function ([#5324](https://github.com/axios/axios/issues/5324)) ([ca73eb8](https://github.com/axios/axios/commit/ca73eb878df0ae2dace81fe3a7f1fb5986231bf1))
|
| 614 |
+
* **export:** export adapters without `unsafe` prefix ([#5839](https://github.com/axios/axios/issues/5839)) ([1601f4a](https://github.com/axios/axios/commit/1601f4a27a81ab47fea228f1e244b2c4e3ce28bf))
|
| 615 |
+
|
| 616 |
+
### Contributors to this release
|
| 617 |
+
|
| 618 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+66/-29 (#5839 #5837 #5836 #5832 #5831 )")
|
| 619 |
+
- <img src="https://avatars.githubusercontent.com/u/102841186?v=4&s=18" alt="avatar" width="18"/> [夜葬](https://github.com/geekact "+42/-0 (#5324 )")
|
| 620 |
+
- <img src="https://avatars.githubusercontent.com/u/65978976?v=4&s=18" alt="avatar" width="18"/> [Jonathan Budiman](https://github.com/JBudiman00 "+30/-0 (#5788 )")
|
| 621 |
+
- <img src="https://avatars.githubusercontent.com/u/5492927?v=4&s=18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-5 (#5791 )")
|
| 622 |
+
|
| 623 |
+
### PRs
|
| 624 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 625 |
+
```
|
| 626 |
+
|
| 627 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 628 |
+
```
|
| 629 |
+
|
| 630 |
+
# [1.4.0](https://github.com/axios/axios/compare/v1.3.6...v1.4.0) (2023-04-27)
|
| 631 |
+
|
| 632 |
+
|
| 633 |
+
### Bug Fixes
|
| 634 |
+
|
| 635 |
+
* **formdata:** add `multipart/form-data` content type for FormData payload on custom client environments; ([#5678](https://github.com/axios/axios/issues/5678)) ([bbb61e7](https://github.com/axios/axios/commit/bbb61e70cb1185adfb1cbbb86eaf6652c48d89d1))
|
| 636 |
+
* **package:** export package internals with unsafe path prefix; ([#5677](https://github.com/axios/axios/issues/5677)) ([df38c94](https://github.com/axios/axios/commit/df38c949f26414d88ba29ec1e353c4d4f97eaf09))
|
| 637 |
+
|
| 638 |
+
|
| 639 |
+
### Features
|
| 640 |
+
|
| 641 |
+
* **dns:** added support for a custom lookup function; ([#5339](https://github.com/axios/axios/issues/5339)) ([2701911](https://github.com/axios/axios/commit/2701911260a1faa5cc5e1afe437121b330a3b7bb))
|
| 642 |
+
* **types:** export `AxiosHeaderValue` type. ([#5525](https://github.com/axios/axios/issues/5525)) ([726f1c8](https://github.com/axios/axios/commit/726f1c8e00cffa0461a8813a9bdcb8f8b9d762cf))
|
| 643 |
+
|
| 644 |
+
|
| 645 |
+
### Performance Improvements
|
| 646 |
+
|
| 647 |
+
* **merge-config:** optimize mergeConfig performance by avoiding duplicate key visits; ([#5679](https://github.com/axios/axios/issues/5679)) ([e6f7053](https://github.com/axios/axios/commit/e6f7053bf1a3e87cf1f9da8677e12e3fe829d68e))
|
| 648 |
+
|
| 649 |
+
### Contributors to this release
|
| 650 |
+
|
| 651 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+151/-16 (#5684 #5339 #5679 #5678 #5677 )")
|
| 652 |
+
- <img src="https://avatars.githubusercontent.com/u/47537704?v=4&s=18" alt="avatar" width="18"/> [Arthur Fiorette](https://github.com/arthurfiorette "+19/-19 (#5525 )")
|
| 653 |
+
- <img src="https://avatars.githubusercontent.com/u/43876655?v=4&s=18" alt="avatar" width="18"/> [PIYUSH NEGI](https://github.com/npiyush97 "+2/-18 (#5670 )")
|
| 654 |
+
|
| 655 |
+
### PRs
|
| 656 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 657 |
+
```
|
| 658 |
+
|
| 659 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 660 |
+
```
|
| 661 |
+
|
| 662 |
+
## [1.3.6](https://github.com/axios/axios/compare/v1.3.5...v1.3.6) (2023-04-19)
|
| 663 |
+
|
| 664 |
+
|
| 665 |
+
### Bug Fixes
|
| 666 |
+
|
| 667 |
+
* **types:** added transport to RawAxiosRequestConfig ([#5445](https://github.com/axios/axios/issues/5445)) ([6f360a2](https://github.com/axios/axios/commit/6f360a2531d8d70363fd9becef6a45a323f170e2))
|
| 668 |
+
* **utils:** make isFormData detection logic stricter to avoid unnecessary calling of the `toString` method on the target; ([#5661](https://github.com/axios/axios/issues/5661)) ([aa372f7](https://github.com/axios/axios/commit/aa372f7306295dfd1100c1c2c77ce95c95808e76))
|
| 669 |
+
|
| 670 |
+
### Contributors to this release
|
| 671 |
+
|
| 672 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+48/-10 (#5665 #5661 #5663 )")
|
| 673 |
+
- <img src="https://avatars.githubusercontent.com/u/5492927?v=4&s=18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+2/-0 (#5445 )")
|
| 674 |
+
|
| 675 |
+
### PRs
|
| 676 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 677 |
+
```
|
| 678 |
+
|
| 679 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 680 |
+
```
|
| 681 |
+
|
| 682 |
+
## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05)
|
| 683 |
+
|
| 684 |
+
|
| 685 |
+
### Bug Fixes
|
| 686 |
+
|
| 687 |
+
* **headers:** fixed isValidHeaderName to support full list of allowed characters; ([#5584](https://github.com/axios/axios/issues/5584)) ([e7decef](https://github.com/axios/axios/commit/e7decef6a99f4627e27ed9ea5b00ce8e201c3841))
|
| 688 |
+
* **params:** re-added the ability to set the function as `paramsSerializer` config; ([#5633](https://github.com/axios/axios/issues/5633)) ([a56c866](https://github.com/axios/axios/commit/a56c8661209d5ce5a645a05f294a0e08a6c1f6b3))
|
| 689 |
+
|
| 690 |
+
### Contributors to this release
|
| 691 |
+
|
| 692 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )")
|
| 693 |
+
|
| 694 |
+
### PRs
|
| 695 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 696 |
+
```
|
| 697 |
+
|
| 698 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 699 |
+
```
|
| 700 |
+
|
| 701 |
+
## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22)
|
| 702 |
+
|
| 703 |
+
|
| 704 |
+
### Bug Fixes
|
| 705 |
+
|
| 706 |
+
* **blob:** added a check to make sure the Blob class is available in the browser's global scope; ([#5548](https://github.com/axios/axios/issues/5548)) ([3772c8f](https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a))
|
| 707 |
+
* **http:** fixed regression bug when handling synchronous errors inside the adapter; ([#5564](https://github.com/axios/axios/issues/5564)) ([a3b246c](https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451))
|
| 708 |
+
|
| 709 |
+
### Contributors to this release
|
| 710 |
+
|
| 711 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+38/-26 (#5564 )")
|
| 712 |
+
- <img src="https://avatars.githubusercontent.com/u/19550000?v=4&s=18" alt="avatar" width="18"/> [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )")
|
| 713 |
+
- <img src="https://avatars.githubusercontent.com/u/5492927?v=4&s=18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )")
|
| 714 |
+
|
| 715 |
+
### PRs
|
| 716 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 717 |
+
```
|
| 718 |
+
|
| 719 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 720 |
+
```
|
| 721 |
+
|
| 722 |
+
## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13)
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
### Bug Fixes
|
| 726 |
+
|
| 727 |
+
* **formdata:** added a check to make sure the FormData class is available in the browser's global scope; ([#5545](https://github.com/axios/axios/issues/5545)) ([a6dfa72](https://github.com/axios/axios/commit/a6dfa72010db5ad52db8bd13c0f98e537e8fd05d))
|
| 728 |
+
* **formdata:** fixed setting NaN as Content-Length for form payload in some cases; ([#5535](https://github.com/axios/axios/issues/5535)) ([c19f7bf](https://github.com/axios/axios/commit/c19f7bf770f90ae8307f4ea3104f227056912da1))
|
| 729 |
+
* **headers:** fixed the filtering logic of the clear method; ([#5542](https://github.com/axios/axios/issues/5542)) ([ea87ebf](https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93))
|
| 730 |
+
|
| 731 |
+
### Contributors to this release
|
| 732 |
+
|
| 733 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+11/-7 (#5545 #5535 #5542 )")
|
| 734 |
+
- <img src="https://avatars.githubusercontent.com/u/19842213?v=4&s=18" alt="avatar" width="18"/> [陈若枫](https://github.com/ruofee "+2/-2 (#5467 )")
|
| 735 |
+
|
| 736 |
+
### PRs
|
| 737 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 738 |
+
```
|
| 739 |
+
|
| 740 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 741 |
+
```
|
| 742 |
+
|
| 743 |
+
## [1.3.2](https://github.com/axios/axios/compare/v1.3.1...v1.3.2) (2023-02-03)
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
### Bug Fixes
|
| 747 |
+
|
| 748 |
+
* **http:** treat http://localhost as base URL for relative paths to avoid `ERR_INVALID_URL` error; ([#5528](https://github.com/axios/axios/issues/5528)) ([128d56f](https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c))
|
| 749 |
+
* **http:** use explicit import instead of TextEncoder global; ([#5530](https://github.com/axios/axios/issues/5530)) ([6b3c305](https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f))
|
| 750 |
+
|
| 751 |
+
### Contributors to this release
|
| 752 |
+
|
| 753 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+2/-1 (#5530 #5528 )")
|
| 754 |
+
|
| 755 |
+
### PRs
|
| 756 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 757 |
+
```
|
| 758 |
+
|
| 759 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 760 |
+
```
|
| 761 |
+
|
| 762 |
+
## [1.3.1](https://github.com/axios/axios/compare/v1.3.0...v1.3.1) (2023-02-01)
|
| 763 |
+
|
| 764 |
+
|
| 765 |
+
### Bug Fixes
|
| 766 |
+
|
| 767 |
+
* **formdata:** add hotfix to use the asynchronous API to compute the content-length header value; ([#5521](https://github.com/axios/axios/issues/5521)) ([96d336f](https://github.com/axios/axios/commit/96d336f527619f21da012fe1f117eeb53e5a2120))
|
| 768 |
+
* **serializer:** fixed serialization of array-like objects; ([#5518](https://github.com/axios/axios/issues/5518)) ([08104c0](https://github.com/axios/axios/commit/08104c028c0f9353897b1b6691d74c440fd0c32d))
|
| 769 |
+
|
| 770 |
+
### Contributors to this release
|
| 771 |
+
|
| 772 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-8 (#5521 #5518 )")
|
| 773 |
+
|
| 774 |
+
### PRs
|
| 775 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 776 |
+
```
|
| 777 |
+
|
| 778 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 779 |
+
```
|
| 780 |
+
|
| 781 |
+
# [1.3.0](https://github.com/axios/axios/compare/v1.2.6...v1.3.0) (2023-01-31)
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
### Bug Fixes
|
| 785 |
+
|
| 786 |
+
* **headers:** fixed & optimized clear method; ([#5507](https://github.com/axios/axios/issues/5507)) ([9915635](https://github.com/axios/axios/commit/9915635c69d0ab70daca5738488421f67ca60959))
|
| 787 |
+
* **http:** add zlib headers if missing ([#5497](https://github.com/axios/axios/issues/5497)) ([65e8d1e](https://github.com/axios/axios/commit/65e8d1e28ce829f47a837e45129730e541950d3c))
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
### Features
|
| 791 |
+
|
| 792 |
+
* **fomdata:** added support for spec-compliant FormData & Blob types; ([#5316](https://github.com/axios/axios/issues/5316)) ([6ac574e](https://github.com/axios/axios/commit/6ac574e00a06731288347acea1e8246091196953))
|
| 793 |
+
|
| 794 |
+
### Contributors to this release
|
| 795 |
+
|
| 796 |
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+352/-67 (#5514 #5512 #5510 #5509 #5508 #5316 #5507 )")
|
| 797 |
+
- <img src="https://avatars.githubusercontent.com/u/35015993?v=4&s=18" alt="avatar" width="18"/> [ItsNotGoodName](https://github.com/ItsNotGoodName "+43/-2 (#5497 )")
|
| 798 |
+
|
| 799 |
+
### PRs
|
| 800 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 801 |
+
```
|
| 802 |
+
|
| 803 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 804 |
+
```
|
| 805 |
+
|
| 806 |
+
## [1.2.6](https://github.com/axios/axios/compare/v1.2.5...v1.2.6) (2023-01-28)
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
### Bug Fixes
|
| 810 |
+
|
| 811 |
+
* **headers:** added missed Authorization accessor; ([#5502](https://github.com/axios/axios/issues/5502)) ([342c0ba](https://github.com/axios/axios/commit/342c0ba9a16ea50f5ed7d2366c5c1a2c877e3f26))
|
| 812 |
+
* **types:** fixed `CommonRequestHeadersList` & `CommonResponseHeadersList` types to be private in commonJS; ([#5503](https://github.com/axios/axios/issues/5503)) ([5a3d0a3](https://github.com/axios/axios/commit/5a3d0a3234d77361a1bc7cedee2da1e11df08e2c))
|
| 813 |
+
|
| 814 |
+
### Contributors to this release
|
| 815 |
+
|
| 816 |
+
-  [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+24/-9 (#5503 #5502 )")
|
| 817 |
+
|
| 818 |
+
### PRs
|
| 819 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 820 |
+
```
|
| 821 |
+
|
| 822 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 823 |
+
```
|
| 824 |
+
|
| 825 |
+
## [1.2.5](https://github.com/axios/axios/compare/v1.2.4...v1.2.5) (2023-01-26)
|
| 826 |
+
|
| 827 |
+
|
| 828 |
+
### Bug Fixes
|
| 829 |
+
|
| 830 |
+
* **types:** fixed AxiosHeaders to handle spread syntax by making all methods non-enumerable; ([#5499](https://github.com/axios/axios/issues/5499)) ([580f1e8](https://github.com/axios/axios/commit/580f1e8033a61baa38149d59fd16019de3932c22))
|
| 831 |
+
|
| 832 |
+
### Contributors to this release
|
| 833 |
+
|
| 834 |
+
-  [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+82/-54 (#5499 )")
|
| 835 |
+
-  [Elliot Ford](https://github.com/EFord36 "+1/-1 (#5462 )")
|
| 836 |
+
|
| 837 |
+
### PRs
|
| 838 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 839 |
+
```
|
| 840 |
+
|
| 841 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 842 |
+
```
|
| 843 |
+
|
| 844 |
+
## [1.2.4](https://github.com/axios/axios/compare/v1.2.3...v1.2.4) (2023-01-22)
|
| 845 |
+
|
| 846 |
+
|
| 847 |
+
### Bug Fixes
|
| 848 |
+
|
| 849 |
+
* **types:** renamed `RawAxiosRequestConfig` back to `AxiosRequestConfig`; ([#5486](https://github.com/axios/axios/issues/5486)) ([2a71f49](https://github.com/axios/axios/commit/2a71f49bc6c68495fa419003a3107ed8bd703ad0))
|
| 850 |
+
* **types:** fix `AxiosRequestConfig` generic; ([#5478](https://github.com/axios/axios/issues/5478)) ([9bce81b](https://github.com/axios/axios/commit/186ea062da8b7d578ae78b1a5c220986b9bce81b))
|
| 851 |
+
|
| 852 |
+
### Contributors to this release
|
| 853 |
+
|
| 854 |
+
-  [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+242/-108 (#5486 #5482 )")
|
| 855 |
+
-  [Daniel Hillmann](https://github.com/hilleer "+1/-1 (#5478 )")
|
| 856 |
+
|
| 857 |
+
### PRs
|
| 858 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 859 |
+
```
|
| 860 |
+
|
| 861 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 862 |
+
```
|
| 863 |
+
|
| 864 |
+
## [1.2.3](https://github.com/axios/axios/compare/1.2.2...1.2.3) (2023-01-10)
|
| 865 |
+
|
| 866 |
+
|
| 867 |
+
### Bug Fixes
|
| 868 |
+
|
| 869 |
+
* **types:** fixed AxiosRequestConfig header interface by refactoring it to RawAxiosRequestConfig; ([#5420](https://github.com/axios/axios/issues/5420)) ([0811963](https://github.com/axios/axios/commit/08119634a22f1d5b19f5c9ea0adccb6d3eebc3bc))
|
| 870 |
+
|
| 871 |
+
### Contributors to this release
|
| 872 |
+
|
| 873 |
+
-  [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+938/-442 (#5456 #5455 #5453 #5451 #5449 #5447 #5446 #5443 #5442 #5439 #5420 )")
|
| 874 |
+
|
| 875 |
+
### PRs
|
| 876 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 877 |
+
```
|
| 878 |
+
|
| 879 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 880 |
+
```
|
| 881 |
+
|
| 882 |
+
## [1.2.2] - 2022-12-29
|
| 883 |
+
|
| 884 |
+
### Fixed
|
| 885 |
+
- fix(ci): fix release script inputs [#5392](https://github.com/axios/axios/pull/5392)
|
| 886 |
+
- fix(ci): prerelease scipts [#5377](https://github.com/axios/axios/pull/5377)
|
| 887 |
+
- fix(ci): release scripts [#5376](https://github.com/axios/axios/pull/5376)
|
| 888 |
+
- fix(ci): typescript tests [#5375](https://github.com/axios/axios/pull/5375)
|
| 889 |
+
- fix: Brotli decompression [#5353](https://github.com/axios/axios/pull/5353)
|
| 890 |
+
- fix: add missing HttpStatusCode [#5345](https://github.com/axios/axios/pull/5345)
|
| 891 |
+
|
| 892 |
+
### Chores
|
| 893 |
+
- chore(ci): set conventional-changelog header config [#5406](https://github.com/axios/axios/pull/5406)
|
| 894 |
+
- chore(ci): fix automatic contributors resolving [#5403](https://github.com/axios/axios/pull/5403)
|
| 895 |
+
- chore(ci): improved logging for the contributors list generator [#5398](https://github.com/axios/axios/pull/5398)
|
| 896 |
+
- chore(ci): fix release action [#5397](https://github.com/axios/axios/pull/5397)
|
| 897 |
+
- chore(ci): fix version bump script by adding bump argument for target version [#5393](https://github.com/axios/axios/pull/5393)
|
| 898 |
+
- chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 [#5342](https://github.com/axios/axios/pull/5342)
|
| 899 |
+
- chore(ci): GitHub Actions Release script [#5384](https://github.com/axios/axios/pull/5384)
|
| 900 |
+
- chore(ci): release scripts [#5364](https://github.com/axios/axios/pull/5364)
|
| 901 |
+
|
| 902 |
+
### Contributors to this release
|
| 903 |
+
-  [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
| 904 |
+
-  [Winnie](https://github.com/winniehell)
|
| 905 |
+
|
| 906 |
+
## [1.2.1] - 2022-12-05
|
| 907 |
+
|
| 908 |
+
### Changed
|
| 909 |
+
- feat(exports): export mergeConfig [#5151](https://github.com/axios/axios/pull/5151)
|
| 910 |
+
|
| 911 |
+
### Fixed
|
| 912 |
+
- fix(CancelledError): include config [#4922](https://github.com/axios/axios/pull/4922)
|
| 913 |
+
- fix(general): removing multiple/trailing/leading whitespace [#5022](https://github.com/axios/axios/pull/5022)
|
| 914 |
+
- fix(headers): decompression for responses without Content-Length header [#5306](https://github.com/axios/axios/pull/5306)
|
| 915 |
+
- fix(webWorker): exception to sending form data in web worker [#5139](https://github.com/axios/axios/pull/5139)
|
| 916 |
+
|
| 917 |
+
### Refactors
|
| 918 |
+
- refactor(types): AxiosProgressEvent.event type to any [#5308](https://github.com/axios/axios/pull/5308)
|
| 919 |
+
- refactor(types): add missing types for static AxiosError.from method [#4956](https://github.com/axios/axios/pull/4956)
|
| 920 |
+
|
| 921 |
+
### Chores
|
| 922 |
+
- chore(docs): remove README link to non-existent upgrade guide [#5307](https://github.com/axios/axios/pull/5307)
|
| 923 |
+
- chore(docs): typo in issue template name [#5159](https://github.com/axios/axios/pull/5159)
|
| 924 |
+
|
| 925 |
+
### Contributors to this release
|
| 926 |
+
|
| 927 |
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
| 928 |
+
- [Zachary Lysobey](https://github.com/zachlysobey)
|
| 929 |
+
- [Kevin Ennis](https://github.com/kevincennis)
|
| 930 |
+
- [Philipp Loose](https://github.com/phloose)
|
| 931 |
+
- [secondl1ght](https://github.com/secondl1ght)
|
| 932 |
+
- [wenzheng](https://github.com/0x30)
|
| 933 |
+
- [Ivan Barsukov](https://github.com/ovarn)
|
| 934 |
+
- [Arthur Fiorette](https://github.com/arthurfiorette)
|
| 935 |
+
|
| 936 |
+
### PRs
|
| 937 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 938 |
+
```
|
| 939 |
+
|
| 940 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 941 |
+
```
|
| 942 |
+
|
| 943 |
+
## [1.2.0] - 2022-11-10
|
| 944 |
+
|
| 945 |
+
### Changed
|
| 946 |
+
|
| 947 |
+
- changed: refactored module exports [#5162](https://github.com/axios/axios/pull/5162)
|
| 948 |
+
- change: re-added support for loading Axios with require('axios').default [#5225](https://github.com/axios/axios/pull/5225)
|
| 949 |
+
|
| 950 |
+
### Fixed
|
| 951 |
+
|
| 952 |
+
- fix: improve AxiosHeaders class [#5224](https://github.com/axios/axios/pull/5224)
|
| 953 |
+
- fix: TypeScript type definitions for commonjs [#5196](https://github.com/axios/axios/pull/5196)
|
| 954 |
+
- fix: type definition of use method on AxiosInterceptorManager to match the the README [#5071](https://github.com/axios/axios/pull/5071)
|
| 955 |
+
- fix: __dirname is not defined in the sandbox [#5269](https://github.com/axios/axios/pull/5269)
|
| 956 |
+
- fix: AxiosError.toJSON method to avoid circular references [#5247](https://github.com/axios/axios/pull/5247)
|
| 957 |
+
- fix: Z_BUF_ERROR when content-encoding is set but the response body is empty [#5250](https://github.com/axios/axios/pull/5250)
|
| 958 |
+
|
| 959 |
+
### Refactors
|
| 960 |
+
- refactor: allowing adapters to be loaded by name [#5277](https://github.com/axios/axios/pull/5277)
|
| 961 |
+
|
| 962 |
+
### Chores
|
| 963 |
+
|
| 964 |
+
- chore: force CI restart [#5243](https://github.com/axios/axios/pull/5243)
|
| 965 |
+
- chore: update ECOSYSTEM.md [#5077](https://github.com/axios/axios/pull/5077)
|
| 966 |
+
- chore: update get/index.html [#5116](https://github.com/axios/axios/pull/5116)
|
| 967 |
+
- chore: update Sandbox UI/UX [#5205](https://github.com/axios/axios/pull/5205)
|
| 968 |
+
- chore:(actions): remove git credentials after checkout [#5235](https://github.com/axios/axios/pull/5235)
|
| 969 |
+
- chore(actions): bump actions/dependency-review-action from 2 to 3 [#5266](https://github.com/axios/axios/pull/5266)
|
| 970 |
+
- chore(packages): bump loader-utils from 1.4.1 to 1.4.2 [#5295](https://github.com/axios/axios/pull/5295)
|
| 971 |
+
- chore(packages): bump engine.io from 6.2.0 to 6.2.1 [#5294](https://github.com/axios/axios/pull/5294)
|
| 972 |
+
- chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 [#5241](https://github.com/axios/axios/pull/5241)
|
| 973 |
+
- chore(packages): bump loader-utils from 1.4.0 to 1.4.1 [#5245](https://github.com/axios/axios/pull/5245)
|
| 974 |
+
- chore(docs): update Resources links in README [#5119](https://github.com/axios/axios/pull/5119)
|
| 975 |
+
- chore(docs): update the link for JSON url [#5265](https://github.com/axios/axios/pull/5265)
|
| 976 |
+
- chore(docs): fix broken links [#5218](https://github.com/axios/axios/pull/5218)
|
| 977 |
+
- chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md [#5170](https://github.com/axios/axios/pull/5170)
|
| 978 |
+
- chore(docs): typo fix line #856 and #920 [#5194](https://github.com/axios/axios/pull/5194)
|
| 979 |
+
- chore(docs): typo fix #800 [#5193](https://github.com/axios/axios/pull/5193)
|
| 980 |
+
- chore(docs): fix typos [#5184](https://github.com/axios/axios/pull/5184)
|
| 981 |
+
- chore(docs): fix punctuation in README.md [#5197](https://github.com/axios/axios/pull/5197)
|
| 982 |
+
- chore(docs): update readme in the Handling Errors section - issue reference #5260 [#5261](https://github.com/axios/axios/pull/5261)
|
| 983 |
+
- chore: remove \b from filename [#5207](https://github.com/axios/axios/pull/5207)
|
| 984 |
+
- chore(docs): update CHANGELOG.md [#5137](https://github.com/axios/axios/pull/5137)
|
| 985 |
+
- chore: add sideEffects false to package.json [#5025](https://github.com/axios/axios/pull/5025)
|
| 986 |
+
|
| 987 |
+
### Contributors to this release
|
| 988 |
+
|
| 989 |
+
- [Maddy Miller](https://github.com/me4502)
|
| 990 |
+
- [Amit Saini](https://github.com/amitsainii)
|
| 991 |
+
- [ecyrbe](https://github.com/ecyrbe)
|
| 992 |
+
- [Ikko Ashimine](https://github.com/eltociear)
|
| 993 |
+
- [Geeth Gunnampalli](https://github.com/thetechie7)
|
| 994 |
+
- [Shreem Asati](https://github.com/shreem-123)
|
| 995 |
+
- [Frieder Bluemle](https://github.com/friederbluemle)
|
| 996 |
+
- [윤세영](https://github.com/yunseyeong)
|
| 997 |
+
- [Claudio Busatto](https://github.com/cjcbusatto)
|
| 998 |
+
- [Remco Haszing](https://github.com/remcohaszing)
|
| 999 |
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
| 1000 |
+
- [Csaba Maulis](https://github.com/om4csaba)
|
| 1001 |
+
- [MoPaMo](https://github.com/MoPaMo)
|
| 1002 |
+
- [Daniel Fjeldstad](https://github.com/w3bdesign)
|
| 1003 |
+
- [Adrien Brunet](https://github.com/adrien-may)
|
| 1004 |
+
- [Frazer Smith](https://github.com/Fdawgs)
|
| 1005 |
+
- [HaiTao](https://github.com/836334258)
|
| 1006 |
+
- [AZM](https://github.com/aziyatali)
|
| 1007 |
+
- [relbns](https://github.com/relbns)
|
| 1008 |
+
|
| 1009 |
+
### PRs
|
| 1010 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 1011 |
+
```
|
| 1012 |
+
|
| 1013 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 1014 |
+
```
|
| 1015 |
+
|
| 1016 |
+
## [1.1.3] - 2022-10-15
|
| 1017 |
+
|
| 1018 |
+
### Added
|
| 1019 |
+
|
| 1020 |
+
- Added custom params serializer support [#5113](https://github.com/axios/axios/pull/5113)
|
| 1021 |
+
|
| 1022 |
+
### Fixed
|
| 1023 |
+
|
| 1024 |
+
- Fixed top-level export to keep them in-line with static properties [#5109](https://github.com/axios/axios/pull/5109)
|
| 1025 |
+
- Stopped including null values to query string. [#5108](https://github.com/axios/axios/pull/5108)
|
| 1026 |
+
- Restored proxy config backwards compatibility with 0.x [#5097](https://github.com/axios/axios/pull/5097)
|
| 1027 |
+
- Added back AxiosHeaders in AxiosHeaderValue [#5103](https://github.com/axios/axios/pull/5103)
|
| 1028 |
+
- Pin CDN install instructions to a specific version [#5060](https://github.com/axios/axios/pull/5060)
|
| 1029 |
+
- Handling of array values fixed for AxiosHeaders [#5085](https://github.com/axios/axios/pull/5085)
|
| 1030 |
+
|
| 1031 |
+
### Chores
|
| 1032 |
+
|
| 1033 |
+
- docs: match badge style, add link to them [#5046](https://github.com/axios/axios/pull/5046)
|
| 1034 |
+
- chore: fixing comments typo [#5054](https://github.com/axios/axios/pull/5054)
|
| 1035 |
+
- chore: update issue template [#5061](https://github.com/axios/axios/pull/5061)
|
| 1036 |
+
- chore: added progress capturing section to the docs; [#5084](https://github.com/axios/axios/pull/5084)
|
| 1037 |
+
|
| 1038 |
+
### Contributors to this release
|
| 1039 |
+
|
| 1040 |
+
- [Jason Saayman](https://github.com/jasonsaayman)
|
| 1041 |
+
- [scarf](https://github.com/scarf005)
|
| 1042 |
+
- [Lenz Weber-Tronic](https://github.com/phryneas)
|
| 1043 |
+
- [Arvindh](https://github.com/itsarvindh)
|
| 1044 |
+
- [Félix Legrelle](https://github.com/FelixLgr)
|
| 1045 |
+
- [Patrick Petrovic](https://github.com/ppati000)
|
| 1046 |
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
| 1047 |
+
- [littledian](https://github.com/littledian)
|
| 1048 |
+
- [ChronosMasterOfAllTime](https://github.com/ChronosMasterOfAllTime)
|
| 1049 |
+
|
| 1050 |
+
### PRs
|
| 1051 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 1052 |
+
```
|
| 1053 |
+
|
| 1054 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 1055 |
+
```
|
| 1056 |
+
|
| 1057 |
+
## [1.1.2] - 2022-10-07
|
| 1058 |
+
|
| 1059 |
+
### Fixed
|
| 1060 |
+
|
| 1061 |
+
- Fixed broken exports for UMD builds.
|
| 1062 |
+
|
| 1063 |
+
### Contributors to this release
|
| 1064 |
+
|
| 1065 |
+
- [Jason Saayman](https://github.com/jasonsaayman)
|
| 1066 |
+
|
| 1067 |
+
### PRs
|
| 1068 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 1069 |
+
```
|
| 1070 |
+
|
| 1071 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 1072 |
+
```
|
| 1073 |
+
|
| 1074 |
+
## [1.1.1] - 2022-10-07
|
| 1075 |
+
|
| 1076 |
+
### Fixed
|
| 1077 |
+
|
| 1078 |
+
- Fixed broken exports for common js. This fix breaks a prior fix, I will fix both issues ASAP but the commonJS use is more impactful.
|
| 1079 |
+
|
| 1080 |
+
### Contributors to this release
|
| 1081 |
+
|
| 1082 |
+
- [Jason Saayman](https://github.com/jasonsaayman)
|
| 1083 |
+
|
| 1084 |
+
### PRs
|
| 1085 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 1086 |
+
```
|
| 1087 |
+
|
| 1088 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 1089 |
+
```
|
| 1090 |
+
|
| 1091 |
+
## [1.1.0] - 2022-10-06
|
| 1092 |
+
|
| 1093 |
+
### Fixed
|
| 1094 |
+
|
| 1095 |
+
- Fixed missing exports in type definition index.d.ts [#5003](https://github.com/axios/axios/pull/5003)
|
| 1096 |
+
- Fixed query params composing [#5018](https://github.com/axios/axios/pull/5018)
|
| 1097 |
+
- Fixed GenericAbortSignal interface by making it more generic [#5021](https://github.com/axios/axios/pull/5021)
|
| 1098 |
+
- Fixed adding "clear" to AxiosInterceptorManager [#5010](https://github.com/axios/axios/pull/5010)
|
| 1099 |
+
- Fixed commonjs & umd exports [#5030](https://github.com/axios/axios/pull/5030)
|
| 1100 |
+
- Fixed inability to access response headers when using axios 1.x with Jest [#5036](https://github.com/axios/axios/pull/5036)
|
| 1101 |
+
|
| 1102 |
+
### Contributors to this release
|
| 1103 |
+
|
| 1104 |
+
- [Trim21](https://github.com/trim21)
|
| 1105 |
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
| 1106 |
+
- [shingo.sasaki](https://github.com/s-sasaki-0529)
|
| 1107 |
+
- [Ivan Pepelko](https://github.com/ivanpepelko)
|
| 1108 |
+
- [Richard Kořínek](https://github.com/risa)
|
| 1109 |
+
|
| 1110 |
+
### PRs
|
| 1111 |
+
- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
|
| 1112 |
+
```
|
| 1113 |
+
|
| 1114 |
+
⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
|
| 1115 |
+
```
|
| 1116 |
+
|
| 1117 |
+
## [1.0.0] - 2022-10-04
|
| 1118 |
+
|
| 1119 |
+
### Added
|
| 1120 |
+
|
| 1121 |
+
- Added stack trace to AxiosError [#4624](https://github.com/axios/axios/pull/4624)
|
| 1122 |
+
- Add AxiosError to AxiosStatic [#4654](https://github.com/axios/axios/pull/4654)
|
| 1123 |
+
- Replaced Rollup as our build runner [#4596](https://github.com/axios/axios/pull/4596)
|
| 1124 |
+
- Added generic TS types for the exposed toFormData helper [#4668](https://github.com/axios/axios/pull/4668)
|
| 1125 |
+
- Added listen callback function [#4096](https://github.com/axios/axios/pull/4096)
|
| 1126 |
+
- Added instructions for installing using PNPM [#4207](https://github.com/axios/axios/pull/4207)
|
| 1127 |
+
- Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill [#4229](https://github.com/axios/axios/pull/4229)
|
| 1128 |
+
- Added axios-url-template in ECOSYSTEM.md [#4238](https://github.com/axios/axios/pull/4238)
|
| 1129 |
+
- Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an axios instance [#4248](https://github.com/axios/axios/pull/4248)
|
| 1130 |
+
- Added react hook plugin [#4319](https://github.com/axios/axios/pull/4319)
|
| 1131 |
+
- Adding HTTP status code for transformResponse [#4580](https://github.com/axios/axios/pull/4580)
|
| 1132 |
+
- Added blob to the list of protocols supported by the browser [#4678](https://github.com/axios/axios/pull/4678)
|
| 1133 |
+
- Resolving proxy from env on redirect [#4436](https://github.com/axios/axios/pull/4436)
|
| 1134 |
+
- Added enhanced toFormData implementation with additional options [4704](https://github.com/axios/axios/pull/4704)
|
| 1135 |
+
- Adding Canceler parameters config and request [#4711](https://github.com/axios/axios/pull/4711)
|
| 1136 |
+
- Added automatic payload serialization to application/x-www-form-urlencoded [#4714](https://github.com/axios/axios/pull/4714)
|
| 1137 |
+
- Added the ability for webpack users to overwrite built-ins [#4715](https://github.com/axios/axios/pull/4715)
|
| 1138 |
+
- Added string[] to AxiosRequestHeaders type [#4322](https://github.com/axios/axios/pull/4322)
|
| 1139 |
+
- Added the ability for the url-encoded-form serializer to respect the formSerializer config [#4721](https://github.com/axios/axios/pull/4721)
|
| 1140 |
+
- Added isCancel type assert [#4293](https://github.com/axios/axios/pull/4293)
|
| 1141 |
+
- Added data URL support for node.js [#4725](https://github.com/axios/axios/pull/4725)
|
| 1142 |
+
- Adding types for progress event callbacks [#4675](https://github.com/axios/axios/pull/4675)
|
| 1143 |
+
- URL params serializer [#4734](https://github.com/axios/axios/pull/4734)
|
| 1144 |
+
- Added axios.formToJSON method [#4735](https://github.com/axios/axios/pull/4735)
|
| 1145 |
+
- Bower platform add data protocol [#4804](https://github.com/axios/axios/pull/4804)
|
| 1146 |
+
- Use WHATWG URL API instead of url.parse() [#4852](https://github.com/axios/axios/pull/4852)
|
| 1147 |
+
- Add ENUM containing Http Status Codes to typings [#4903](https://github.com/axios/axios/pull/4903)
|
| 1148 |
+
- Improve typing of timeout in index.d.ts [#4934](https://github.com/axios/axios/pull/4934)
|
| 1149 |
+
|
| 1150 |
+
### Changed
|
| 1151 |
+
|
| 1152 |
+
- Updated AxiosError.config to be optional in the type definition [#4665](https://github.com/axios/axios/pull/4665)
|
| 1153 |
+
- Updated README emphasizing the URLSearchParam built-in interface over other solutions [#4590](https://github.com/axios/axios/pull/4590)
|
| 1154 |
+
- Include request and config when creating a CanceledError instance [#4659](https://github.com/axios/axios/pull/4659)
|
| 1155 |
+
- Changed func-names eslint rule to as-needed [#4492](https://github.com/axios/axios/pull/4492)
|
| 1156 |
+
- Replacing deprecated substr() with slice() as substr() is deprecated [#4468](https://github.com/axios/axios/pull/4468)
|
| 1157 |
+
- Updating HTTP links in README.md to use HTTPS [#4387](https://github.com/axios/axios/pull/4387)
|
| 1158 |
+
- Updated to a better trim() polyfill [#4072](https://github.com/axios/axios/pull/4072)
|
| 1159 |
+
- Updated types to allow specifying partial default headers on instance create [#4185](https://github.com/axios/axios/pull/4185)
|
| 1160 |
+
- Expanded isAxiosError types [#4344](https://github.com/axios/axios/pull/4344)
|
| 1161 |
+
- Updated type definition for axios instance methods [#4224](https://github.com/axios/axios/pull/4224)
|
| 1162 |
+
- Updated eslint config [#4722](https://github.com/axios/axios/pull/4722)
|
| 1163 |
+
- Updated Docs [#4742](https://github.com/axios/axios/pull/4742)
|
| 1164 |
+
- Refactored Axios to use ES2017 [#4787](https://github.com/axios/axios/pull/4787)
|
| 1165 |
+
|
| 1166 |
+
|
| 1167 |
+
### Deprecated
|
| 1168 |
+
- There are multiple deprecations, refactors and fixes provided in this release. Please read through the full release notes to see how this may impact your project and use case.
|
| 1169 |
+
|
| 1170 |
+
### Removed
|
| 1171 |
+
|
| 1172 |
+
- Removed incorrect argument for NetworkError constructor [#4656](https://github.com/axios/axios/pull/4656)
|
| 1173 |
+
- Removed Webpack [#4596](https://github.com/axios/axios/pull/4596)
|
| 1174 |
+
- Removed function that transform arguments to array [#4544](https://github.com/axios/axios/pull/4544)
|
| 1175 |
+
|
| 1176 |
+
### Fixed
|
| 1177 |
+
|
| 1178 |
+
- Fixed grammar in README [#4649](https://github.com/axios/axios/pull/4649)
|
| 1179 |
+
- Fixed code error in README [#4599](https://github.com/axios/axios/pull/4599)
|
| 1180 |
+
- Optimized the code that checks cancellation [#4587](https://github.com/axios/axios/pull/4587)
|
| 1181 |
+
- Fix url pointing to defaults.js in README [#4532](https://github.com/axios/axios/pull/4532)
|
| 1182 |
+
- Use type alias instead of interface for AxiosPromise [#4505](https://github.com/axios/axios/pull/4505)
|
| 1183 |
+
- Fix some word spelling and lint style in code comments [#4500](https://github.com/axios/axios/pull/4500)
|
| 1184 |
+
- Edited readme with 3 updated browser icons of Chrome, FireFox and Safari [#4414](https://github.com/axios/axios/pull/4414)
|
| 1185 |
+
- Bump follow-redirects from 1.14.9 to 1.15.0 [#4673](https://github.com/axios/axios/pull/4673)
|
| 1186 |
+
- Fixing http tests to avoid hanging when assertions fail [#4435](https://github.com/axios/axios/pull/4435)
|
| 1187 |
+
- Fix TS definition for AxiosRequestTransformer [#4201](https://github.com/axios/axios/pull/4201)
|
| 1188 |
+
- Fix grammatical issues in README [#4232](https://github.com/axios/axios/pull/4232)
|
| 1189 |
+
- Fixing instance.defaults.headers type [#4557](https://github.com/axios/axios/pull/4557)
|
| 1190 |
+
- Fixed race condition on immediate requests cancellation [#4261](https://github.com/axios/axios/pull/4261)
|
| 1191 |
+
- Fixing Z_BUF_ERROR when no content [#4701](https://github.com/axios/axios/pull/4701)
|
| 1192 |
+
- Fixing proxy beforeRedirect regression [#4708](https://github.com/axios/axios/pull/4708)
|
| 1193 |
+
- Fixed AxiosError status code type [#4717](https://github.com/axios/axios/pull/4717)
|
| 1194 |
+
- Fixed AxiosError stack capturing [#4718](https://github.com/axios/axios/pull/4718)
|
| 1195 |
+
- Fixing AxiosRequestHeaders typings [#4334](https://github.com/axios/axios/pull/4334)
|
| 1196 |
+
- Fixed max body length defaults [#4731](https://github.com/axios/axios/pull/4731)
|
| 1197 |
+
- Fixed toFormData Blob issue on node>v17 [#4728](https://github.com/axios/axios/pull/4728)
|
| 1198 |
+
- Bump grunt from 1.5.2 to 1.5.3 [#4743](https://github.com/axios/axios/pull/4743)
|
| 1199 |
+
- Fixing content-type header repeated [#4745](https://github.com/axios/axios/pull/4745)
|
| 1200 |
+
- Fixed timeout error message for http [4738](https://github.com/axios/axios/pull/4738)
|
| 1201 |
+
- Request ignores false, 0 and empty string as body values [#4785](https://github.com/axios/axios/pull/4785)
|
| 1202 |
+
- Added back missing minified builds [#4805](https://github.com/axios/axios/pull/4805)
|
| 1203 |
+
- Fixed a type error [#4815](https://github.com/axios/axios/pull/4815)
|
| 1204 |
+
- Fixed a regression bug with unsubscribing from cancel token; [#4819](https://github.com/axios/axios/pull/4819)
|
| 1205 |
+
- Remove repeated compression algorithm [#4820](https://github.com/axios/axios/pull/4820)
|
| 1206 |
+
- The error of calling extend to pass parameters [#4857](https://github.com/axios/axios/pull/4857)
|
| 1207 |
+
- SerializerOptions.indexes allows boolean | null | undefined [#4862](https://github.com/axios/axios/pull/4862)
|
| 1208 |
+
- Require interceptors to return values [#4874](https://github.com/axios/axios/pull/4874)
|
| 1209 |
+
- Removed unused imports [#4949](https://github.com/axios/axios/pull/4949)
|
| 1210 |
+
- Allow null indexes on formSerializer and paramsSerializer [#4960](https://github.com/axios/axios/pull/4960)
|
| 1211 |
+
|
| 1212 |
+
### Chores
|
| 1213 |
+
- Set permissions for GitHub actions [#4765](https://github.com/axios/axios/pull/4765)
|
| 1214 |
+
- Included githubactions in the dependabot config [#4770](https://github.com/axios/axios/pull/4770)
|
| 1215 |
+
- Included dependency review [#4771](https://github.com/axios/axios/pull/4771)
|
| 1216 |
+
- Update security.md [#4784](https://github.com/axios/axios/pull/4784)
|
| 1217 |
+
- Remove unnecessary spaces [#4854](https://github.com/axios/axios/pull/4854)
|
| 1218 |
+
- Simplify the import path of AxiosError [#4875](https://github.com/axios/axios/pull/4875)
|
| 1219 |
+
- Fix Gitpod dead link [#4941](https://github.com/axios/axios/pull/4941)
|
| 1220 |
+
- Enable syntax highlighting for a code block [#4970](https://github.com/axios/axios/pull/4970)
|
| 1221 |
+
- Using Logo Axios in Readme.md [#4993](https://github.com/axios/axios/pull/4993)
|
| 1222 |
+
- Fix markup for note in README [#4825](https://github.com/axios/axios/pull/4825)
|
| 1223 |
+
- Fix typo and formatting, add colons [#4853](https://github.com/axios/axios/pull/4853)
|
| 1224 |
+
- Fix typo in readme [#4942](https://github.com/axios/axios/pull/4942)
|
| 1225 |
+
|
| 1226 |
+
### Security
|
| 1227 |
+
|
| 1228 |
+
- Update SECURITY.md [#4687](https://github.com/axios/axios/pull/4687)
|
| 1229 |
+
|
| 1230 |
+
### Contributors to this release
|
| 1231 |
+
|
| 1232 |
+
- [Bertrand Marron](https://github.com/tusbar)
|
| 1233 |
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
| 1234 |
+
- [Dan Mooney](https://github.com/danmooney)
|
| 1235 |
+
- [Michael Li](https://github.com/xiaoyu-tamu)
|
| 1236 |
+
- [aong](https://github.com/yxwzaxns)
|
| 1237 |
+
- [Des Preston](https://github.com/despreston)
|
| 1238 |
+
- [Ted Robertson](https://github.com/tredondo)
|
| 1239 |
+
- [zhoulixiang](https://github.com/zh-lx)
|
| 1240 |
+
- [Arthur Fiorette](https://github.com/arthurfiorette)
|
| 1241 |
+
- [Kumar Shanu](https://github.com/Kr-Shanu)
|
| 1242 |
+
- [JALAL](https://github.com/JLL32)
|
| 1243 |
+
- [Jingyi Lin](https://github.com/MageeLin)
|
| 1244 |
+
- [Philipp Loose](https://github.com/phloose)
|
| 1245 |
+
- [Alexander Shchukin](https://github.com/sashsvamir)
|
| 1246 |
+
- [Dave Cardwell](https://github.com/davecardwell)
|
| 1247 |
+
- [Cat Scarlet](https://github.com/catscarlet)
|
| 1248 |
+
- [Luca Pizzini](https://github.com/lpizzinidev)
|
| 1249 |
+
- [Kai](https://github.com/Schweinepriester)
|
| 1250 |
+
- [Maxime Bargiel](https://github.com/mbargiel)
|
| 1251 |
+
- [Brian Helba](https://github.com/brianhelba)
|
| 1252 |
+
- [reslear](https://github.com/reslear)
|
| 1253 |
+
- [Jamie Slome](https://github.com/JamieSlome)
|
| 1254 |
+
- [Landro3](https://github.com/Landro3)
|
| 1255 |
+
- [rafw87](https://github.com/rafw87)
|
| 1256 |
+
- [Afzal Sayed](https://github.com/afzalsayed96)
|
| 1257 |
+
- [Koki Oyatsu](https://github.com/kaishuu0123)
|
| 1258 |
+
- [Dave](https://github.com/wangcch)
|
| 1259 |
+
- [暴走老七](https://github.com/baozouai)
|
| 1260 |
+
- [Spencer](https://github.com/spalger)
|
| 1261 |
+
- [Adrian Wieprzkowicz](https://github.com/Argeento)
|
| 1262 |
+
- [Jamie Telin](https://github.com/lejahmie)
|
| 1263 |
+
- [毛呆](https://github.com/aweikalee)
|
| 1264 |
+
- [Kirill Shakirov](https://github.com/turisap)
|
| 1265 |
+
- [Rraji Abdelbari](https://github.com/estarossa0)
|
| 1266 |
+
- [Jelle Schutter](https://github.com/jelleschutter)
|
| 1267 |
+
- [Tom Ceuppens](https://github.com/KyorCode)
|
| 1268 |
+
- [Johann Cooper](https://github.com/JohannCooper)
|
| 1269 |
+
- [Dimitris Halatsis](https://github.com/mitsos1os)
|
| 1270 |
+
- [chenjigeng](https://github.com/chenjigeng)
|
| 1271 |
+
- [João Gabriel Quaresma](https://github.com/joaoGabriel55)
|
| 1272 |
+
- [Victor Augusto](https://github.com/VictorAugDB)
|
| 1273 |
+
- [neilnaveen](https://github.com/neilnaveen)
|
| 1274 |
+
- [Pavlos](https://github.com/psmoros)
|
| 1275 |
+
- [Kiryl Valkovich](https://github.com/visortelle)
|
| 1276 |
+
- [Naveen](https://github.com/naveensrinivasan)
|
| 1277 |
+
- [wenzheng](https://github.com/0x30)
|
| 1278 |
+
- [hcwhan](https://github.com/hcwhan)
|
| 1279 |
+
- [Bassel Rachid](https://github.com/basselworkforce)
|
| 1280 |
+
- [Grégoire Pineau](https://github.com/lyrixx)
|
| 1281 |
+
- [felipedamin](https://github.com/felipedamin)
|
| 1282 |
+
- [Karl Horky](https://github.com/karlhorky)
|
| 1283 |
+
- [Yue JIN](https://github.com/kingyue737)
|
| 1284 |
+
- [Usman Ali Siddiqui](https://github.com/usman250994)
|
| 1285 |
+
- [WD](https://github.com/techbirds)
|
| 1286 |
+
- [Günther Foidl](https://github.com/gfoidl)
|
| 1287 |
+
- [Stephen Jennings](https://github.com/jennings)
|
| 1288 |
+
- [C.T.Lin](https://github.com/chentsulin)
|
| 1289 |
+
- [mia-z](https://github.com/mia-z)
|
| 1290 |
+
- [Parth Banathia](https://github.com/Parth0105)
|
| 1291 |
+
- [parth0105pluang](https://github.com/parth0105pluang)
|
| 1292 |
+
- [Marco Weber](https://github.com/mrcwbr)
|
| 1293 |
+
- [Luca Pizzini](https://github.com/lpizzinidev)
|
| 1294 |
+
- [Willian Agostini](https://github.com/WillianAgostini)
|
| 1295 |
+
- [Huyen Nguyen](https://github.com/huyenltnguyen)
|
node_modules/axios/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2014-present Matt Zabriskie & Collaborators
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 4 |
+
|
| 5 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 6 |
+
|
| 7 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACT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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://dev.intra-mart.jp/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="48px" height="47px" src="https://axios-http.com/assets/sponsors/opencollective/948009b39c308b39f58c5d1245abd22512adc37b.png" alt="intra-mart"/> </a> <p align="center" title="[1ページ目] CookBook の記事 intra-mart Developer Portal ">[1ページ目] CookBook の記事 intra-mart Developer Portal</p> <p align="center"> <a href="https://dev.intra-mart.jp/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>dev.intra-mart.jp</b></a> </p>
|
| 3 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="38px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/stytch_white.png"> <img width="200px" height="38px" src="https://axios-http.com/assets/sponsors/stytch.png" alt="Stytch"/> </picture> </a> <p align="center" title="API-first authentication, authorization, and fraud prevention">API-first authentication, authorization, and fraud prevention</p> <p align="center"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" target="_blank"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http" target="_blank"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http" target="_blank"><b>Node.js</b></a> </p>
|
| 4 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="133px" height="43px" src="https://axios-http.com/assets/sponsors/principal.svg" alt="Principal Financial Group"/> </a> <p align="center" title="We’re bound by one common purpose: to give you the financial tools, resources and information you need to live your best life.">We’re bound by one common purpose: to give you the financial tools, resources and information you ne...</p> <p align="center"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>www.principal.com</b></a> </p>
|
| 5 |
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://twicsy.com/buy-instagram-followers?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="85px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/dfa9670ad5e66eea17315332453c7f4e3a3b5905.png" alt="Buy Instagram Followers Twicsy"/> </a> <p align="center" title="Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site to buy followers from the likes of US Magazine.">Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site...</p> <p align="center"> <a href="https://twicsy.com/buy-instagram-followers?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>twicsy.com</b></a> </p>
|
| 6 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="52px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/descope_white.png"> <img width="200px" height="52px" src="https://axios-http.com/assets/sponsors/descope.png" alt="Descope"/> </picture> </a> <p align="center" title="Hi, we're Descope! We are building something in the authentication space for app developers and can’t wait to place it in your hands.">Hi, we're Descope! We are building something in the authentication space for app developers and...</p> <p align="center"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Docs</b></a> | <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Community</b></a> </p>
|
| 7 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://route4me.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="51px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/route4me_white.png"> <img width="200px" height="51px" src="https://axios-http.com/assets/sponsors/route4me.png" alt="Route4Me"/> </picture> </a> <p align="center" title="Best Route Planning And Route Optimization Software">Best Route Planning And Route Optimization Software</p> <p align="center"> <a href="https://route4me.com/platform/route-optimization-software?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>Explore</b></a> | <a href="https://route4me.com/platform/marketplace/pricing?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>Free Trial</b></a> | <a href="https://route4me.com/contact?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>Contact</b></a> </p>
|
| 8 |
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="62px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/e1625cb54e10ee40180c99d1495a462e9d6664a4.png" alt="Buzzoid - Buy Instagram Followers"/> </a> <p align="center" title="At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rated world's #1 IG service since 2012.">At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rate...</p> <p align="center"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>buzzoid.com</b></a> </p>
|
| 9 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.famety.net/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/56645c65d4bad0ab84265e02430d19d64afde927.png" alt="Famety - Buy Instagram Followers"/> </a> <p align="center" title="At Famety, you can grow your social media following quickly, safely, and easily with just a few clicks. Rated the world’s #1 social media service since 2013.">At Famety, you can grow your social media following quickly, safely, and easily with just a few clic...</p> <p align="center"> <a href="https://www.famety.net/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>www.famety.net</b></a> </p>
|
| 10 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://poprey.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/e699ec99f7df3a203ddbc49d3c7712a907e628ea.png" alt="Poprey - Buy Instagram Likes"/> </a> <p align="center" title="Buy Instagram Likes">Buy Instagram Likes</p> <p align="center"> <a href="https://poprey.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>poprey.com</b></a> </p>
|
| 11 |
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/0845614102b0c6602707ca2983de05a0098faad4.png" alt="Buy Youtube Subscribers"/> </a> <p align="center" title="SS Market offers professional social media services that rapidly increase your YouTube subscriber count, elevating your channel to a powerful position.">SS Market offers professional social media services that rapidly increase your YouTube subscriber co...</p> <p align="center"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>ssmarket.net</b></a> </p>
|
| 12 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute" target="_blank" >💜 Become a sponsor</a>
|
| 13 |
+
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute" target="_blank" >💜 Become a sponsor</a>
|
| 14 |
+
</td></tr></table>
|
| 15 |
+
|
| 16 |
+
<!--<div>marker</div>-->
|
| 17 |
+
<br><br>
|
| 18 |
+
<div align="center">
|
| 19 |
+
<a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
|
| 20 |
+
</div>
|
| 21 |
+
|
| 22 |
+
<p align="center">Promise based HTTP client for the browser and node.js</p>
|
| 23 |
+
|
| 24 |
+
<p align="center">
|
| 25 |
+
<a href="https://axios-http.com/"><b>Website</b></a> •
|
| 26 |
+
<a href="https://axios-http.com/docs/intro"><b>Documentation</b></a>
|
| 27 |
+
</p>
|
| 28 |
+
|
| 29 |
+
<div align="center">
|
| 30 |
+
|
| 31 |
+
[](https://www.npmjs.org/package/axios)
|
| 32 |
+
[](https://cdnjs.com/libraries/axios)
|
| 33 |
+
[](https://github.com/axios/axios/actions/workflows/ci.yml)
|
| 34 |
+
[](https://gitpod.io/#https://github.com/axios/axios)
|
| 35 |
+
[](https://coveralls.io/r/mzabriskie/axios)
|
| 36 |
+
[](https://packagephobia.now.sh/result?p=axios)
|
| 37 |
+
[](https://bundlephobia.com/package/axios@latest)
|
| 38 |
+
[](https://npm-stat.com/charts.html?package=axios)
|
| 39 |
+
[](https://gitter.im/mzabriskie/axios)
|
| 40 |
+
[](https://www.codetriage.com/axios/axios)
|
| 41 |
+
[](https://snyk.io/test/npm/axios)
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
## Table of Contents
|
| 49 |
+
|
| 50 |
+
- [Features](#features)
|
| 51 |
+
- [Browser Support](#browser-support)
|
| 52 |
+
- [Installing](#installing)
|
| 53 |
+
- [Package manager](#package-manager)
|
| 54 |
+
- [CDN](#cdn)
|
| 55 |
+
- [Example](#example)
|
| 56 |
+
- [Axios API](#axios-api)
|
| 57 |
+
- [Request method aliases](#request-method-aliases)
|
| 58 |
+
- [Concurrency 👎](#concurrency-deprecated)
|
| 59 |
+
- [Creating an instance](#creating-an-instance)
|
| 60 |
+
- [Instance methods](#instance-methods)
|
| 61 |
+
- [Request Config](#request-config)
|
| 62 |
+
- [Response Schema](#response-schema)
|
| 63 |
+
- [Config Defaults](#config-defaults)
|
| 64 |
+
- [Global axios defaults](#global-axios-defaults)
|
| 65 |
+
- [Custom instance defaults](#custom-instance-defaults)
|
| 66 |
+
- [Config order of precedence](#config-order-of-precedence)
|
| 67 |
+
- [Interceptors](#interceptors)
|
| 68 |
+
- [Multiple Interceptors](#multiple-interceptors)
|
| 69 |
+
- [Handling Errors](#handling-errors)
|
| 70 |
+
- [Cancellation](#cancellation)
|
| 71 |
+
- [AbortController](#abortcontroller)
|
| 72 |
+
- [CancelToken 👎](#canceltoken-deprecated)
|
| 73 |
+
- [Using application/x-www-form-urlencoded format](#using-applicationx-www-form-urlencoded-format)
|
| 74 |
+
- [URLSearchParams](#urlsearchparams)
|
| 75 |
+
- [Query string](#query-string-older-browsers)
|
| 76 |
+
- [🆕 Automatic serialization](#-automatic-serialization-to-urlsearchparams)
|
| 77 |
+
- [Using multipart/form-data format](#using-multipartform-data-format)
|
| 78 |
+
- [FormData](#formdata)
|
| 79 |
+
- [🆕 Automatic serialization](#-automatic-serialization-to-formdata)
|
| 80 |
+
- [Files Posting](#files-posting)
|
| 81 |
+
- [HTML Form Posting](#-html-form-posting-browser)
|
| 82 |
+
- [🆕 Progress capturing](#-progress-capturing)
|
| 83 |
+
- [🆕 Rate limiting](#-progress-capturing)
|
| 84 |
+
- [🆕 AxiosHeaders](#-axiosheaders)
|
| 85 |
+
- [🔥 Fetch adapter](#-fetch-adapter)
|
| 86 |
+
- [🔥 Custom fetch](#-custom-fetch)
|
| 87 |
+
- [🔥 Using with Tauri](#-using-with-tauri)
|
| 88 |
+
- [🔥 Using with SvelteKit](#-using-with-sveltekit-)
|
| 89 |
+
- [Semver](#semver)
|
| 90 |
+
- [Promises](#promises)
|
| 91 |
+
- [TypeScript](#typescript)
|
| 92 |
+
- [Resources](#resources)
|
| 93 |
+
- [Credits](#credits)
|
| 94 |
+
- [License](#license)
|
| 95 |
+
|
| 96 |
+
## Features
|
| 97 |
+
|
| 98 |
+
- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
|
| 99 |
+
- Make [http](https://nodejs.org/api/http.html) requests from node.js
|
| 100 |
+
- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API
|
| 101 |
+
- Intercept request and response
|
| 102 |
+
- Transform request and response data
|
| 103 |
+
- Cancel requests
|
| 104 |
+
- Automatic transforms for [JSON](https://www.json.org/json-en.html) data
|
| 105 |
+
- 🆕 Automatic data object serialization to `multipart/form-data` and `x-www-form-urlencoded` body encodings
|
| 106 |
+
- Client side support for protecting against [XSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery)
|
| 107 |
+
|
| 108 |
+
## Browser Support
|
| 109 |
+
|
| 110 |
+
 |  |  |  |  |
|
| 111 |
+
--- | --- | --- | --- | --- |
|
| 112 |
+
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
|
| 113 |
+
|
| 114 |
+
[](https://saucelabs.com/u/axios)
|
| 115 |
+
|
| 116 |
+
## Installing
|
| 117 |
+
|
| 118 |
+
### Package manager
|
| 119 |
+
|
| 120 |
+
Using npm:
|
| 121 |
+
|
| 122 |
+
```bash
|
| 123 |
+
$ npm install axios
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
Using bower:
|
| 127 |
+
|
| 128 |
+
```bash
|
| 129 |
+
$ bower install axios
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
Using yarn:
|
| 133 |
+
|
| 134 |
+
```bash
|
| 135 |
+
$ yarn add axios
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
Using pnpm:
|
| 139 |
+
|
| 140 |
+
```bash
|
| 141 |
+
$ pnpm add axios
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
Using bun:
|
| 145 |
+
|
| 146 |
+
```bash
|
| 147 |
+
$ bun add axios
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
Once the package is installed, you can import the library using `import` or `require` approach:
|
| 151 |
+
|
| 152 |
+
```js
|
| 153 |
+
import axios, {isCancel, AxiosError} from 'axios';
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
You can also use the default export, since the named export is just a re-export from the Axios factory:
|
| 157 |
+
|
| 158 |
+
```js
|
| 159 |
+
import axios from 'axios';
|
| 160 |
+
|
| 161 |
+
console.log(axios.isCancel('something'));
|
| 162 |
+
````
|
| 163 |
+
|
| 164 |
+
If you use `require` for importing, **only default export is available**:
|
| 165 |
+
|
| 166 |
+
```js
|
| 167 |
+
const axios = require('axios');
|
| 168 |
+
|
| 169 |
+
console.log(axios.isCancel('something'));
|
| 170 |
+
```
|
| 171 |
+
|
| 172 |
+
For some bundlers and some ES6 linters you may need to do the following:
|
| 173 |
+
|
| 174 |
+
```js
|
| 175 |
+
import { default as axios } from 'axios';
|
| 176 |
+
```
|
| 177 |
+
|
| 178 |
+
For cases where something went wrong when trying to import a module into a custom or legacy environment,
|
| 179 |
+
you can try importing the module package directly:
|
| 180 |
+
|
| 181 |
+
```js
|
| 182 |
+
const axios = require('axios/dist/browser/axios.cjs'); // browser commonJS bundle (ES2017)
|
| 183 |
+
// const axios = require('axios/dist/node/axios.cjs'); // node commonJS bundle (ES2017)
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
### CDN
|
| 187 |
+
|
| 188 |
+
Using jsDelivr CDN (ES5 UMD browser module):
|
| 189 |
+
|
| 190 |
+
```html
|
| 191 |
+
<script src="https://cdn.jsdelivr.net/npm/axios@1.6.7/dist/axios.min.js"></script>
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
Using unpkg CDN:
|
| 195 |
+
|
| 196 |
+
```html
|
| 197 |
+
<script src="https://unpkg.com/axios@1.6.7/dist/axios.min.js"></script>
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
+
## Example
|
| 201 |
+
|
| 202 |
+
> **Note**: CommonJS usage
|
| 203 |
+
> In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach:
|
| 204 |
+
|
| 205 |
+
```js
|
| 206 |
+
import axios from 'axios';
|
| 207 |
+
//const axios = require('axios'); // legacy way
|
| 208 |
+
|
| 209 |
+
// Make a request for a user with a given ID
|
| 210 |
+
axios.get('/user?ID=12345')
|
| 211 |
+
.then(function (response) {
|
| 212 |
+
// handle success
|
| 213 |
+
console.log(response);
|
| 214 |
+
})
|
| 215 |
+
.catch(function (error) {
|
| 216 |
+
// handle error
|
| 217 |
+
console.log(error);
|
| 218 |
+
})
|
| 219 |
+
.finally(function () {
|
| 220 |
+
// always executed
|
| 221 |
+
});
|
| 222 |
+
|
| 223 |
+
// Optionally the request above could also be done as
|
| 224 |
+
axios.get('/user', {
|
| 225 |
+
params: {
|
| 226 |
+
ID: 12345
|
| 227 |
+
}
|
| 228 |
+
})
|
| 229 |
+
.then(function (response) {
|
| 230 |
+
console.log(response);
|
| 231 |
+
})
|
| 232 |
+
.catch(function (error) {
|
| 233 |
+
console.log(error);
|
| 234 |
+
})
|
| 235 |
+
.finally(function () {
|
| 236 |
+
// always executed
|
| 237 |
+
});
|
| 238 |
+
|
| 239 |
+
// Want to use async/await? Add the `async` keyword to your outer function/method.
|
| 240 |
+
async function getUser() {
|
| 241 |
+
try {
|
| 242 |
+
const response = await axios.get('/user?ID=12345');
|
| 243 |
+
console.log(response);
|
| 244 |
+
} catch (error) {
|
| 245 |
+
console.error(error);
|
| 246 |
+
}
|
| 247 |
+
}
|
| 248 |
+
```
|
| 249 |
+
|
| 250 |
+
> **Note**: `async/await` is part of ECMAScript 2017 and is not supported in Internet
|
| 251 |
+
> Explorer and older browsers, so use with caution.
|
| 252 |
+
|
| 253 |
+
Performing a `POST` request
|
| 254 |
+
|
| 255 |
+
```js
|
| 256 |
+
axios.post('/user', {
|
| 257 |
+
firstName: 'Fred',
|
| 258 |
+
lastName: 'Flintstone'
|
| 259 |
+
})
|
| 260 |
+
.then(function (response) {
|
| 261 |
+
console.log(response);
|
| 262 |
+
})
|
| 263 |
+
.catch(function (error) {
|
| 264 |
+
console.log(error);
|
| 265 |
+
});
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
Performing multiple concurrent requests
|
| 269 |
+
|
| 270 |
+
```js
|
| 271 |
+
function getUserAccount() {
|
| 272 |
+
return axios.get('/user/12345');
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
function getUserPermissions() {
|
| 276 |
+
return axios.get('/user/12345/permissions');
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
Promise.all([getUserAccount(), getUserPermissions()])
|
| 280 |
+
.then(function (results) {
|
| 281 |
+
const acct = results[0];
|
| 282 |
+
const perm = results[1];
|
| 283 |
+
});
|
| 284 |
+
```
|
| 285 |
+
|
| 286 |
+
## axios API
|
| 287 |
+
|
| 288 |
+
Requests can be made by passing the relevant config to `axios`.
|
| 289 |
+
|
| 290 |
+
##### axios(config)
|
| 291 |
+
|
| 292 |
+
```js
|
| 293 |
+
// Send a POST request
|
| 294 |
+
axios({
|
| 295 |
+
method: 'post',
|
| 296 |
+
url: '/user/12345',
|
| 297 |
+
data: {
|
| 298 |
+
firstName: 'Fred',
|
| 299 |
+
lastName: 'Flintstone'
|
| 300 |
+
}
|
| 301 |
+
});
|
| 302 |
+
```
|
| 303 |
+
|
| 304 |
+
```js
|
| 305 |
+
// GET request for remote image in node.js
|
| 306 |
+
axios({
|
| 307 |
+
method: 'get',
|
| 308 |
+
url: 'https://bit.ly/2mTM3nY',
|
| 309 |
+
responseType: 'stream'
|
| 310 |
+
})
|
| 311 |
+
.then(function (response) {
|
| 312 |
+
response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
|
| 313 |
+
});
|
| 314 |
+
```
|
| 315 |
+
|
| 316 |
+
##### axios(url[, config])
|
| 317 |
+
|
| 318 |
+
```js
|
| 319 |
+
// Send a GET request (default method)
|
| 320 |
+
axios('/user/12345');
|
| 321 |
+
```
|
| 322 |
+
|
| 323 |
+
### Request method aliases
|
| 324 |
+
|
| 325 |
+
For convenience, aliases have been provided for all common request methods.
|
| 326 |
+
|
| 327 |
+
##### axios.request(config)
|
| 328 |
+
##### axios.get(url[, config])
|
| 329 |
+
##### axios.delete(url[, config])
|
| 330 |
+
##### axios.head(url[, config])
|
| 331 |
+
##### axios.options(url[, config])
|
| 332 |
+
##### axios.post(url[, data[, config]])
|
| 333 |
+
##### axios.put(url[, data[, config]])
|
| 334 |
+
##### axios.patch(url[, data[, config]])
|
| 335 |
+
|
| 336 |
+
###### NOTE
|
| 337 |
+
When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config.
|
| 338 |
+
|
| 339 |
+
### Concurrency (Deprecated)
|
| 340 |
+
Please use `Promise.all` to replace the below functions.
|
| 341 |
+
|
| 342 |
+
Helper functions for dealing with concurrent requests.
|
| 343 |
+
|
| 344 |
+
axios.all(iterable)
|
| 345 |
+
axios.spread(callback)
|
| 346 |
+
|
| 347 |
+
### Creating an instance
|
| 348 |
+
|
| 349 |
+
You can create a new instance of axios with a custom config.
|
| 350 |
+
|
| 351 |
+
##### axios.create([config])
|
| 352 |
+
|
| 353 |
+
```js
|
| 354 |
+
const instance = axios.create({
|
| 355 |
+
baseURL: 'https://some-domain.com/api/',
|
| 356 |
+
timeout: 1000,
|
| 357 |
+
headers: {'X-Custom-Header': 'foobar'}
|
| 358 |
+
});
|
| 359 |
+
```
|
| 360 |
+
|
| 361 |
+
### Instance methods
|
| 362 |
+
|
| 363 |
+
The available instance methods are listed below. The specified config will be merged with the instance config.
|
| 364 |
+
|
| 365 |
+
##### axios#request(config)
|
| 366 |
+
##### axios#get(url[, config])
|
| 367 |
+
##### axios#delete(url[, config])
|
| 368 |
+
##### axios#head(url[, config])
|
| 369 |
+
##### axios#options(url[, config])
|
| 370 |
+
##### axios#post(url[, data[, config]])
|
| 371 |
+
##### axios#put(url[, data[, config]])
|
| 372 |
+
##### axios#patch(url[, data[, config]])
|
| 373 |
+
##### axios#getUri([config])
|
| 374 |
+
|
| 375 |
+
## Request Config
|
| 376 |
+
|
| 377 |
+
These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified.
|
| 378 |
+
|
| 379 |
+
```js
|
| 380 |
+
{
|
| 381 |
+
// `url` is the server URL that will be used for the request
|
| 382 |
+
url: '/user',
|
| 383 |
+
|
| 384 |
+
// `method` is the request method to be used when making the request
|
| 385 |
+
method: 'get', // default
|
| 386 |
+
|
| 387 |
+
// `baseURL` will be prepended to `url` unless `url` is absolute and option `allowAbsoluteUrls` is set to true.
|
| 388 |
+
// It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
|
| 389 |
+
// to methods of that instance.
|
| 390 |
+
baseURL: 'https://some-domain.com/api/',
|
| 391 |
+
|
| 392 |
+
// `allowAbsoluteUrls` determines whether or not absolute URLs will override a configured `baseUrl`.
|
| 393 |
+
// When set to true (default), absolute values for `url` will override `baseUrl`.
|
| 394 |
+
// When set to false, absolute values for `url` will always be prepended by `baseUrl`.
|
| 395 |
+
allowAbsoluteUrls: true,
|
| 396 |
+
|
| 397 |
+
// `transformRequest` allows changes to the request data before it is sent to the server
|
| 398 |
+
// This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE'
|
| 399 |
+
// The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
|
| 400 |
+
// FormData or Stream
|
| 401 |
+
// You may modify the headers object.
|
| 402 |
+
transformRequest: [function (data, headers) {
|
| 403 |
+
// Do whatever you want to transform the data
|
| 404 |
+
|
| 405 |
+
return data;
|
| 406 |
+
}],
|
| 407 |
+
|
| 408 |
+
// `transformResponse` allows changes to the response data to be made before
|
| 409 |
+
// it is passed to then/catch
|
| 410 |
+
transformResponse: [function (data) {
|
| 411 |
+
// Do whatever you want to transform the data
|
| 412 |
+
|
| 413 |
+
return data;
|
| 414 |
+
}],
|
| 415 |
+
|
| 416 |
+
// `headers` are custom headers to be sent
|
| 417 |
+
headers: {'X-Requested-With': 'XMLHttpRequest'},
|
| 418 |
+
|
| 419 |
+
// `params` are the URL parameters to be sent with the request
|
| 420 |
+
// Must be a plain object or a URLSearchParams object
|
| 421 |
+
params: {
|
| 422 |
+
ID: 12345
|
| 423 |
+
},
|
| 424 |
+
|
| 425 |
+
// `paramsSerializer` is an optional config that allows you to customize serializing `params`.
|
| 426 |
+
paramsSerializer: {
|
| 427 |
+
|
| 428 |
+
// Custom encoder function which sends key/value pairs in an iterative fashion.
|
| 429 |
+
encode?: (param: string): string => { /* Do custom operations here and return transformed string */ },
|
| 430 |
+
|
| 431 |
+
// Custom serializer function for the entire parameter. Allows user to mimic pre 1.x behaviour.
|
| 432 |
+
serialize?: (params: Record<string, any>, options?: ParamsSerializerOptions ),
|
| 433 |
+
|
| 434 |
+
// Configuration for formatting array indexes in the params.
|
| 435 |
+
indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes).
|
| 436 |
+
},
|
| 437 |
+
|
| 438 |
+
// `data` is the data to be sent as the request body
|
| 439 |
+
// Only applicable for request methods 'PUT', 'POST', 'DELETE , and 'PATCH'
|
| 440 |
+
// When no `transformRequest` is set, must be of one of the following types:
|
| 441 |
+
// - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
|
| 442 |
+
// - Browser only: FormData, File, Blob
|
| 443 |
+
// - Node only: Stream, Buffer, FormData (form-data package)
|
| 444 |
+
data: {
|
| 445 |
+
firstName: 'Fred'
|
| 446 |
+
},
|
| 447 |
+
|
| 448 |
+
// syntax alternative to send data into the body
|
| 449 |
+
// method post
|
| 450 |
+
// only the value is sent, not the key
|
| 451 |
+
data: 'Country=Brasil&City=Belo Horizonte',
|
| 452 |
+
|
| 453 |
+
// `timeout` specifies the number of milliseconds before the request times out.
|
| 454 |
+
// If the request takes longer than `timeout`, the request will be aborted.
|
| 455 |
+
timeout: 1000, // default is `0` (no timeout)
|
| 456 |
+
|
| 457 |
+
// `withCredentials` indicates whether or not cross-site Access-Control requests
|
| 458 |
+
// should be made using credentials
|
| 459 |
+
withCredentials: false, // default
|
| 460 |
+
|
| 461 |
+
// `adapter` allows custom handling of requests which makes testing easier.
|
| 462 |
+
// Return a promise and supply a valid response (see lib/adapters/README.md)
|
| 463 |
+
adapter: function (config) {
|
| 464 |
+
/* ... */
|
| 465 |
+
},
|
| 466 |
+
// Also, you can set the name of the built-in adapter, or provide an array with their names
|
| 467 |
+
// to choose the first available in the environment
|
| 468 |
+
adapter: 'xhr', // 'fetch' | 'http' | ['xhr', 'http', 'fetch']
|
| 469 |
+
|
| 470 |
+
// `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
|
| 471 |
+
// This will set an `Authorization` header, overwriting any existing
|
| 472 |
+
// `Authorization` custom headers you have set using `headers`.
|
| 473 |
+
// Please note that only HTTP Basic auth is configurable through this parameter.
|
| 474 |
+
// For Bearer tokens and such, use `Authorization` custom headers instead.
|
| 475 |
+
auth: {
|
| 476 |
+
username: 'janedoe',
|
| 477 |
+
password: 's00pers3cret'
|
| 478 |
+
},
|
| 479 |
+
|
| 480 |
+
// `responseType` indicates the type of data that the server will respond with
|
| 481 |
+
// options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
|
| 482 |
+
// browser only: 'blob'
|
| 483 |
+
responseType: 'json', // default
|
| 484 |
+
|
| 485 |
+
// `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
|
| 486 |
+
// Note: Ignored for `responseType` of 'stream' or client-side requests
|
| 487 |
+
// options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url',
|
| 488 |
+
// 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8',
|
| 489 |
+
// 'utf8', 'UTF8', 'utf16le', 'UTF16LE'
|
| 490 |
+
responseEncoding: 'utf8', // default
|
| 491 |
+
|
| 492 |
+
// `xsrfCookieName` is the name of the cookie to use as a value for xsrf token
|
| 493 |
+
xsrfCookieName: 'XSRF-TOKEN', // default
|
| 494 |
+
|
| 495 |
+
// `xsrfHeaderName` is the name of the http header that carries the xsrf token value
|
| 496 |
+
xsrfHeaderName: 'X-XSRF-TOKEN', // default
|
| 497 |
+
|
| 498 |
+
// `undefined` (default) - set XSRF header only for the same origin requests
|
| 499 |
+
withXSRFToken: boolean | undefined | ((config: InternalAxiosRequestConfig) => boolean | undefined),
|
| 500 |
+
|
| 501 |
+
// `onUploadProgress` allows handling of progress events for uploads
|
| 502 |
+
// browser & node.js
|
| 503 |
+
onUploadProgress: function ({loaded, total, progress, bytes, estimated, rate, upload = true}) {
|
| 504 |
+
// Do whatever you want with the Axios progress event
|
| 505 |
+
},
|
| 506 |
+
|
| 507 |
+
// `onDownloadProgress` allows handling of progress events for downloads
|
| 508 |
+
// browser & node.js
|
| 509 |
+
onDownloadProgress: function ({loaded, total, progress, bytes, estimated, rate, download = true}) {
|
| 510 |
+
// Do whatever you want with the Axios progress event
|
| 511 |
+
},
|
| 512 |
+
|
| 513 |
+
// `maxContentLength` defines the max size of the http response content in bytes allowed in node.js
|
| 514 |
+
maxContentLength: 2000,
|
| 515 |
+
|
| 516 |
+
// `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
|
| 517 |
+
maxBodyLength: 2000,
|
| 518 |
+
|
| 519 |
+
// `validateStatus` defines whether to resolve or reject the promise for a given
|
| 520 |
+
// HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
|
| 521 |
+
// or `undefined`), the promise will be resolved; otherwise, the promise will be
|
| 522 |
+
// rejected.
|
| 523 |
+
validateStatus: function (status) {
|
| 524 |
+
return status >= 200 && status < 300; // default
|
| 525 |
+
},
|
| 526 |
+
|
| 527 |
+
// `maxRedirects` defines the maximum number of redirects to follow in node.js.
|
| 528 |
+
// If set to 0, no redirects will be followed.
|
| 529 |
+
maxRedirects: 21, // default
|
| 530 |
+
|
| 531 |
+
// `beforeRedirect` defines a function that will be called before redirect.
|
| 532 |
+
// Use this to adjust the request options upon redirecting,
|
| 533 |
+
// to inspect the latest response headers,
|
| 534 |
+
// or to cancel the request by throwing an error
|
| 535 |
+
// If maxRedirects is set to 0, `beforeRedirect` is not used.
|
| 536 |
+
beforeRedirect: (options, { headers }) => {
|
| 537 |
+
if (options.hostname === "example.com") {
|
| 538 |
+
options.auth = "user:password";
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
|
| 542 |
+
// `socketPath` defines a UNIX Socket to be used in node.js.
|
| 543 |
+
// e.g. '/var/run/docker.sock' to send requests to the docker daemon.
|
| 544 |
+
// Only either `socketPath` or `proxy` can be specified.
|
| 545 |
+
// If both are specified, `socketPath` is used.
|
| 546 |
+
socketPath: null, // default
|
| 547 |
+
|
| 548 |
+
// `transport` determines the transport method that will be used to make the request.
|
| 549 |
+
// If defined, it will be used. Otherwise, if `maxRedirects` is 0,
|
| 550 |
+
// the default `http` or `https` library will be used, depending on the protocol specified in `protocol`.
|
| 551 |
+
// Otherwise, the `httpFollow` or `httpsFollow` library will be used, again depending on the protocol,
|
| 552 |
+
// which can handle redirects.
|
| 553 |
+
transport: undefined, // default
|
| 554 |
+
|
| 555 |
+
// `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
|
| 556 |
+
// and https requests, respectively, in node.js. This allows options to be added like
|
| 557 |
+
// `keepAlive` that are not enabled by default before Node.js v19.0.0. After Node.js
|
| 558 |
+
// v19.0.0, you no longer need to customize the agent to enable `keepAlive` because
|
| 559 |
+
// `http.globalAgent` has `keepAlive` enabled by default.
|
| 560 |
+
httpAgent: new http.Agent({ keepAlive: true }),
|
| 561 |
+
httpsAgent: new https.Agent({ keepAlive: true }),
|
| 562 |
+
|
| 563 |
+
// `proxy` defines the hostname, port, and protocol of the proxy server.
|
| 564 |
+
// You can also define your proxy using the conventional `http_proxy` and
|
| 565 |
+
// `https_proxy` environment variables. If you are using environment variables
|
| 566 |
+
// for your proxy configuration, you can also define a `no_proxy` environment
|
| 567 |
+
// variable as a comma-separated list of domains that should not be proxied.
|
| 568 |
+
// Use `false` to disable proxies, ignoring environment variables.
|
| 569 |
+
// `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
|
| 570 |
+
// supplies credentials.
|
| 571 |
+
// This will set an `Proxy-Authorization` header, overwriting any existing
|
| 572 |
+
// `Proxy-Authorization` custom headers you have set using `headers`.
|
| 573 |
+
// If the proxy server uses HTTPS, then you must set the protocol to `https`.
|
| 574 |
+
proxy: {
|
| 575 |
+
protocol: 'https',
|
| 576 |
+
host: '127.0.0.1',
|
| 577 |
+
// hostname: '127.0.0.1' // Takes precedence over 'host' if both are defined
|
| 578 |
+
port: 9000,
|
| 579 |
+
auth: {
|
| 580 |
+
username: 'mikeymike',
|
| 581 |
+
password: 'rapunz3l'
|
| 582 |
+
}
|
| 583 |
+
},
|
| 584 |
+
|
| 585 |
+
// `cancelToken` specifies a cancel token that can be used to cancel the request
|
| 586 |
+
// (see Cancellation section below for details)
|
| 587 |
+
cancelToken: new CancelToken(function (cancel) {
|
| 588 |
+
}),
|
| 589 |
+
|
| 590 |
+
// an alternative way to cancel Axios requests using AbortController
|
| 591 |
+
signal: new AbortController().signal,
|
| 592 |
+
|
| 593 |
+
// `decompress` indicates whether or not the response body should be decompressed
|
| 594 |
+
// automatically. If set to `true` will also remove the 'content-encoding' header
|
| 595 |
+
// from the responses objects of all decompressed responses
|
| 596 |
+
// - Node only (XHR cannot turn off decompression)
|
| 597 |
+
decompress: true, // default
|
| 598 |
+
|
| 599 |
+
// `insecureHTTPParser` boolean.
|
| 600 |
+
// Indicates where to use an insecure HTTP parser that accepts invalid HTTP headers.
|
| 601 |
+
// This may allow interoperability with non-conformant HTTP implementations.
|
| 602 |
+
// Using the insecure parser should be avoided.
|
| 603 |
+
// see options https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback
|
| 604 |
+
// see also https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none
|
| 605 |
+
insecureHTTPParser: undefined, // default
|
| 606 |
+
|
| 607 |
+
// transitional options for backward compatibility that may be removed in the newer versions
|
| 608 |
+
transitional: {
|
| 609 |
+
// silent JSON parsing mode
|
| 610 |
+
// `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
|
| 611 |
+
// `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
|
| 612 |
+
silentJSONParsing: true, // default value for the current Axios version
|
| 613 |
+
|
| 614 |
+
// try to parse the response string as JSON even if `responseType` is not 'json'
|
| 615 |
+
forcedJSONParsing: true,
|
| 616 |
+
|
| 617 |
+
// throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
|
| 618 |
+
clarifyTimeoutError: false,
|
| 619 |
+
},
|
| 620 |
+
|
| 621 |
+
env: {
|
| 622 |
+
// The FormData class to be used to automatically serialize the payload into a FormData object
|
| 623 |
+
FormData: window?.FormData || global?.FormData
|
| 624 |
+
},
|
| 625 |
+
|
| 626 |
+
formSerializer: {
|
| 627 |
+
visitor: (value, key, path, helpers) => {}; // custom visitor function to serialize form values
|
| 628 |
+
dots: boolean; // use dots instead of brackets format
|
| 629 |
+
metaTokens: boolean; // keep special endings like {} in parameter key
|
| 630 |
+
indexes: boolean; // array indexes format null - no brackets, false - empty brackets, true - brackets with indexes
|
| 631 |
+
},
|
| 632 |
+
|
| 633 |
+
// http adapter only (node.js)
|
| 634 |
+
maxRate: [
|
| 635 |
+
100 * 1024, // 100KB/s upload limit,
|
| 636 |
+
100 * 1024 // 100KB/s download limit
|
| 637 |
+
]
|
| 638 |
+
}
|
| 639 |
+
```
|
| 640 |
+
|
| 641 |
+
## Response Schema
|
| 642 |
+
|
| 643 |
+
The response for a request contains the following information.
|
| 644 |
+
|
| 645 |
+
```js
|
| 646 |
+
{
|
| 647 |
+
// `data` is the response that was provided by the server
|
| 648 |
+
data: {},
|
| 649 |
+
|
| 650 |
+
// `status` is the HTTP status code from the server response
|
| 651 |
+
status: 200,
|
| 652 |
+
|
| 653 |
+
// `statusText` is the HTTP status message from the server response
|
| 654 |
+
statusText: 'OK',
|
| 655 |
+
|
| 656 |
+
// `headers` the HTTP headers that the server responded with
|
| 657 |
+
// All header names are lowercase and can be accessed using the bracket notation.
|
| 658 |
+
// Example: `response.headers['content-type']`
|
| 659 |
+
headers: {},
|
| 660 |
+
|
| 661 |
+
// `config` is the config that was provided to `axios` for the request
|
| 662 |
+
config: {},
|
| 663 |
+
|
| 664 |
+
// `request` is the request that generated this response
|
| 665 |
+
// It is the last ClientRequest instance in node.js (in redirects)
|
| 666 |
+
// and an XMLHttpRequest instance in the browser
|
| 667 |
+
request: {}
|
| 668 |
+
}
|
| 669 |
+
```
|
| 670 |
+
|
| 671 |
+
When using `then`, you will receive the response as follows:
|
| 672 |
+
|
| 673 |
+
```js
|
| 674 |
+
axios.get('/user/12345')
|
| 675 |
+
.then(function (response) {
|
| 676 |
+
console.log(response.data);
|
| 677 |
+
console.log(response.status);
|
| 678 |
+
console.log(response.statusText);
|
| 679 |
+
console.log(response.headers);
|
| 680 |
+
console.log(response.config);
|
| 681 |
+
});
|
| 682 |
+
```
|
| 683 |
+
|
| 684 |
+
When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section.
|
| 685 |
+
|
| 686 |
+
## Config Defaults
|
| 687 |
+
|
| 688 |
+
You can specify config defaults that will be applied to every request.
|
| 689 |
+
|
| 690 |
+
### Global axios defaults
|
| 691 |
+
|
| 692 |
+
```js
|
| 693 |
+
axios.defaults.baseURL = 'https://api.example.com';
|
| 694 |
+
|
| 695 |
+
// Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them.
|
| 696 |
+
// See below for an example using Custom instance defaults instead.
|
| 697 |
+
axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
|
| 698 |
+
|
| 699 |
+
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
| 700 |
+
```
|
| 701 |
+
|
| 702 |
+
### Custom instance defaults
|
| 703 |
+
|
| 704 |
+
```js
|
| 705 |
+
// Set config defaults when creating the instance
|
| 706 |
+
const instance = axios.create({
|
| 707 |
+
baseURL: 'https://api.example.com'
|
| 708 |
+
});
|
| 709 |
+
|
| 710 |
+
// Alter defaults after instance has been created
|
| 711 |
+
instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
|
| 712 |
+
```
|
| 713 |
+
|
| 714 |
+
### Config order of precedence
|
| 715 |
+
|
| 716 |
+
Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults/index.js](https://github.com/axios/axios/blob/main/lib/defaults/index.js#L49), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
|
| 717 |
+
|
| 718 |
+
```js
|
| 719 |
+
// Create an instance using the config defaults provided by the library
|
| 720 |
+
// At this point the timeout config value is `0` as is the default for the library
|
| 721 |
+
const instance = axios.create();
|
| 722 |
+
|
| 723 |
+
// Override timeout default for the library
|
| 724 |
+
// Now all requests using this instance will wait 2.5 seconds before timing out
|
| 725 |
+
instance.defaults.timeout = 2500;
|
| 726 |
+
|
| 727 |
+
// Override timeout for this request as it's known to take a long time
|
| 728 |
+
instance.get('/longRequest', {
|
| 729 |
+
timeout: 5000
|
| 730 |
+
});
|
| 731 |
+
```
|
| 732 |
+
|
| 733 |
+
## Interceptors
|
| 734 |
+
|
| 735 |
+
You can intercept requests or responses before they are handled by `then` or `catch`.
|
| 736 |
+
|
| 737 |
+
```js
|
| 738 |
+
|
| 739 |
+
const instance = axios.create();
|
| 740 |
+
|
| 741 |
+
// Add a request interceptor
|
| 742 |
+
instance.interceptors.request.use(function (config) {
|
| 743 |
+
// Do something before request is sent
|
| 744 |
+
return config;
|
| 745 |
+
}, function (error) {
|
| 746 |
+
// Do something with request error
|
| 747 |
+
return Promise.reject(error);
|
| 748 |
+
});
|
| 749 |
+
|
| 750 |
+
// Add a response interceptor
|
| 751 |
+
instance.interceptors.response.use(function (response) {
|
| 752 |
+
// Any status code that lie within the range of 2xx cause this function to trigger
|
| 753 |
+
// Do something with response data
|
| 754 |
+
return response;
|
| 755 |
+
}, function (error) {
|
| 756 |
+
// Any status codes that falls outside the range of 2xx cause this function to trigger
|
| 757 |
+
// Do something with response error
|
| 758 |
+
return Promise.reject(error);
|
| 759 |
+
});
|
| 760 |
+
```
|
| 761 |
+
|
| 762 |
+
If you need to remove an interceptor later you can.
|
| 763 |
+
|
| 764 |
+
```js
|
| 765 |
+
const instance = axios.create();
|
| 766 |
+
const myInterceptor = instance.interceptors.request.use(function () {/*...*/});
|
| 767 |
+
axios.interceptors.request.eject(myInterceptor);
|
| 768 |
+
```
|
| 769 |
+
|
| 770 |
+
You can also clear all interceptors for requests or responses.
|
| 771 |
+
```js
|
| 772 |
+
const instance = axios.create();
|
| 773 |
+
instance.interceptors.request.use(function () {/*...*/});
|
| 774 |
+
instance.interceptors.request.clear(); // Removes interceptors from requests
|
| 775 |
+
instance.interceptors.response.use(function () {/*...*/});
|
| 776 |
+
instance.interceptors.response.clear(); // Removes interceptors from responses
|
| 777 |
+
```
|
| 778 |
+
|
| 779 |
+
You can add interceptors to a custom instance of axios.
|
| 780 |
+
|
| 781 |
+
```js
|
| 782 |
+
const instance = axios.create();
|
| 783 |
+
instance.interceptors.request.use(function () {/*...*/});
|
| 784 |
+
```
|
| 785 |
+
|
| 786 |
+
When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay
|
| 787 |
+
in the execution of your axios request when the main thread is blocked (a promise is created under the hood for
|
| 788 |
+
the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag
|
| 789 |
+
to the options object that will tell axios to run the code synchronously and avoid any delays in request execution.
|
| 790 |
+
|
| 791 |
+
```js
|
| 792 |
+
axios.interceptors.request.use(function (config) {
|
| 793 |
+
config.headers.test = 'I am only a header!';
|
| 794 |
+
return config;
|
| 795 |
+
}, null, { synchronous: true });
|
| 796 |
+
```
|
| 797 |
+
|
| 798 |
+
If you want to execute a particular interceptor based on a runtime check,
|
| 799 |
+
you can add a `runWhen` function to the options object. The request interceptor will not be executed **if and only if** the return
|
| 800 |
+
of `runWhen` is `false`. The function will be called with the config
|
| 801 |
+
object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
|
| 802 |
+
asynchronous request interceptor that only needs to run at certain times.
|
| 803 |
+
|
| 804 |
+
```js
|
| 805 |
+
function onGetCall(config) {
|
| 806 |
+
return config.method === 'get';
|
| 807 |
+
}
|
| 808 |
+
axios.interceptors.request.use(function (config) {
|
| 809 |
+
config.headers.test = 'special get headers';
|
| 810 |
+
return config;
|
| 811 |
+
}, null, { runWhen: onGetCall });
|
| 812 |
+
```
|
| 813 |
+
|
| 814 |
+
> **Note:** options parameter(having `synchronous` and `runWhen` properties) is only supported for request interceptors at the moment.
|
| 815 |
+
|
| 816 |
+
### Multiple Interceptors
|
| 817 |
+
|
| 818 |
+
Given you add multiple response interceptors
|
| 819 |
+
and when the response was fulfilled
|
| 820 |
+
- then each interceptor is executed
|
| 821 |
+
- then they are executed in the order they were added
|
| 822 |
+
- then only the last interceptor's result is returned
|
| 823 |
+
- then every interceptor receives the result of its predecessor
|
| 824 |
+
- and when the fulfillment-interceptor throws
|
| 825 |
+
- then the following fulfillment-interceptor is not called
|
| 826 |
+
- then the following rejection-interceptor is called
|
| 827 |
+
- once caught, another following fulfill-interceptor is called again (just like in a promise chain).
|
| 828 |
+
|
| 829 |
+
Read [the interceptor tests](./test/specs/interceptors.spec.js) for seeing all this in code.
|
| 830 |
+
|
| 831 |
+
## Error Types
|
| 832 |
+
|
| 833 |
+
There are many different axios error messages that can appear that can provide basic information about the specifics of the error and where opportunities may lie in debugging.
|
| 834 |
+
|
| 835 |
+
The general structure of axios errors is as follows:
|
| 836 |
+
| Property | Definition |
|
| 837 |
+
| -------- | ---------- |
|
| 838 |
+
| message | A quick summary of the error message and the status it failed with. |
|
| 839 |
+
| name | This defines where the error originated from. For axios, it will always be an 'AxiosError'. |
|
| 840 |
+
| stack | Provides the stack trace of the error. |
|
| 841 |
+
| config | An axios config object with specific instance configurations defined by the user from when the request was made |
|
| 842 |
+
| code | Represents an axios identified error. The table below lists out specific definitions for internal axios error. |
|
| 843 |
+
| status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
|
| 844 |
+
|
| 845 |
+
Below is a list of potential axios identified error:
|
| 846 |
+
|
| 847 |
+
| Code | Definition |
|
| 848 |
+
| --- | --- |
|
| 849 |
+
| ERR_BAD_OPTION_VALUE | Invalid value provided in axios configuration. |
|
| 850 |
+
| ERR_BAD_OPTION | Invalid option provided in axios configuration. |
|
| 851 |
+
| ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment. |
|
| 852 |
+
| ERR_DEPRECATED | Deprecated feature or method used in axios. |
|
| 853 |
+
| ERR_INVALID_URL | Invalid URL provided for axios request. |
|
| 854 |
+
| ECONNABORTED | Typically indicates that the request has been timed out (unless `transitional.clarifyTimeoutError` is set) or aborted by the browser or its plugin. |
|
| 855 |
+
| ERR_CANCELED | Feature or method is canceled explicitly by the user using an AbortSignal (or a CancelToken). |
|
| 856 |
+
| ETIMEDOUT | Request timed out due to exceeding default axios timelimit. `transitional.clarifyTimeoutError` must be set to `true`, otherwise a generic `ECONNABORTED` error will be thrown instead. |
|
| 857 |
+
| ERR_NETWORK | Network-related issue. In the browser, this error can also be caused by a [CORS](https://developer.mozilla.org/ru/docs/Web/HTTP/Guides/CORS) or [Mixed Content](https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content) policy violation. The browser does not allow the JS code to clarify the real reason for the error caused by security issues, so please check the console. |
|
| 858 |
+
| ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration. |
|
| 859 |
+
| ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format. Usually related to a response with `5xx` status code. |
|
| 860 |
+
| ERR_BAD_REQUEST | The request has an unexpected format or is missing required parameters. Usually related to a response with `4xx` status code. |
|
| 861 |
+
|
| 862 |
+
## Handling Errors
|
| 863 |
+
|
| 864 |
+
the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error.
|
| 865 |
+
|
| 866 |
+
```js
|
| 867 |
+
axios.get('/user/12345')
|
| 868 |
+
.catch(function (error) {
|
| 869 |
+
if (error.response) {
|
| 870 |
+
// The request was made and the server responded with a status code
|
| 871 |
+
// that falls out of the range of 2xx
|
| 872 |
+
console.log(error.response.data);
|
| 873 |
+
console.log(error.response.status);
|
| 874 |
+
console.log(error.response.headers);
|
| 875 |
+
} else if (error.request) {
|
| 876 |
+
// The request was made but no response was received
|
| 877 |
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
| 878 |
+
// http.ClientRequest in node.js
|
| 879 |
+
console.log(error.request);
|
| 880 |
+
} else {
|
| 881 |
+
// Something happened in setting up the request that triggered an Error
|
| 882 |
+
console.log('Error', error.message);
|
| 883 |
+
}
|
| 884 |
+
console.log(error.config);
|
| 885 |
+
});
|
| 886 |
+
```
|
| 887 |
+
|
| 888 |
+
Using the `validateStatus` config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error.
|
| 889 |
+
|
| 890 |
+
```js
|
| 891 |
+
axios.get('/user/12345', {
|
| 892 |
+
validateStatus: function (status) {
|
| 893 |
+
return status < 500; // Resolve only if the status code is less than 500
|
| 894 |
+
}
|
| 895 |
+
})
|
| 896 |
+
```
|
| 897 |
+
|
| 898 |
+
Using `toJSON` you get an object with more information about the HTTP error.
|
| 899 |
+
|
| 900 |
+
```js
|
| 901 |
+
axios.get('/user/12345')
|
| 902 |
+
.catch(function (error) {
|
| 903 |
+
console.log(error.toJSON());
|
| 904 |
+
});
|
| 905 |
+
```
|
| 906 |
+
|
| 907 |
+
## Cancellation
|
| 908 |
+
|
| 909 |
+
### AbortController
|
| 910 |
+
|
| 911 |
+
Starting from `v0.22.0` Axios supports AbortController to cancel requests in fetch API way:
|
| 912 |
+
|
| 913 |
+
```js
|
| 914 |
+
const controller = new AbortController();
|
| 915 |
+
|
| 916 |
+
axios.get('/foo/bar', {
|
| 917 |
+
signal: controller.signal
|
| 918 |
+
}).then(function(response) {
|
| 919 |
+
//...
|
| 920 |
+
});
|
| 921 |
+
// cancel the request
|
| 922 |
+
controller.abort()
|
| 923 |
+
```
|
| 924 |
+
|
| 925 |
+
### CancelToken `👎deprecated`
|
| 926 |
+
|
| 927 |
+
You can also cancel a request using a *CancelToken*.
|
| 928 |
+
|
| 929 |
+
> The axios cancel token API is based on the withdrawn [cancellable promises proposal](https://github.com/tc39/proposal-cancelable-promises).
|
| 930 |
+
|
| 931 |
+
> This API is deprecated since v0.22.0 and shouldn't be used in new projects
|
| 932 |
+
|
| 933 |
+
You can create a cancel token using the `CancelToken.source` factory as shown below:
|
| 934 |
+
|
| 935 |
+
```js
|
| 936 |
+
const CancelToken = axios.CancelToken;
|
| 937 |
+
const source = CancelToken.source();
|
| 938 |
+
|
| 939 |
+
axios.get('/user/12345', {
|
| 940 |
+
cancelToken: source.token
|
| 941 |
+
}).catch(function (thrown) {
|
| 942 |
+
if (axios.isCancel(thrown)) {
|
| 943 |
+
console.log('Request canceled', thrown.message);
|
| 944 |
+
} else {
|
| 945 |
+
// handle error
|
| 946 |
+
}
|
| 947 |
+
});
|
| 948 |
+
|
| 949 |
+
axios.post('/user/12345', {
|
| 950 |
+
name: 'new name'
|
| 951 |
+
}, {
|
| 952 |
+
cancelToken: source.token
|
| 953 |
+
})
|
| 954 |
+
|
| 955 |
+
// cancel the request (the message parameter is optional)
|
| 956 |
+
source.cancel('Operation canceled by the user.');
|
| 957 |
+
```
|
| 958 |
+
|
| 959 |
+
You can also create a cancel token by passing an executor function to the `CancelToken` constructor:
|
| 960 |
+
|
| 961 |
+
```js
|
| 962 |
+
const CancelToken = axios.CancelToken;
|
| 963 |
+
let cancel;
|
| 964 |
+
|
| 965 |
+
axios.get('/user/12345', {
|
| 966 |
+
cancelToken: new CancelToken(function executor(c) {
|
| 967 |
+
// An executor function receives a cancel function as a parameter
|
| 968 |
+
cancel = c;
|
| 969 |
+
})
|
| 970 |
+
});
|
| 971 |
+
|
| 972 |
+
// cancel the request
|
| 973 |
+
cancel();
|
| 974 |
+
```
|
| 975 |
+
|
| 976 |
+
> **Note:** you can cancel several requests with the same cancel token/abort controller.
|
| 977 |
+
> If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make a real request.
|
| 978 |
+
|
| 979 |
+
> During the transition period, you can use both cancellation APIs, even for the same request:
|
| 980 |
+
|
| 981 |
+
## Using `application/x-www-form-urlencoded` format
|
| 982 |
+
|
| 983 |
+
### URLSearchParams
|
| 984 |
+
|
| 985 |
+
By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [ Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018).
|
| 986 |
+
|
| 987 |
+
```js
|
| 988 |
+
const params = new URLSearchParams({ foo: 'bar' });
|
| 989 |
+
params.append('extraparam', 'value');
|
| 990 |
+
axios.post('/foo', params);
|
| 991 |
+
```
|
| 992 |
+
|
| 993 |
+
### Query string (Older browsers)
|
| 994 |
+
|
| 995 |
+
For compatibility with very old browsers, there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
|
| 996 |
+
|
| 997 |
+
Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library:
|
| 998 |
+
|
| 999 |
+
```js
|
| 1000 |
+
const qs = require('qs');
|
| 1001 |
+
axios.post('/foo', qs.stringify({ 'bar': 123 }));
|
| 1002 |
+
```
|
| 1003 |
+
|
| 1004 |
+
Or in another way (ES6),
|
| 1005 |
+
|
| 1006 |
+
```js
|
| 1007 |
+
import qs from 'qs';
|
| 1008 |
+
const data = { 'bar': 123 };
|
| 1009 |
+
const options = {
|
| 1010 |
+
method: 'POST',
|
| 1011 |
+
headers: { 'content-type': 'application/x-www-form-urlencoded' },
|
| 1012 |
+
data: qs.stringify(data),
|
| 1013 |
+
url,
|
| 1014 |
+
};
|
| 1015 |
+
axios(options);
|
| 1016 |
+
```
|
| 1017 |
+
|
| 1018 |
+
### Older Node.js versions
|
| 1019 |
+
|
| 1020 |
+
For older Node.js engines, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows:
|
| 1021 |
+
|
| 1022 |
+
```js
|
| 1023 |
+
const querystring = require('querystring');
|
| 1024 |
+
axios.post('https://something.com/', querystring.stringify({ foo: 'bar' }));
|
| 1025 |
+
```
|
| 1026 |
+
|
| 1027 |
+
You can also use the [`qs`](https://github.com/ljharb/qs) library.
|
| 1028 |
+
|
| 1029 |
+
> **Note**: The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case.
|
| 1030 |
+
|
| 1031 |
+
### 🆕 Automatic serialization to URLSearchParams
|
| 1032 |
+
|
| 1033 |
+
Axios will automatically serialize the data object to urlencoded format if the content-type header is set to "application/x-www-form-urlencoded".
|
| 1034 |
+
|
| 1035 |
+
```js
|
| 1036 |
+
const data = {
|
| 1037 |
+
x: 1,
|
| 1038 |
+
arr: [1, 2, 3],
|
| 1039 |
+
arr2: [1, [2], 3],
|
| 1040 |
+
users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}],
|
| 1041 |
+
};
|
| 1042 |
+
|
| 1043 |
+
await axios.postForm('https://postman-echo.com/post', data,
|
| 1044 |
+
{headers: {'content-type': 'application/x-www-form-urlencoded'}}
|
| 1045 |
+
);
|
| 1046 |
+
```
|
| 1047 |
+
|
| 1048 |
+
The server will handle it as:
|
| 1049 |
+
|
| 1050 |
+
```js
|
| 1051 |
+
{
|
| 1052 |
+
x: '1',
|
| 1053 |
+
'arr[]': [ '1', '2', '3' ],
|
| 1054 |
+
'arr2[0]': '1',
|
| 1055 |
+
'arr2[1][0]': '2',
|
| 1056 |
+
'arr2[2]': '3',
|
| 1057 |
+
'arr3[]': [ '1', '2', '3' ],
|
| 1058 |
+
'users[0][name]': 'Peter',
|
| 1059 |
+
'users[0][surname]': 'griffin',
|
| 1060 |
+
'users[1][name]': 'Thomas',
|
| 1061 |
+
'users[1][surname]': 'Anderson'
|
| 1062 |
+
}
|
| 1063 |
+
````
|
| 1064 |
+
|
| 1065 |
+
If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically
|
| 1066 |
+
|
| 1067 |
+
```js
|
| 1068 |
+
var app = express();
|
| 1069 |
+
|
| 1070 |
+
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
|
| 1071 |
+
|
| 1072 |
+
app.post('/', function (req, res, next) {
|
| 1073 |
+
// echo body as JSON
|
| 1074 |
+
res.send(JSON.stringify(req.body));
|
| 1075 |
+
});
|
| 1076 |
+
|
| 1077 |
+
server = app.listen(3000);
|
| 1078 |
+
```
|
| 1079 |
+
|
| 1080 |
+
## Using `multipart/form-data` format
|
| 1081 |
+
|
| 1082 |
+
### FormData
|
| 1083 |
+
|
| 1084 |
+
To send the data as a `multipart/formdata` you need to pass a formData instance as a payload.
|
| 1085 |
+
Setting the `Content-Type` header is not required as Axios guesses it based on the payload type.
|
| 1086 |
+
|
| 1087 |
+
```js
|
| 1088 |
+
const formData = new FormData();
|
| 1089 |
+
formData.append('foo', 'bar');
|
| 1090 |
+
|
| 1091 |
+
axios.post('https://httpbin.org/post', formData);
|
| 1092 |
+
```
|
| 1093 |
+
|
| 1094 |
+
In node.js, you can use the [`form-data`](https://github.com/form-data/form-data) library as follows:
|
| 1095 |
+
|
| 1096 |
+
```js
|
| 1097 |
+
const FormData = require('form-data');
|
| 1098 |
+
|
| 1099 |
+
const form = new FormData();
|
| 1100 |
+
form.append('my_field', 'my value');
|
| 1101 |
+
form.append('my_buffer', new Buffer(10));
|
| 1102 |
+
form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
|
| 1103 |
+
|
| 1104 |
+
axios.post('https://example.com', form)
|
| 1105 |
+
```
|
| 1106 |
+
|
| 1107 |
+
### 🆕 Automatic serialization to FormData
|
| 1108 |
+
|
| 1109 |
+
Starting from `v0.27.0`, Axios supports automatic object serialization to a FormData object if the request `Content-Type`
|
| 1110 |
+
header is set to `multipart/form-data`.
|
| 1111 |
+
|
| 1112 |
+
The following request will submit the data in a FormData format (Browser & Node.js):
|
| 1113 |
+
|
| 1114 |
+
```js
|
| 1115 |
+
import axios from 'axios';
|
| 1116 |
+
|
| 1117 |
+
axios.post('https://httpbin.org/post', {x: 1}, {
|
| 1118 |
+
headers: {
|
| 1119 |
+
'Content-Type': 'multipart/form-data'
|
| 1120 |
+
}
|
| 1121 |
+
}).then(({data}) => console.log(data));
|
| 1122 |
+
```
|
| 1123 |
+
|
| 1124 |
+
In the `node.js` build, the ([`form-data`](https://github.com/form-data/form-data)) polyfill is used by default.
|
| 1125 |
+
|
| 1126 |
+
You can overload the FormData class by setting the `env.FormData` config variable,
|
| 1127 |
+
but you probably won't need it in most cases:
|
| 1128 |
+
|
| 1129 |
+
```js
|
| 1130 |
+
const axios = require('axios');
|
| 1131 |
+
var FormData = require('form-data');
|
| 1132 |
+
|
| 1133 |
+
axios.post('https://httpbin.org/post', {x: 1, buf: new Buffer(10)}, {
|
| 1134 |
+
headers: {
|
| 1135 |
+
'Content-Type': 'multipart/form-data'
|
| 1136 |
+
}
|
| 1137 |
+
}).then(({data}) => console.log(data));
|
| 1138 |
+
```
|
| 1139 |
+
|
| 1140 |
+
Axios FormData serializer supports some special endings to perform the following operations:
|
| 1141 |
+
|
| 1142 |
+
- `{}` - serialize the value with JSON.stringify
|
| 1143 |
+
- `[]` - unwrap the array-like object as separate fields with the same key
|
| 1144 |
+
|
| 1145 |
+
> **Note**: unwrap/expand operation will be used by default on arrays and FileList objects
|
| 1146 |
+
|
| 1147 |
+
FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases:
|
| 1148 |
+
|
| 1149 |
+
- `visitor: Function` - user-defined visitor function that will be called recursively to serialize the data object
|
| 1150 |
+
to a `FormData` object by following custom rules.
|
| 1151 |
+
|
| 1152 |
+
- `dots: boolean = false` - use dot notation instead of brackets to serialize arrays and objects;
|
| 1153 |
+
|
| 1154 |
+
- `metaTokens: boolean = true` - add the special ending (e.g `user{}: '{"name": "John"}'`) in the FormData key.
|
| 1155 |
+
The back-end body-parser could potentially use this meta-information to automatically parse the value as JSON.
|
| 1156 |
+
|
| 1157 |
+
- `indexes: null|false|true = false` - controls how indexes will be added to unwrapped keys of `flat` array-like objects.
|
| 1158 |
+
|
| 1159 |
+
- `null` - don't add brackets (`arr: 1`, `arr: 2`, `arr: 3`)
|
| 1160 |
+
- `false`(default) - add empty brackets (`arr[]: 1`, `arr[]: 2`, `arr[]: 3`)
|
| 1161 |
+
- `true` - add brackets with indexes (`arr[0]: 1`, `arr[1]: 2`, `arr[2]: 3`)
|
| 1162 |
+
|
| 1163 |
+
Let's say we have an object like this one:
|
| 1164 |
+
|
| 1165 |
+
```js
|
| 1166 |
+
const obj = {
|
| 1167 |
+
x: 1,
|
| 1168 |
+
arr: [1, 2, 3],
|
| 1169 |
+
arr2: [1, [2], 3],
|
| 1170 |
+
users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}],
|
| 1171 |
+
'obj2{}': [{x:1}]
|
| 1172 |
+
};
|
| 1173 |
+
```
|
| 1174 |
+
|
| 1175 |
+
The following steps will be executed by the Axios serializer internally:
|
| 1176 |
+
|
| 1177 |
+
```js
|
| 1178 |
+
const formData = new FormData();
|
| 1179 |
+
formData.append('x', '1');
|
| 1180 |
+
formData.append('arr[]', '1');
|
| 1181 |
+
formData.append('arr[]', '2');
|
| 1182 |
+
formData.append('arr[]', '3');
|
| 1183 |
+
formData.append('arr2[0]', '1');
|
| 1184 |
+
formData.append('arr2[1][0]', '2');
|
| 1185 |
+
formData.append('arr2[2]', '3');
|
| 1186 |
+
formData.append('users[0][name]', 'Peter');
|
| 1187 |
+
formData.append('users[0][surname]', 'Griffin');
|
| 1188 |
+
formData.append('users[1][name]', 'Thomas');
|
| 1189 |
+
formData.append('users[1][surname]', 'Anderson');
|
| 1190 |
+
formData.append('obj2{}', '[{"x":1}]');
|
| 1191 |
+
```
|
| 1192 |
+
|
| 1193 |
+
Axios supports the following shortcut methods: `postForm`, `putForm`, `patchForm`
|
| 1194 |
+
which are just the corresponding http methods with the `Content-Type` header preset to `multipart/form-data`.
|
| 1195 |
+
|
| 1196 |
+
## Files Posting
|
| 1197 |
+
|
| 1198 |
+
You can easily submit a single file:
|
| 1199 |
+
|
| 1200 |
+
```js
|
| 1201 |
+
await axios.postForm('https://httpbin.org/post', {
|
| 1202 |
+
'myVar' : 'foo',
|
| 1203 |
+
'file': document.querySelector('#fileInput').files[0]
|
| 1204 |
+
});
|
| 1205 |
+
```
|
| 1206 |
+
|
| 1207 |
+
or multiple files as `multipart/form-data`:
|
| 1208 |
+
|
| 1209 |
+
```js
|
| 1210 |
+
await axios.postForm('https://httpbin.org/post', {
|
| 1211 |
+
'files[]': document.querySelector('#fileInput').files
|
| 1212 |
+
});
|
| 1213 |
+
```
|
| 1214 |
+
|
| 1215 |
+
`FileList` object can be passed directly:
|
| 1216 |
+
|
| 1217 |
+
```js
|
| 1218 |
+
await axios.postForm('https://httpbin.org/post', document.querySelector('#fileInput').files)
|
| 1219 |
+
```
|
| 1220 |
+
|
| 1221 |
+
All files will be sent with the same field names: `files[]`.
|
| 1222 |
+
|
| 1223 |
+
## 🆕 HTML Form Posting (browser)
|
| 1224 |
+
|
| 1225 |
+
Pass HTML Form element as a payload to submit it as `multipart/form-data` content.
|
| 1226 |
+
|
| 1227 |
+
```js
|
| 1228 |
+
await axios.postForm('https://httpbin.org/post', document.querySelector('#htmlForm'));
|
| 1229 |
+
```
|
| 1230 |
+
|
| 1231 |
+
`FormData` and `HTMLForm` objects can also be posted as `JSON` by explicitly setting the `Content-Type` header to `application/json`:
|
| 1232 |
+
|
| 1233 |
+
```js
|
| 1234 |
+
await axios.post('https://httpbin.org/post', document.querySelector('#htmlForm'), {
|
| 1235 |
+
headers: {
|
| 1236 |
+
'Content-Type': 'application/json'
|
| 1237 |
+
}
|
| 1238 |
+
})
|
| 1239 |
+
```
|
| 1240 |
+
|
| 1241 |
+
For example, the Form
|
| 1242 |
+
|
| 1243 |
+
```html
|
| 1244 |
+
<form id="form">
|
| 1245 |
+
<input type="text" name="foo" value="1">
|
| 1246 |
+
<input type="text" name="deep.prop" value="2">
|
| 1247 |
+
<input type="text" name="deep prop spaced" value="3">
|
| 1248 |
+
<input type="text" name="baz" value="4">
|
| 1249 |
+
<input type="text" name="baz" value="5">
|
| 1250 |
+
|
| 1251 |
+
<select name="user.age">
|
| 1252 |
+
<option value="value1">Value 1</option>
|
| 1253 |
+
<option value="value2" selected>Value 2</option>
|
| 1254 |
+
<option value="value3">Value 3</option>
|
| 1255 |
+
</select>
|
| 1256 |
+
|
| 1257 |
+
<input type="submit" value="Save">
|
| 1258 |
+
</form>
|
| 1259 |
+
```
|
| 1260 |
+
|
| 1261 |
+
will be submitted as the following JSON object:
|
| 1262 |
+
|
| 1263 |
+
```js
|
| 1264 |
+
{
|
| 1265 |
+
"foo": "1",
|
| 1266 |
+
"deep": {
|
| 1267 |
+
"prop": {
|
| 1268 |
+
"spaced": "3"
|
| 1269 |
+
}
|
| 1270 |
+
},
|
| 1271 |
+
"baz": [
|
| 1272 |
+
"4",
|
| 1273 |
+
"5"
|
| 1274 |
+
],
|
| 1275 |
+
"user": {
|
| 1276 |
+
"age": "value2"
|
| 1277 |
+
}
|
| 1278 |
+
}
|
| 1279 |
+
````
|
| 1280 |
+
|
| 1281 |
+
Sending `Blobs`/`Files` as JSON (`base64`) is not currently supported.
|
| 1282 |
+
|
| 1283 |
+
## 🆕 Progress capturing
|
| 1284 |
+
|
| 1285 |
+
Axios supports both browser and node environments to capture request upload/download progress.
|
| 1286 |
+
The frequency of progress events is forced to be limited to `3` times per second.
|
| 1287 |
+
|
| 1288 |
+
```js
|
| 1289 |
+
await axios.post(url, data, {
|
| 1290 |
+
onUploadProgress: function (axiosProgressEvent) {
|
| 1291 |
+
/*{
|
| 1292 |
+
loaded: number;
|
| 1293 |
+
total?: number;
|
| 1294 |
+
progress?: number; // in range [0..1]
|
| 1295 |
+
bytes: number; // how many bytes have been transferred since the last trigger (delta)
|
| 1296 |
+
estimated?: number; // estimated time in seconds
|
| 1297 |
+
rate?: number; // upload speed in bytes
|
| 1298 |
+
upload: true; // upload sign
|
| 1299 |
+
}*/
|
| 1300 |
+
},
|
| 1301 |
+
|
| 1302 |
+
onDownloadProgress: function (axiosProgressEvent) {
|
| 1303 |
+
/*{
|
| 1304 |
+
loaded: number;
|
| 1305 |
+
total?: number;
|
| 1306 |
+
progress?: number;
|
| 1307 |
+
bytes: number;
|
| 1308 |
+
estimated?: number;
|
| 1309 |
+
rate?: number; // download speed in bytes
|
| 1310 |
+
download: true; // download sign
|
| 1311 |
+
}*/
|
| 1312 |
+
}
|
| 1313 |
+
});
|
| 1314 |
+
```
|
| 1315 |
+
|
| 1316 |
+
You can also track stream upload/download progress in node.js:
|
| 1317 |
+
|
| 1318 |
+
```js
|
| 1319 |
+
const {data} = await axios.post(SERVER_URL, readableStream, {
|
| 1320 |
+
onUploadProgress: ({progress}) => {
|
| 1321 |
+
console.log((progress * 100).toFixed(2));
|
| 1322 |
+
},
|
| 1323 |
+
|
| 1324 |
+
headers: {
|
| 1325 |
+
'Content-Length': contentLength
|
| 1326 |
+
},
|
| 1327 |
+
|
| 1328 |
+
maxRedirects: 0 // avoid buffering the entire stream
|
| 1329 |
+
});
|
| 1330 |
+
````
|
| 1331 |
+
|
| 1332 |
+
> **Note:**
|
| 1333 |
+
> Capturing FormData upload progress is not currently supported in node.js environments.
|
| 1334 |
+
|
| 1335 |
+
> **⚠️ Warning**
|
| 1336 |
+
> It is recommended to disable redirects by setting maxRedirects: 0 to upload the stream in the **node.js** environment,
|
| 1337 |
+
> as follow-redirects package will buffer the entire stream in RAM without following the "backpressure" algorithm.
|
| 1338 |
+
|
| 1339 |
+
|
| 1340 |
+
## 🆕 Rate limiting
|
| 1341 |
+
|
| 1342 |
+
Download and upload rate limits can only be set for the http adapter (node.js):
|
| 1343 |
+
|
| 1344 |
+
```js
|
| 1345 |
+
const {data} = await axios.post(LOCAL_SERVER_URL, myBuffer, {
|
| 1346 |
+
onUploadProgress: ({progress, rate}) => {
|
| 1347 |
+
console.log(`Upload [${(progress*100).toFixed(2)}%]: ${(rate / 1024).toFixed(2)}KB/s`)
|
| 1348 |
+
},
|
| 1349 |
+
|
| 1350 |
+
maxRate: [100 * 1024], // 100KB/s limit
|
| 1351 |
+
});
|
| 1352 |
+
```
|
| 1353 |
+
|
| 1354 |
+
## 🆕 AxiosHeaders
|
| 1355 |
+
|
| 1356 |
+
Axios has its own `AxiosHeaders` class to manipulate headers using a Map-like API that guarantees caseless work.
|
| 1357 |
+
Although HTTP is case-insensitive in headers, Axios will retain the case of the original header for stylistic reasons
|
| 1358 |
+
and for a workaround when servers mistakenly consider the header's case.
|
| 1359 |
+
The old approach of directly manipulating headers object is still available, but deprecated and not recommended for future usage.
|
| 1360 |
+
|
| 1361 |
+
### Working with headers
|
| 1362 |
+
|
| 1363 |
+
An AxiosHeaders object instance can contain different types of internal values. that control setting and merging logic.
|
| 1364 |
+
The final headers object with string values is obtained by Axios by calling the `toJSON` method.
|
| 1365 |
+
|
| 1366 |
+
> Note: By JSON here we mean an object consisting only of string values intended to be sent over the network.
|
| 1367 |
+
|
| 1368 |
+
The header value can be one of the following types:
|
| 1369 |
+
- `string` - normal string value that will be sent to the server
|
| 1370 |
+
- `null` - skip header when rendering to JSON
|
| 1371 |
+
- `false` - skip header when rendering to JSON, additionally indicates that `set` method must be called with `rewrite` option set to `true`
|
| 1372 |
+
to overwrite this value (Axios uses this internally to allow users to opt out of installing certain headers like `User-Agent` or `Content-Type`)
|
| 1373 |
+
- `undefined` - value is not set
|
| 1374 |
+
|
| 1375 |
+
> Note: The header value is considered set if it is not equal to undefined.
|
| 1376 |
+
|
| 1377 |
+
The headers object is always initialized inside interceptors and transformers:
|
| 1378 |
+
|
| 1379 |
+
```ts
|
| 1380 |
+
axios.interceptors.request.use((request: InternalAxiosRequestConfig) => {
|
| 1381 |
+
request.headers.set('My-header', 'value');
|
| 1382 |
+
|
| 1383 |
+
request.headers.set({
|
| 1384 |
+
"My-set-header1": "my-set-value1",
|
| 1385 |
+
"My-set-header2": "my-set-value2"
|
| 1386 |
+
});
|
| 1387 |
+
|
| 1388 |
+
request.headers.set('User-Agent', false); // disable subsequent setting the header by Axios
|
| 1389 |
+
|
| 1390 |
+
request.headers.setContentType('text/plain');
|
| 1391 |
+
|
| 1392 |
+
request.headers['My-set-header2'] = 'newValue' // direct access is deprecated
|
| 1393 |
+
|
| 1394 |
+
return request;
|
| 1395 |
+
}
|
| 1396 |
+
);
|
| 1397 |
+
````
|
| 1398 |
+
|
| 1399 |
+
You can iterate over an `AxiosHeaders` instance using a `for...of` statement:
|
| 1400 |
+
|
| 1401 |
+
````js
|
| 1402 |
+
const headers = new AxiosHeaders({
|
| 1403 |
+
foo: '1',
|
| 1404 |
+
bar: '2',
|
| 1405 |
+
baz: '3'
|
| 1406 |
+
});
|
| 1407 |
+
|
| 1408 |
+
for(const [header, value] of headers) {
|
| 1409 |
+
console.log(header, value);
|
| 1410 |
+
}
|
| 1411 |
+
|
| 1412 |
+
// foo 1
|
| 1413 |
+
// bar 2
|
| 1414 |
+
// baz 3
|
| 1415 |
+
````
|
| 1416 |
+
|
| 1417 |
+
### new AxiosHeaders(headers?)
|
| 1418 |
+
|
| 1419 |
+
Constructs a new `AxiosHeaders` instance.
|
| 1420 |
+
|
| 1421 |
+
```
|
| 1422 |
+
constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
|
| 1423 |
+
```
|
| 1424 |
+
|
| 1425 |
+
If the headers object is a string, it will be parsed as RAW HTTP headers.
|
| 1426 |
+
|
| 1427 |
+
````js
|
| 1428 |
+
const headers = new AxiosHeaders(`
|
| 1429 |
+
Host: www.bing.com
|
| 1430 |
+
User-Agent: curl/7.54.0
|
| 1431 |
+
Accept: */*`);
|
| 1432 |
+
|
| 1433 |
+
console.log(headers);
|
| 1434 |
+
|
| 1435 |
+
// Object [AxiosHeaders] {
|
| 1436 |
+
// host: 'www.bing.com',
|
| 1437 |
+
// 'user-agent': 'curl/7.54.0',
|
| 1438 |
+
// accept: '*/*'
|
| 1439 |
+
// }
|
| 1440 |
+
````
|
| 1441 |
+
|
| 1442 |
+
### AxiosHeaders#set
|
| 1443 |
+
|
| 1444 |
+
```ts
|
| 1445 |
+
set(headerName, value: Axios, rewrite?: boolean);
|
| 1446 |
+
set(headerName, value, rewrite?: (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean);
|
| 1447 |
+
set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean);
|
| 1448 |
+
```
|
| 1449 |
+
|
| 1450 |
+
The `rewrite` argument controls the overwriting behavior:
|
| 1451 |
+
- `false` - do not overwrite if header's value is set (is not `undefined`)
|
| 1452 |
+
- `undefined` (default) - overwrite the header unless its value is set to `false`
|
| 1453 |
+
- `true` - rewrite anyway
|
| 1454 |
+
|
| 1455 |
+
The option can also accept a user-defined function that determines whether the value should be overwritten or not.
|
| 1456 |
+
|
| 1457 |
+
Returns `this`.
|
| 1458 |
+
|
| 1459 |
+
### AxiosHeaders#get(header)
|
| 1460 |
+
|
| 1461 |
+
```
|
| 1462 |
+
get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue;
|
| 1463 |
+
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
| 1464 |
+
````
|
| 1465 |
+
|
| 1466 |
+
Returns the internal value of the header. It can take an extra argument to parse the header's value with `RegExp.exec`,
|
| 1467 |
+
matcher function or internal key-value parser.
|
| 1468 |
+
|
| 1469 |
+
```ts
|
| 1470 |
+
const headers = new AxiosHeaders({
|
| 1471 |
+
'Content-Type': 'multipart/form-data; boundary=Asrf456BGe4h'
|
| 1472 |
+
});
|
| 1473 |
+
|
| 1474 |
+
console.log(headers.get('Content-Type'));
|
| 1475 |
+
// multipart/form-data; boundary=Asrf456BGe4h
|
| 1476 |
+
|
| 1477 |
+
console.log(headers.get('Content-Type', true)); // parse key-value pairs from a string separated with \s,;= delimiters:
|
| 1478 |
+
// [Object: null prototype] {
|
| 1479 |
+
// 'multipart/form-data': undefined,
|
| 1480 |
+
// boundary: 'Asrf456BGe4h'
|
| 1481 |
+
// }
|
| 1482 |
+
|
| 1483 |
+
|
| 1484 |
+
console.log(headers.get('Content-Type', (value, name, headers) => {
|
| 1485 |
+
return String(value).replace(/a/g, 'ZZZ');
|
| 1486 |
+
}));
|
| 1487 |
+
// multipZZZrt/form-dZZZtZZZ; boundZZZry=Asrf456BGe4h
|
| 1488 |
+
|
| 1489 |
+
console.log(headers.get('Content-Type', /boundary=(\w+)/)?.[0]);
|
| 1490 |
+
// boundary=Asrf456BGe4h
|
| 1491 |
+
|
| 1492 |
+
```
|
| 1493 |
+
|
| 1494 |
+
Returns the value of the header.
|
| 1495 |
+
|
| 1496 |
+
### AxiosHeaders#has(header, matcher?)
|
| 1497 |
+
|
| 1498 |
+
```
|
| 1499 |
+
has(header: string, matcher?: AxiosHeaderMatcher): boolean;
|
| 1500 |
+
```
|
| 1501 |
+
|
| 1502 |
+
Returns `true` if the header is set (has no `undefined` value).
|
| 1503 |
+
|
| 1504 |
+
### AxiosHeaders#delete(header, matcher?)
|
| 1505 |
+
|
| 1506 |
+
```
|
| 1507 |
+
delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
|
| 1508 |
+
```
|
| 1509 |
+
|
| 1510 |
+
Returns `true` if at least one header has been removed.
|
| 1511 |
+
|
| 1512 |
+
### AxiosHeaders#clear(matcher?)
|
| 1513 |
+
|
| 1514 |
+
```
|
| 1515 |
+
clear(matcher?: AxiosHeaderMatcher): boolean;
|
| 1516 |
+
```
|
| 1517 |
+
|
| 1518 |
+
Removes all headers.
|
| 1519 |
+
Unlike the `delete` method matcher, this optional matcher will be used to match against the header name rather than the value.
|
| 1520 |
+
|
| 1521 |
+
```ts
|
| 1522 |
+
const headers = new AxiosHeaders({
|
| 1523 |
+
'foo': '1',
|
| 1524 |
+
'x-foo': '2',
|
| 1525 |
+
'x-bar': '3',
|
| 1526 |
+
});
|
| 1527 |
+
|
| 1528 |
+
console.log(headers.clear(/^x-/)); // true
|
| 1529 |
+
|
| 1530 |
+
console.log(headers.toJSON()); // [Object: null prototype] { foo: '1' }
|
| 1531 |
+
```
|
| 1532 |
+
|
| 1533 |
+
Returns `true` if at least one header has been cleared.
|
| 1534 |
+
|
| 1535 |
+
### AxiosHeaders#normalize(format);
|
| 1536 |
+
|
| 1537 |
+
If the headers object was changed directly, it can have duplicates with the same name but in different cases.
|
| 1538 |
+
This method normalizes the headers object by combining duplicate keys into one.
|
| 1539 |
+
Axios uses this method internally after calling each interceptor.
|
| 1540 |
+
Set `format` to true for converting headers name to lowercase and capitalize the initial letters (`cOntEnt-type` => `Content-Type`)
|
| 1541 |
+
|
| 1542 |
+
```js
|
| 1543 |
+
const headers = new AxiosHeaders({
|
| 1544 |
+
'foo': '1',
|
| 1545 |
+
});
|
| 1546 |
+
|
| 1547 |
+
headers.Foo = '2';
|
| 1548 |
+
headers.FOO = '3';
|
| 1549 |
+
|
| 1550 |
+
console.log(headers.toJSON()); // [Object: null prototype] { foo: '1', Foo: '2', FOO: '3' }
|
| 1551 |
+
console.log(headers.normalize().toJSON()); // [Object: null prototype] { foo: '3' }
|
| 1552 |
+
console.log(headers.normalize(true).toJSON()); // [Object: null prototype] { Foo: '3' }
|
| 1553 |
+
```
|
| 1554 |
+
|
| 1555 |
+
Returns `this`.
|
| 1556 |
+
|
| 1557 |
+
### AxiosHeaders#concat(...targets)
|
| 1558 |
+
|
| 1559 |
+
```
|
| 1560 |
+
concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
|
| 1561 |
+
```
|
| 1562 |
+
|
| 1563 |
+
Merges the instance with targets into a new `AxiosHeaders` instance. If the target is a string, it will be parsed as RAW HTTP headers.
|
| 1564 |
+
|
| 1565 |
+
Returns a new `AxiosHeaders` instance.
|
| 1566 |
+
|
| 1567 |
+
### AxiosHeaders#toJSON(asStrings?)
|
| 1568 |
+
|
| 1569 |
+
````
|
| 1570 |
+
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
| 1571 |
+
````
|
| 1572 |
+
|
| 1573 |
+
Resolve all internal headers values into a new null prototype object.
|
| 1574 |
+
Set `asStrings` to true to resolve arrays as a string containing all elements, separated by commas.
|
| 1575 |
+
|
| 1576 |
+
### AxiosHeaders.from(thing?)
|
| 1577 |
+
|
| 1578 |
+
````
|
| 1579 |
+
from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
| 1580 |
+
````
|
| 1581 |
+
|
| 1582 |
+
Returns a new `AxiosHeaders` instance created from the raw headers passed in,
|
| 1583 |
+
or simply returns the given headers object if it's an `AxiosHeaders` instance.
|
| 1584 |
+
|
| 1585 |
+
### AxiosHeaders.concat(...targets)
|
| 1586 |
+
|
| 1587 |
+
````
|
| 1588 |
+
concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
|
| 1589 |
+
````
|
| 1590 |
+
|
| 1591 |
+
Returns a new `AxiosHeaders` instance created by merging the target objects.
|
| 1592 |
+
|
| 1593 |
+
### Shortcuts
|
| 1594 |
+
|
| 1595 |
+
The following shortcuts are available:
|
| 1596 |
+
|
| 1597 |
+
- `setContentType`, `getContentType`, `hasContentType`
|
| 1598 |
+
|
| 1599 |
+
- `setContentLength`, `getContentLength`, `hasContentLength`
|
| 1600 |
+
|
| 1601 |
+
- `setAccept`, `getAccept`, `hasAccept`
|
| 1602 |
+
|
| 1603 |
+
- `setUserAgent`, `getUserAgent`, `hasUserAgent`
|
| 1604 |
+
|
| 1605 |
+
- `setContentEncoding`, `getContentEncoding`, `hasContentEncoding`
|
| 1606 |
+
|
| 1607 |
+
## 🔥 Fetch adapter
|
| 1608 |
+
|
| 1609 |
+
Fetch adapter was introduced in `v1.7.0`. By default, it will be used if `xhr` and `http` adapters are not available in the build,
|
| 1610 |
+
or not supported by the environment.
|
| 1611 |
+
To use it by default, it must be selected explicitly:
|
| 1612 |
+
|
| 1613 |
+
```js
|
| 1614 |
+
const {data} = axios.get(url, {
|
| 1615 |
+
adapter: 'fetch' // by default ['xhr', 'http', 'fetch']
|
| 1616 |
+
})
|
| 1617 |
+
```
|
| 1618 |
+
|
| 1619 |
+
You can create a separate instance for this:
|
| 1620 |
+
|
| 1621 |
+
```js
|
| 1622 |
+
const fetchAxios = axios.create({
|
| 1623 |
+
adapter: 'fetch'
|
| 1624 |
+
});
|
| 1625 |
+
|
| 1626 |
+
const {data} = fetchAxios.get(url);
|
| 1627 |
+
```
|
| 1628 |
+
|
| 1629 |
+
The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
|
| 1630 |
+
Also, it supports additional response types such as `stream` and `formdata` (if supported by the environment).
|
| 1631 |
+
|
| 1632 |
+
### 🔥 Custom fetch
|
| 1633 |
+
|
| 1634 |
+
Starting from `v1.12.0`, you can customize the fetch adapter to use a custom fetch API instead of environment globals.
|
| 1635 |
+
You can pass a custom `fetch` function, `Request`, and `Response` constructors via env config.
|
| 1636 |
+
This can be helpful in case of custom environments & app frameworks.
|
| 1637 |
+
|
| 1638 |
+
Also, when using a custom fetch, you may need to set custom Request and Response too. If you don't set them, global objects will be used.
|
| 1639 |
+
If your custom fetch api does not have these objects, and the globals are incompatible with a custom fetch,
|
| 1640 |
+
you must disable their use inside the fetch adapter by passing null.
|
| 1641 |
+
|
| 1642 |
+
> Note: Setting `Request` & `Response` to `null` will make it impossible for the fetch adapter to capture the upload & download progress.
|
| 1643 |
+
|
| 1644 |
+
Basic example:
|
| 1645 |
+
|
| 1646 |
+
```js
|
| 1647 |
+
import customFetchFunction from 'customFetchModule';
|
| 1648 |
+
|
| 1649 |
+
const instance = axios.create({
|
| 1650 |
+
adapter: 'fetch',
|
| 1651 |
+
onDownloadProgress(e) {
|
| 1652 |
+
console.log('downloadProgress', e);
|
| 1653 |
+
},
|
| 1654 |
+
env: {
|
| 1655 |
+
fetch: customFetchFunction,
|
| 1656 |
+
Request: null, // undefined -> use the global constructor
|
| 1657 |
+
Response: null
|
| 1658 |
+
}
|
| 1659 |
+
});
|
| 1660 |
+
```
|
| 1661 |
+
|
| 1662 |
+
#### 🔥 Using with Tauri
|
| 1663 |
+
|
| 1664 |
+
A minimal example of setting up Axios for use in a [Tauri](https://tauri.app/plugin/http-client/) app with a platform fetch function that ignores CORS policy for requests.
|
| 1665 |
+
|
| 1666 |
+
```js
|
| 1667 |
+
import { fetch } from "@tauri-apps/plugin-http";
|
| 1668 |
+
import axios from "axios";
|
| 1669 |
+
|
| 1670 |
+
const instance = axios.create({
|
| 1671 |
+
adapter: 'fetch',
|
| 1672 |
+
onDownloadProgress(e) {
|
| 1673 |
+
console.log('downloadProgress', e);
|
| 1674 |
+
},
|
| 1675 |
+
env: {
|
| 1676 |
+
fetch
|
| 1677 |
+
}
|
| 1678 |
+
});
|
| 1679 |
+
|
| 1680 |
+
const {data} = await instance.get("https://google.com");
|
| 1681 |
+
```
|
| 1682 |
+
|
| 1683 |
+
#### 🔥 Using with SvelteKit
|
| 1684 |
+
|
| 1685 |
+
[SvelteKit](https://svelte.dev/docs/kit/web-standards#Fetch-APIs) framework has a custom implementation of the fetch function for server rendering (so called `load` functions), and also uses relative paths,
|
| 1686 |
+
which makes it incompatible with the standard URL API. So, Axios must be configured to use the custom fetch API:
|
| 1687 |
+
|
| 1688 |
+
```js
|
| 1689 |
+
export async function load({ fetch }) {
|
| 1690 |
+
const {data: post} = await axios.get('https://jsonplaceholder.typicode.com/posts/1', {
|
| 1691 |
+
adapter: 'fetch',
|
| 1692 |
+
env: {
|
| 1693 |
+
fetch,
|
| 1694 |
+
Request: null,
|
| 1695 |
+
Response: null
|
| 1696 |
+
}
|
| 1697 |
+
});
|
| 1698 |
+
|
| 1699 |
+
return { post };
|
| 1700 |
+
}
|
| 1701 |
+
```
|
| 1702 |
+
|
| 1703 |
+
## Semver
|
| 1704 |
+
|
| 1705 |
+
Since Axios has reached a `v.1.0.0` we will fully embrace semver as per the spec [here](https://semver.org/)
|
| 1706 |
+
|
| 1707 |
+
## Promises
|
| 1708 |
+
|
| 1709 |
+
axios depends on a native ES6 Promise implementation to be [supported](https://caniuse.com/promises).
|
| 1710 |
+
If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
|
| 1711 |
+
|
| 1712 |
+
## TypeScript
|
| 1713 |
+
|
| 1714 |
+
axios includes [TypeScript](https://typescriptlang.org) definitions and a type guard for axios errors.
|
| 1715 |
+
|
| 1716 |
+
```typescript
|
| 1717 |
+
let user: User = null;
|
| 1718 |
+
try {
|
| 1719 |
+
const { data } = await axios.get('/user?ID=12345');
|
| 1720 |
+
user = data.userDetails;
|
| 1721 |
+
} catch (error) {
|
| 1722 |
+
if (axios.isAxiosError(error)) {
|
| 1723 |
+
handleAxiosError(error);
|
| 1724 |
+
} else {
|
| 1725 |
+
handleUnexpectedError(error);
|
| 1726 |
+
}
|
| 1727 |
+
}
|
| 1728 |
+
```
|
| 1729 |
+
|
| 1730 |
+
Because axios dual publishes with an ESM default export and a CJS `module.exports`, there are some caveats.
|
| 1731 |
+
The recommended setting is to use `"moduleResolution": "node16"` (this is implied by `"module": "node16"`). Note that this requires TypeScript 4.7 or greater.
|
| 1732 |
+
If use ESM, your settings should be fine.
|
| 1733 |
+
If you compile TypeScript to CJS and you can’t use `"moduleResolution": "node 16"`, you have to enable `esModuleInterop`.
|
| 1734 |
+
If you use TypeScript to type check CJS JavaScript code, your only option is to use `"moduleResolution": "node16"`.
|
| 1735 |
+
|
| 1736 |
+
## Online one-click setup
|
| 1737 |
+
|
| 1738 |
+
You can use Gitpod, an online IDE(which is free for Open Source) for contributing or running the examples online.
|
| 1739 |
+
|
| 1740 |
+
[](https://gitpod.io/#https://github.com/axios/axios/blob/main/examples/server.js)
|
| 1741 |
+
|
| 1742 |
+
|
| 1743 |
+
## Resources
|
| 1744 |
+
|
| 1745 |
+
* [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
|
| 1746 |
+
* [Ecosystem](https://github.com/axios/axios/blob/v1.x/ECOSYSTEM.md)
|
| 1747 |
+
* [Contributing Guide](https://github.com/axios/axios/blob/v1.x/CONTRIBUTING.md)
|
| 1748 |
+
* [Code of Conduct](https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md)
|
| 1749 |
+
|
| 1750 |
+
## Credits
|
| 1751 |
+
|
| 1752 |
+
axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [AngularJS](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of AngularJS.
|
| 1753 |
+
|
| 1754 |
+
## License
|
| 1755 |
+
|
| 1756 |
+
[MIT](LICENSE)
|
node_modules/axios/dist/axios.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/axios.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/axios.min.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
| 2 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(e){var r,n;function o(r,n){try{var a=e[r](n),s=a.value,u=s instanceof t;Promise.resolve(u?s.v:s).then((function(t){if(u){var n="return"===r?"return":"next";if(!s.k||t.done)return o(n,t);t=e[n](t).value}i(a.done?"return":"normal",t)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?o(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};n?n=n.next=s:(r=n=s,o(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}function t(e,t){this.v=e,this.k=t}function r(e){var r={},n=!1;function o(r,o){return n=!0,o=new Promise((function(t){t(e[r](o))})),{done:!1,value:new t(o,1)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):o("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e;return o("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):o("return",e)}),r}function n(e){var t,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new o(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function o(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return o=function(e){this.s=e,this.n=e.next},o.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new o(e)}function i(e){return new t(e,0)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h="suspendedStart",d="executing",v="completed",y={};function m(){}function b(){}function g(){}var w={};f(w,a,(function(){return this}));var E=Object.getPrototypeOf,O=E&&E(E(L([])));O&&O!==r&&n.call(O,a)&&(w=O);var S=g.prototype=m.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,s){var u=p(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var o=h;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=j(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var c=p(t,r,n);if("normal"===c.type){if(o=n.done?v:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function j(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=g,o(S,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:b,configurable:!0}),b.displayName=f(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,f(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(R.prototype),f(R.prototype,s,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new R(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(S),f(S,c,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function l(t){return function(){return new e(t.apply(this,arguments))}}function p(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,s,"next",e)}function s(e){p(i,n,o,a,s,"throw",e)}a(void 0)}))}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){return function(){return e.apply(t,arguments)}}e.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},e.prototype.next=function(e){return this._invoke("next",e)},e.prototype.throw=function(e){return this._invoke("throw",e)},e.prototype.return=function(e){return this._invoke("return",e)};var S,x=Object.prototype.toString,R=Object.getPrototypeOf,k=Symbol.iterator,j=Symbol.toStringTag,T=(S=Object.create(null),function(e){var t=x.call(e);return S[t]||(S[t]=t.slice(8,-1).toLowerCase())}),A=function(e){return e=e.toLowerCase(),function(t){return T(t)===e}},P=function(e){return function(t){return f(t)===e}},L=Array.isArray,N=P("undefined");function _(e){return null!==e&&!N(e)&&null!==e.constructor&&!N(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var C=A("ArrayBuffer");var U=P("string"),F=P("function"),B=P("number"),D=function(e){return null!==e&&"object"===f(e)},I=function(e){if("object"!==T(e))return!1;var t=R(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||j in e||k in e)},q=A("Date"),M=A("File"),z=A("Blob"),H=A("FileList"),J=A("URLSearchParams"),W=b(["ReadableStream","Request","Response","Headers"].map(A),4),K=W[0],V=W[1],G=W[2],X=W[3];function $(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.allOwnKeys,a=void 0!==i&&i;if(null!=e)if("object"!==f(e)&&(e=[e]),L(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(_(e))return;var s,u=a?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(r=0;r<c;r++)s=u[r],t.call(null,e[s],s,e)}}function Y(e,t){if(_(e))return null;t=t.toLowerCase();for(var r,n=Object.keys(e),o=n.length;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}var Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Z=function(e){return!N(e)&&e!==Q};var ee,te=(ee="undefined"!=typeof Uint8Array&&R(Uint8Array),function(e){return ee&&e instanceof ee}),re=A("HTMLFormElement"),ne=function(e){var t=Object.prototype.hasOwnProperty;return function(e,r){return t.call(e,r)}}(),oe=A("RegExp"),ie=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};$(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};var ae,se,ue,ce,fe=A("AsyncFunction"),le=(ae="function"==typeof setImmediate,se=F(Q.postMessage),ae?setImmediate:se?(ue="axios@".concat(Math.random()),ce=[],Q.addEventListener("message",(function(e){var t=e.source,r=e.data;t===Q&&r===ue&&ce.length&&ce.shift()()}),!1),function(e){ce.push(e),Q.postMessage(ue,"*")}):function(e){return setTimeout(e)}),pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Q):"undefined"!=typeof process&&process.nextTick||le,he={isArray:L,isArrayBuffer:C,isBuffer:_,isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||F(e.append)&&("formdata"===(t=T(e))||"object"===t&&F(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer)},isString:U,isNumber:B,isBoolean:function(e){return!0===e||!1===e},isObject:D,isPlainObject:I,isEmptyObject:function(e){if(!D(e)||_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:K,isRequest:V,isResponse:G,isHeaders:X,isUndefined:N,isDate:q,isFile:M,isBlob:z,isRegExp:oe,isFunction:F,isStream:function(e){return D(e)&&F(e.pipe)},isURLSearchParams:J,isTypedArray:te,isFileList:H,forEach:$,merge:function e(){for(var t=Z(this)&&this||{},r=t.caseless,n=t.skipUndefined,o={},i=function(t,i){var a=r&&Y(o,i)||i;I(o[a])&&I(t)?o[a]=e(o[a],t):I(t)?o[a]=e({},t):L(t)?o[a]=t.slice():n&&N(t)||(o[a]=t)},a=0,s=arguments.length;a<s;a++)arguments[a]&&$(arguments[a],i);return o},extend:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.allOwnKeys;return $(t,(function(t,n){r&&F(t)?e[n]=O(t,r):e[n]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&R(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:A,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(L(e))return e;var t=e.length;if(!B(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[k]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:re,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:ie,freezeMethods:function(e){ie(e,(function(t,r){if(F(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=e[r];F(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return L(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:Y,global:Q,isContextDefined:Z,isSpecCompliantForm:function(e){return!!(e&&F(e.append)&&"FormData"===e[j]&&e[k])},toJSONObject:function(e){var t=new Array(10);return function e(r,n){if(D(r)){if(t.indexOf(r)>=0)return;if(_(r))return r;if(!("toJSON"in r)){t[n]=r;var o=L(r)?[]:{};return $(r,(function(t,r){var i=e(t,n+1);!N(i)&&(o[r]=i)})),t[n]=void 0,o}}return r}(e,0)},isAsyncFn:fe,isThenable:function(e){return e&&(D(e)||F(e))&&F(e.then)&&F(e.catch)},setImmediate:le,asap:pe,isIterable:function(e){return null!=e&&F(e[k])}};function de(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}he.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});var ve=de.prototype,ye={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){ye[e]={value:e}})),Object.defineProperties(de,ye),Object.defineProperty(ve,"isAxiosError",{value:!0}),de.from=function(e,t,r,n,o,i){var a=Object.create(ve);he.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e}));var s=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return de.call(a,s,u,r,n,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function me(e){return he.isPlainObject(e)||he.isArray(e)}function be(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function ge(e,t,r){return e?e.concat(t).map((function(e,t){return e=be(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var we=he.toFlatObject(he,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ee(e,t,r){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var n=(r=he.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!he.isUndefined(t[e])}))).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(he.isBoolean(e))return e.toString();if(!s&&he.isBlob(e))throw new de("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){var s=e;if(e&&!o&&"object"===f(e))if(he.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(me)}(e)||(he.isFileList(e)||he.endsWith(r,"[]"))&&(s=he.toArray(e)))return r=be(r),s.forEach((function(e,n){!he.isUndefined(e)&&null!==e&&t.append(!0===a?ge([r],n,i):null===a?r:r+"[]",u(e))})),!1;return!!me(e)||(t.append(ge(o,r,i),u(e)),!1)}var l=[],p=Object.assign(we,{defaultVisitor:c,convertValue:u,isVisitable:me});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!he.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),he.forEach(r,(function(r,i){!0===(!(he.isUndefined(r)||null===r)&&o.call(t,r,he.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Oe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Se(e,t){this._pairs=[],e&&Ee(e,this,t)}var xe=Se.prototype;function Re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ke(e,t,r){if(!t)return e;var n=r&&r.encode||Re;he.isFunction(r)&&(r={serialize:r});var o,i=r&&r.serialize;if(o=i?i(t,r):he.isURLSearchParams(t)?t.toString():new Se(t,r).toString(n)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}xe.append=function(e,t){this._pairs.push([e,t])},xe.toString=function(e){var t=e?function(t){return e.call(this,t,Oe)}:Oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var je=function(){function e(){d(this,e),this.handlers=[]}return y(e,[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){he.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ae={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Pe="undefined"!=typeof window&&"undefined"!=typeof document,Le="object"===("undefined"==typeof navigator?"undefined":f(navigator))&&navigator||void 0,Ne=Pe&&(!Le||["ReactNative","NativeScript","NS"].indexOf(Le.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ce=Pe&&window.location.href||"http://localhost",Ue=s(s({},Object.freeze({__proto__:null,hasBrowserEnv:Pe,hasStandardBrowserWebWorkerEnv:_e,hasStandardBrowserEnv:Ne,navigator:Le,origin:Ce})),Ae);function Fe(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&he.isArray(n)?n.length:i,s?(he.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&he.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&he.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!a)}if(he.isFormData(e)&&he.isFunction(e.entries)){var r={};return he.forEachEntry(e,(function(e,n){t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var Be={transitional:Te,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=he.isObject(e);if(i&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return o?JSON.stringify(Fe(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ee(e,new Ue.classes.URLSearchParams,s({visitor:function(e,t,r,n){return Ue.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Ee(r?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Be.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(o){if("SyntaxError"===e.name)throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],(function(e){Be.headers[e]={}}));var De=Be,Ie=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qe=Symbol("internals");function Me(e){return e&&String(e).trim().toLowerCase()}function ze(e){return!1===e||null==e?e:he.isArray(e)?e.map(ze):String(e)}function He(e,t,r,n,o){return he.isFunction(n)?n.call(this,t,r):(o&&(t=r),he.isString(t)?he.isString(n)?-1!==t.indexOf(n):he.isRegExp(n)?n.test(t):void 0:void 0)}var Je=function(e,t){function r(e){d(this,r),e&&this.set(e)}return y(r,[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=Me(t);if(!o)throw new Error("header name must be a non-empty string");var i=he.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ze(e))}var i=function(e,t){return he.forEach(e,(function(e,r){return o(e,r,t)}))};if(he.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(he.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(function(e){var t,r,n,o={};return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&Ie[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)})),o}(e),t);else if(he.isObject(e)&&he.isIterable(e)){var a,s,u,c={},f=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(e);try{for(f.s();!(u=f.n()).done;){var l=u.value;if(!he.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[s=l[0]]=(a=c[s])?he.isArray(a)?[].concat(g(a),[l[1]]):[a,l[1]]:l[1]}}catch(e){f.e(e)}finally{f.f()}i(c,t)}else null!=e&&o(t,e,r);return this}},{key:"get",value:function(e,t){if(e=Me(e)){var r=he.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(he.isFunction(t))return t.call(this,n,r);if(he.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Me(e)){var r=he.findKey(this,e);return!(!r||void 0===this[r]||t&&!He(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=Me(e)){var o=he.findKey(r,e);!o||t&&!He(0,r[o],o,t)||(delete r[o],n=!0)}}return he.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!He(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return he.forEach(this,(function(n,o){var i=he.findKey(r,o);if(i)return t[i]=ze(n),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ze(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=this.constructor).concat.apply(e,[this].concat(r))}},{key:"toJSON",value:function(e){var t=Object.create(null);return he.forEach(this,(function(r,n){null!=r&&!1!==r&&(t[n]=e&&he.isArray(r)?r.join(", "):r)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=b(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[qe]=this[qe]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=Me(e);t[n]||(!function(e,t){var r=he.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return he.isArray(e)?e.forEach(n):n(e),this}}]),r}();Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Je.prototype,(function(e,t){var r=e.value,n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}})),he.freezeMethods(Je);var We=Je;function Ke(e,t){var r=this||De,n=t||r,o=We.from(n.headers),i=n.data;return he.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ve(e){return!(!e||!e.__CANCEL__)}function Ge(e,t,r){de.call(this,null==e?"canceled":e,de.ERR_CANCELED,t,r),this.name="CanceledError"}function Xe(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new de("Request failed with status code "+r.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function $e(e,t){e=e||10;var r,n=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];r||(r=u),n[i]=s,o[i]=u;for(var f=a,l=0;f!==i;)l+=n[f++],f%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-r<t)){var p=c&&u-c;return p?Math.round(1e3*l/p):void 0}}}function Ye(e,t){var r,n,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(void 0,g(t))};return[function(){for(var e=Date.now(),t=e-o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=i?a(u,e):(r=u,n||(n=setTimeout((function(){n=null,a(r)}),i-t)))},function(){return r&&a(r)}]}he.inherits(Ge,de,{__CANCEL__:!0});var Qe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0,o=$e(50,250);return Ye((function(r){var i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,u=o(s);n=i;var c=m({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:r,lengthComputable:null!=a},t?"download":"upload",!0);e(c)}),r)},Ze=function(e,t){var r=null!=e;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]},et=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return he.asap((function(){return e.apply(void 0,r)}))}},tt=Ue.hasStandardBrowserEnv?function(e,t){return function(r){return r=new URL(r,Ue.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):function(){return!0},rt=Ue.hasStandardBrowserEnv?{write:function(e,t,r,n,o,i){var a=[e+"="+encodeURIComponent(t)];he.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),he.isString(n)&&a.push("path="+n),he.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function nt(e,t,r){var n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ot=function(e){return e instanceof We?s({},e):e};function it(e,t){t=t||{};var r={};function n(e,t,r,n){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:n},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function o(e,t,r,o){return he.isUndefined(t)?he.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!he.isUndefined(t))return n(void 0,t)}function a(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function u(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(e,t,r){return o(ot(e),ot(t),0,!0)}};return he.forEach(Object.keys(s(s({},e),t)),(function(n){var i=c[n]||o,a=i(e[n],t[n],n);he.isUndefined(a)&&i!==u||(r[n]=a)})),r}var at,st=function(e){var t=it({},e),r=t.data,n=t.withXSRFToken,o=t.xsrfHeaderName,i=t.xsrfCookieName,a=t.headers,s=t.auth;if(t.headers=a=We.from(a),t.url=ke(nt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),he.isFormData(r))if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(he.isFunction(r.getHeaders)){var u=r.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach((function(e){var t=b(e,2),r=t[0],n=t[1];c.includes(r.toLowerCase())&&a.set(r,n)}))}if(Ue.hasStandardBrowserEnv&&(n&&he.isFunction(n)&&(n=n(t)),n||!1!==n&&tt(t.url))){var f=o&&i&&rt.read(i);f&&a.set(o,f)}return t},ut="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){var n,o,i,a,s,u=st(e),c=u.data,f=We.from(u.headers).normalize(),l=u.responseType,p=u.onUploadProgress,h=u.onDownloadProgress;function d(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}var v=new XMLHttpRequest;function y(){if(v){var n=We.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Xe((function(e){t(e),d()}),(function(e){r(e),d()}),{data:l&&"text"!==l&&"json"!==l?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v}),v=null}}if(v.open(u.method.toUpperCase(),u.url,!0),v.timeout=u.timeout,"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(y)},v.onabort=function(){v&&(r(new de("Request aborted",de.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){var n=new de(t&&t.message?t.message:"Network Error",de.ERR_NETWORK,e,v);n.event=t||null,r(n),v=null},v.ontimeout=function(){var t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||Te;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new de(t,n.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,v)),v=null},void 0===c&&f.setContentType(null),"setRequestHeader"in v&&he.forEach(f.toJSON(),(function(e,t){v.setRequestHeader(t,e)})),he.isUndefined(u.withCredentials)||(v.withCredentials=!!u.withCredentials),l&&"json"!==l&&(v.responseType=u.responseType),h){var m=b(Qe(h,!0),2);i=m[0],s=m[1],v.addEventListener("progress",i)}if(p&&v.upload){var g=b(Qe(p),2);o=g[0],a=g[1],v.upload.addEventListener("progress",o),v.upload.addEventListener("loadend",a)}(u.cancelToken||u.signal)&&(n=function(t){v&&(r(!t||t.type?new Ge(null,e,v):t),v.abort(),v=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));var w,E,O=(w=u.url,(E=/^([-+\w]{1,25})(:?\/\/|:)/.exec(w))&&E[1]||"");O&&-1===Ue.protocols.indexOf(O)?r(new de("Unsupported protocol "+O+":",de.ERR_BAD_REQUEST,e)):v.send(c||null)}))},ct=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n,o=new AbortController,i=function(e){if(!n){n=!0,s();var t=e instanceof Error?e:this.reason;o.abort(t instanceof de?t:new Ge(t instanceof Error?t.message:t))}},a=t&&setTimeout((function(){a=null,i(new de("timeout ".concat(t," of ms exceeded"),de.ETIMEDOUT))}),t),s=function(){e&&(a&&clearTimeout(a),a=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",i)}));var u=o.signal;return u.unsubscribe=function(){return he.asap(s)},u}},ft=u().mark((function e(t,r){var n,o,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.byteLength,r&&!(n<r)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<n)){e.next=13;break}return i=o+r,e.next=10,t.slice(o,i);case 10:o=i,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),lt=function(){var e=l(u().mark((function e(t,o){var a,s,c,f,l,p;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=!1,s=!1,e.prev=2,f=n(pt(t));case 4:return e.next=6,i(f.next());case 6:if(!(a=!(l=e.sent).done)){e.next=12;break}return p=l.value,e.delegateYield(r(n(ft(p,o))),"t0",9);case 9:a=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),s=!0,c=e.t1;case 18:if(e.prev=18,e.prev=19,!a||null==f.return){e.next=23;break}return e.next=23,i(f.return());case 23:if(e.prev=23,!s){e.next=26;break}throw c;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,r){return e.apply(this,arguments)}}(),pt=function(){var e=l(u().mark((function e(t){var o,a,s,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(r(n(t)),"t0",2);case 2:return e.abrupt("return");case 3:o=t.getReader(),e.prev=4;case 5:return e.next=7,i(o.read());case 7:if(a=e.sent,s=a.done,c=a.value,!s){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,c;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,i(o.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),ht=function(e,t,r,n){var o,i=lt(e,t),a=0,s=function(e){o||(o=!0,n&&n(e))};return new ReadableStream({pull:function(e){return h(u().mark((function t(){var n,o,c,f,l;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:if(n=t.sent,o=n.done,c=n.value,!o){t.next=10;break}return s(),e.close(),t.abrupt("return");case 10:f=c.byteLength,r&&(l=a+=f,r(l)),e.enqueue(new Uint8Array(c)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),s(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return s(e),i.return()}},{highWaterMark:2})},dt=he.isFunction,vt={Request:(at=he.global).Request,Response:at.Response},yt=he.global,mt=yt.ReadableStream,bt=yt.TextEncoder,gt=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e.apply(void 0,r)}catch(e){return!1}},wt=function(e){var t=e=he.merge.call({skipUndefined:!0},vt,e),r=t.fetch,n=t.Request,o=t.Response,i=r?dt(r):"function"==typeof fetch,a=dt(n),c=dt(o);if(!i)return!1;var f,l=i&&dt(mt),p=i&&("function"==typeof bt?(f=new bt,function(e){return f.encode(e)}):function(){var e=h(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new n(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),d=a&&l&>((function(){var e=!1,t=new n(Ue.origin,{body:new mt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),v=c&&l&>((function(){return he.isReadableStream(new o("").body)})),y={stream:v&&function(e){return e.body}};i&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!y[e]&&(y[e]=function(t,r){var n=t&&t[e];if(n)return n.call(t);throw new de("Response type '".concat(e,"' is not supported"),de.ERR_NOT_SUPPORT,r)})}));var m=function(){var e=h(u().mark((function e(t){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!he.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!he.isSpecCompliantForm(t)){e.next=9;break}return r=new n(Ue.origin,{method:"POST",body:t}),e.next=8,r.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!he.isArrayBufferView(t)&&!he.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(he.isURLSearchParams(t)&&(t+=""),!he.isString(t)){e.next=16;break}return e.next=15,p(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=h(u().mark((function e(t,r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=he.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==n?m(r):n);case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();return function(){var e=h(u().mark((function e(t){var i,c,f,l,p,h,m,w,E,O,S,x,R,k,j,T,A,P,L,N,_,C,U,F,B,D,I,q,M,z,H,J,W,K,V,G;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=st(t),c=i.url,f=i.method,l=i.data,p=i.signal,h=i.cancelToken,m=i.timeout,w=i.onDownloadProgress,E=i.onUploadProgress,O=i.responseType,S=i.headers,x=i.withCredentials,R=void 0===x?"same-origin":x,k=i.fetchOptions,j=r||fetch,O=O?(O+"").toLowerCase():"text",T=ct([p,h&&h.toAbortSignal()],m),A=null,P=T&&T.unsubscribe&&function(){T.unsubscribe()},e.prev=6,e.t0=E&&d&&"get"!==f&&"head"!==f,!e.t0){e.next=13;break}return e.next=11,g(S,l);case 11:e.t1=L=e.sent,e.t0=0!==e.t1;case 13:if(!e.t0){e.next=17;break}N=new n(c,{method:"POST",body:l,duplex:"half"}),he.isFormData(l)&&(_=N.headers.get("content-type"))&&S.setContentType(_),N.body&&(C=Ze(L,Qe(et(E))),U=b(C,2),F=U[0],B=U[1],l=ht(N.body,65536,F,B));case 17:return he.isString(R)||(R=R?"include":"omit"),D=a&&"credentials"in n.prototype,I=s(s({},k),{},{signal:T,method:f.toUpperCase(),headers:S.normalize().toJSON(),body:l,duplex:"half",credentials:D?R:void 0}),A=a&&new n(c,I),e.next=23,a?j(A,k):j(c,I);case 23:return q=e.sent,M=v&&("stream"===O||"response"===O),v&&(w||M&&P)&&(z={},["status","statusText","headers"].forEach((function(e){z[e]=q[e]})),H=he.toFiniteNumber(q.headers.get("content-length")),J=w&&Ze(H,Qe(et(w),!0))||[],W=b(J,2),K=W[0],V=W[1],q=new o(ht(q.body,65536,K,(function(){V&&V(),P&&P()})),z)),O=O||"text",e.next=29,y[he.findKey(y,O)||"text"](q,t);case 29:return G=e.sent,!M&&P&&P(),e.next=33,new Promise((function(e,r){Xe(e,r,{data:G,headers:We.from(q.headers),status:q.status,statusText:q.statusText,config:t,request:A})}));case 33:return e.abrupt("return",e.sent);case 36:if(e.prev=36,e.t2=e.catch(6),P&&P(),!e.t2||"TypeError"!==e.t2.name||!/Load failed|fetch/i.test(e.t2.message)){e.next=41;break}throw Object.assign(new de("Network Error",de.ERR_NETWORK,t,A),{cause:e.t2.cause||e.t2});case 41:throw de.from(e.t2,e.t2&&e.t2.code,t,A);case 42:case"end":return e.stop()}}),e,null,[[6,36]])})));return function(t){return e.apply(this,arguments)}}()},Et=new Map,Ot=function(e){for(var t,r,n=e?e.env:{},o=n.fetch,i=[n.Request,n.Response,o],a=i.length,s=Et;a--;)t=i[a],void 0===(r=s.get(t))&&s.set(t,r=a?new Map:wt(n)),s=r;return r};Ot();var St={http:null,xhr:ut,fetch:{get:Ot}};he.forEach(St,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var xt=function(e){return"- ".concat(e)},Rt=function(e){return he.isFunction(e)||null===e||!1===e},kt=function(e,t){for(var r,n,o=(e=he.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s=void 0;if(n=r=e[a],!Rt(r)&&void 0===(n=St[(s=String(r)).toLowerCase()]))throw new de("Unknown adapter '".concat(s,"'"));if(n&&(he.isFunction(n)||(n=n.get(t))))break;i[s||"#"+a]=n}if(!n){var u=Object.entries(i).map((function(e){var t=b(e,2),r=t[0],n=t[1];return"adapter ".concat(r," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));throw new de("There is no suitable adapter to dispatch the request "+(o?u.length>1?"since :\n"+u.map(xt).join("\n"):" "+xt(u[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function jt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function Tt(e){return jt(e),e.headers=We.from(e.headers),e.data=Ke.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kt(e.adapter||De.adapter,e)(e).then((function(t){return jt(e),t.data=Ke.call(e,e.transformResponse,t),t.headers=We.from(t.headers),t}),(function(t){return Ve(t)||(jt(e),t&&t.response&&(t.response.data=Ke.call(e,e.transformResponse,t.response),t.response.headers=We.from(t.response.headers))),Promise.reject(t)}))}var At="1.12.2",Pt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Pt[e]=function(r){return f(r)===e||"a"+(t<1?"n ":" ")+e}}));var Lt={};Pt.transitional=function(e,t,r){function n(e,t){return"[Axios v1.12.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new de(n(o," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!Lt[o]&&(Lt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},Pt.spelling=function(e){return function(t,r){return console.warn("".concat(r," is likely a misspelling of ").concat(e)),!0}};var Nt={assertOptions:function(e,t,r){if("object"!==f(e))throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new de("option "+i+" must be "+u,de.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}},validators:Pt},_t=Nt.validators,Ct=function(){function e(t){d(this,e),this.defaults=t||{},this.interceptors={request:new je,response:new je}}var t;return y(e,[{key:"request",value:(t=h(u().mark((function e(t,r){var n,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,r);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){n={},Error.captureStackTrace?Error.captureStackTrace(n):n=new Error,o=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,r){return t.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=it(this.defaults,t),n=r.transitional,o=r.paramsSerializer,i=r.headers;void 0!==n&&Nt.assertOptions(n,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),null!=o&&(he.isFunction(o)?t.paramsSerializer={serialize:o}:Nt.assertOptions(o,{encode:_t.function,serialize:_t.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Nt.assertOptions(t,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&he.merge(i.common,i[t.method]);i&&he.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=We.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,p=0;if(!u){var h=[Tt.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,f),l=h.length,c=Promise.resolve(t);p<l;)c=c.then(h[p++],h[p++]);return c}l=s.length;for(var d=t;p<l;){var v=s[p++],y=s[p++];try{d=v(d)}catch(e){y.call(this,e);break}}try{c=Tt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=f.length;p<l;)c=c.then(f[p++],f[p++]);return c}},{key:"getUri",value:function(e){return ke(nt((e=it(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]),e}();he.forEach(["delete","get","head","options"],(function(e){Ct.prototype[e]=function(t,r){return this.request(it(r||{},{method:e,url:t,data:(r||{}).data}))}})),he.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(it(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[e+"Form"]=t(!0)}));var Ut=Ct,Ft=function(){function e(t){if(d(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new Ge(e,t,o),r(n.reason))}))}return y(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,r=function(e){t.abort(e)};return this.subscribe(r),t.signal.unsubscribe=function(){return e.unsubscribe(r)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),Bt=Ft;var Dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dt).forEach((function(e){var t=b(e,2),r=t[0],n=t[1];Dt[n]=r}));var It=Dt;var qt=function e(t){var r=new Ut(t),n=O(Ut.prototype.request,r);return he.extend(n,Ut.prototype,r,{allOwnKeys:!0}),he.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(it(t,r))},n}(De);return qt.Axios=Ut,qt.CanceledError=Ge,qt.CancelToken=Bt,qt.isCancel=Ve,qt.VERSION=At,qt.toFormData=Ee,qt.AxiosError=de,qt.Cancel=qt.CanceledError,qt.all=function(e){return Promise.all(e)},qt.spread=function(e){return function(t){return e.apply(null,t)}},qt.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},qt.mergeConfig=it,qt.AxiosHeaders=We,qt.formToJSON=function(e){return Fe(he.isHTMLForm(e)?new FormData(e):e)},qt.getAdapter=kt,qt.HttpStatusCode=It,qt.default=qt,qt}));
|
| 3 |
+
//# sourceMappingURL=axios.min.js.map
|
node_modules/axios/dist/axios.min.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/browser/axios.cjs
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/browser/axios.cjs.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/esm/axios.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/esm/axios.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/esm/axios.min.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
| 2 |
+
function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:r,toStringTag:o}=Symbol,s=(i=Object.create(null),e=>{const n=t.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,u=c("undefined");function f(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const h=c("string"),p=c("function"),m=c("number"),b=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||r in e)},g=a("Date"),w=a("File"),E=a("Blob"),O=a("FileList"),R=a("URLSearchParams"),[S,T,A,v]=["ReadableStream","Request","Response","Headers"].map(a);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(f(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function C(e,t){if(f(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=e=>!u(e)&&e!==j;const U=(P="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>P&&e instanceof P);var P;const F=a("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=a("RegExp"),k=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)};const B=a("AsyncFunction"),D=(q="function"==typeof setImmediate,M=p(j.postMessage),q?setImmediate:M?(I=`axios@${Math.random()}`,z=[],j.addEventListener("message",(({source:e,data:t})=>{e===j&&t===I&&z.length&&z.shift()()}),!1),e=>{z.push(e),j.postMessage(I,"*")}):e=>setTimeout(e));var q,M,I,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||D,J={isArray:l,isArrayBuffer:d,isBuffer:f,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=s(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:h,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:y,isEmptyObject:e=>{if(!b(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:T,isResponse:A,isHeaders:v,isUndefined:u,isDate:g,isFile:w,isBlob:E,isRegExp:L,isFunction:p,isStream:e=>b(e)&&p(e.pipe),isURLSearchParams:R,isTypedArray:U,isFileList:O,forEach:x,merge:function e(){const{caseless:t,skipUndefined:n}=N(this)&&this||{},r={},o=(o,s)=>{const i=t&&C(r,s)||s;y(r[i])&&y(o)?r[i]=e(r[i],o):y(o)?r[i]=e({},o):l(o)?r[i]=o.slice():n&&u(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],o);return r},extend:(t,n,r,{allOwnKeys:o}={})=>(x(n,((n,o)=>{r&&p(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[r]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,n)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];p(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:C,global:j,isContextDefined:N,isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[o]&&e[r])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return x(e,((e,t)=>{const s=n(e,r+1);!u(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(b(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:D,asap:H,isIterable:e=>null!=e&&p(e[r])};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const K=W.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{V[e]={value:e}})),Object.defineProperties(W,V),Object.defineProperty(K,"isAxiosError",{value:!0}),W.from=(e,t,n,r,o,s)=>{const i=Object.create(K);J.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return W.call(i,a,c,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};function $(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=X(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Q=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!a&&J.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some($)}(e)||(J.isFileList(e)||J.endsWith(n,"[]"))&&(a=J.toArray(e)))return n=X(n),a.forEach((function(e,r){!J.isUndefined(e)&&null!==e&&t.append(!0===i?G([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!$(e)||(t.append(G(o,n,s),c(e)),!1)}const u=[],f=Object.assign(Q,{defaultVisitor:l,convertValue:c,isVisitable:$});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!J.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),J.forEach(n,(function(n,s){!0===(!(J.isUndefined(n)||null===n)&&o.call(t,n,J.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function re(e,t,n){if(!t)return e;const r=n&&n.encode||ne;J.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):J.isURLSearchParams(t)?t.toString():new ee(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const oe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ae="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,le=ae&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ae&&window.location.href||"http://localhost",de={...Object.freeze({__proto__:null,hasBrowserEnv:ae,hasStandardBrowserWebWorkerEnv:ue,hasStandardBrowserEnv:le,navigator:ce,origin:fe}),...ie};function he(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(r)?r.length:s,a)return J.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&J.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&J.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,((e,r)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const pe={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return r?JSON.stringify(he(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,n,r){return de.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{pe.headers[e]={}}));const me=pe,be=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ye=Symbol("internals");function ge(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:J.isArray(e)?e.map(we):String(e)}function Ee(e,t,n,r,o){return J.isFunction(r)?r.call(this,t,n):(o&&(t=n),J.isString(t)?J.isString(r)?-1!==t.indexOf(r):J.isRegExp(r)?r.test(t):void 0:void 0)}class Oe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ge(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=we(e))}const s=(e,t)=>J.forEach(e,((e,n)=>o(e,n,t)));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&be[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(J.isObject(e)&&J.isIterable(e)){let n,r,o={};for(const t of e){if(!J.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?J.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ge(e)){const n=J.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ge(e)){const n=J.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ee(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ge(e)){const o=J.findKey(n,e);!o||t&&!Ee(0,n[o],o,t)||(delete n[o],r=!0)}}return J.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ee(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return J.forEach(this,((r,o)=>{const s=J.findKey(n,o);if(s)return t[s]=we(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=we(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&J.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ye]=this[ye]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ge(e);t[r]||(!function(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Oe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),J.freezeMethods(Oe);const Re=Oe;function Se(e,t){const n=this||me,r=t||n,o=Re.from(r.headers);let s=r.data;return J.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Te(e){return!(!e||!e.__CANCEL__)}function Ae(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}function ve(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}J.inherits(Ae,W,{__CANCEL__:!0});const xe=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Ce=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},je=e=>(...t)=>J.asap((()=>e(...t))),Ne=de.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,de.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Ue=de.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),J.isString(r)&&i.push("path="+r),J.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Pe(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fe=e=>e instanceof Re?{...e}:e;function _e(e,t){t=t||{};const n={};function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,n,o){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!J.isUndefined(t))return r(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(Fe(e),Fe(t),0,!0)};return J.forEach(Object.keys({...e,...t}),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);J.isUndefined(i)&&s!==a||(n[r]=i)})),n}const Le=e=>{const t=_e({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Re.from(i),t.url=re(Pe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),J.isFormData(n))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)}))}if(de.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||!1!==r&&Ne(t.url))){const e=o&&s&&Ue.read(s);e&&i.set(o,e)}return t},ke="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Le(e);let o=r.data;const s=Re.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Re.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ve((function(e){t(e),p()}),(function(e){n(e),p()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new W(t&&t.message?t.message:"Network Error",W.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||se;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&J.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),J.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),h&&([c,u]=xe(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=xe(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ae(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===de.protocols.indexOf(y)?n(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Be=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof W?t:new Ae(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>J.asap(i),a}},De=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},qe=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Me=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of qe(e))yield*De(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Ie}=J,ze=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:He,TextEncoder:Je}=J.global,We=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=e=>{e=J.merge.call({skipUndefined:!0},ze,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ie(t):"function"==typeof fetch,s=Ie(n),i=Ie(r);if(!o)return!1;const a=o&&Ie(He),c=o&&("function"==typeof Je?(l=new Je,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&We((()=>{let e=!1;const t=new n(de.origin,{body:new He,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),f=i&&a&&We((()=>J.isReadableStream(new r("").body))),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})}));const h=async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new n(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:l,timeout:p,onDownloadProgress:m,onUploadProgress:b,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:E}=Le(e),O=t||fetch;y=y?(y+"").toLowerCase():"text";let R=Be([c,l&&l.toAbortSignal()],p),S=null;const T=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let A;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(A=await h(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(J.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=Ce(A,xe(je(b)));a=Me(t.body,65536,e,n)}}J.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,c={...E,signal:R,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,c);let l=await(s?O(S,E):O(o,c));const p=f&&("stream"===y||"response"===y);if(f&&(m||p&&T)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=l[t]}));const t=J.toFiniteNumber(l.headers.get("content-length")),[n,o]=m&&Ce(t,xe(je(m),!0))||[];l=new r(Me(l.body,65536,n,(()=>{o&&o(),T&&T()})),e)}y=y||"text";let v=await d[J.findKey(d,y)||"text"](l,e);return!p&&T&&T(),await new Promise(((t,n)=>{ve(t,n,{data:v,headers:Re.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S})}))}catch(t){if(T&&T(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,S),{cause:t.cause||t});throw W.from(t,t&&t.code,e,S)}}},Ve=new Map,$e=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=Ve;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Ke(t)),l=a;return a};$e();const Xe={http:null,xhr:ke,fetch:{get:$e}};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ge=e=>`- ${e}`,Qe=e=>J.isFunction(e)||null===e||!1===e,Ze=(e,t)=>{e=J.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Qe(r)&&(o=Xe[(n=String(r)).toLowerCase()],void 0===o))throw new W(`Unknown adapter '${n}'`);if(o&&(J.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new W("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Ge).join("\n"):" "+Ge(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function Ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function et(e){Ye(e),e.headers=Re.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ze(e.adapter||me.adapter,e)(e).then((function(t){return Ye(e),t.data=Se.call(e,e.transformResponse,t),t.headers=Re.from(t.headers),t}),(function(t){return Te(t)||(Ye(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=Re.from(t.response.headers))),Promise.reject(t)}))}const tt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{tt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const nt={};tt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.12.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new W(r(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!nt[o]&&(nt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},tt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const rt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new W("option "+s+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}},validators:tt},ot=rt.validators;class st{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=_e(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&rt.assertOptions(n,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean)},!1),null!=r&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:rt.assertOptions(r,{encode:ot.function,serialize:ot.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rt.assertOptions(t,{baseUrl:ot.spelling("baseURL"),withXsrfToken:ot.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&J.merge(o.common,o[t.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Re.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!a){const e=[et.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=et.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return re(Pe((e=_e(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){st.prototype[e]=function(t,n){return this.request(_e(n||{},{method:e,url:t,data:(n||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(_e(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)}));const it=st;class at{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ae(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new at((function(t){e=t})),cancel:e}}}const ct=at;const lt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lt).forEach((([e,t])=>{lt[t]=e}));const ut=lt;const ft=function t(n){const r=new it(n),o=e(it.prototype.request,r);return J.extend(o,it.prototype,r,{allOwnKeys:!0}),J.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(_e(n,e))},o}(me);ft.Axios=it,ft.CanceledError=Ae,ft.CancelToken=ct,ft.isCancel=Te,ft.VERSION="1.12.2",ft.toFormData=Z,ft.AxiosError=W,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=_e,ft.AxiosHeaders=Re,ft.formToJSON=e=>he(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=Ze,ft.HttpStatusCode=ut,ft.default=ft;const dt=ft,{Axios:ht,AxiosError:pt,CanceledError:mt,isCancel:bt,CancelToken:yt,VERSION:gt,all:wt,Cancel:Et,isAxiosError:Ot,spread:Rt,toFormData:St,AxiosHeaders:Tt,HttpStatusCode:At,formToJSON:vt,getAdapter:xt,mergeConfig:Ct}=dt;export{ht as Axios,pt as AxiosError,Tt as AxiosHeaders,Et as Cancel,yt as CancelToken,mt as CanceledError,At as HttpStatusCode,gt as VERSION,wt as all,dt as default,vt as formToJSON,xt as getAdapter,Ot as isAxiosError,bt as isCancel,Ct as mergeConfig,Rt as spread,St as toFormData};
|
| 3 |
+
//# sourceMappingURL=axios.min.js.map
|
node_modules/axios/dist/esm/axios.min.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/node/axios.cjs
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
node_modules/axios/dist/node/axios.cjs.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|