axios 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of axios might be problematic. Click here for more details.
- package/CHANGELOG.md +13 -0
- package/dist/axios.js +6 -4
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +1 -1
- package/dist/axios.min.js.map +1 -1
- package/dist/browser/axios.cjs +11 -7
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +11 -7
- package/dist/esm/axios.js.map +1 -1
- package/dist/esm/axios.min.js +1 -1
- package/dist/esm/axios.min.js.map +1 -1
- package/dist/node/axios.cjs +11 -7
- package/dist/node/axios.cjs.map +1 -1
- package/index.d.cts +1 -0
- package/index.d.ts +1 -0
- package/lib/env/data.js +1 -1
- package/lib/utils.js +9 -5
- package/package.json +2 -2
package/index.d.cts
CHANGED
@@ -390,6 +390,7 @@ declare namespace axios {
|
|
390
390
|
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
391
391
|
beforeRedirect?: (options: Record<string, any>, responseDetails: {headers: Record<string, string>}) => void;
|
392
392
|
socketPath?: string | null;
|
393
|
+
transport?: any;
|
393
394
|
httpAgent?: any;
|
394
395
|
httpsAgent?: any;
|
395
396
|
proxy?: AxiosProxyConfig | false;
|
package/index.d.ts
CHANGED
@@ -331,6 +331,7 @@ export interface AxiosRequestConfig<D = any> {
|
|
331
331
|
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
332
332
|
beforeRedirect?: (options: Record<string, any>, responseDetails: {headers: Record<string, string>}) => void;
|
333
333
|
socketPath?: string | null;
|
334
|
+
transport?: any;
|
334
335
|
httpAgent?: any;
|
335
336
|
httpsAgent?: any;
|
336
337
|
proxy?: AxiosProxyConfig | false;
|
package/lib/env/data.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = "1.3.
|
1
|
+
export const VERSION = "1.3.6";
|
package/lib/utils.js
CHANGED
@@ -188,12 +188,16 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
188
188
|
* @returns {boolean} True if value is an FormData, otherwise false
|
189
189
|
*/
|
190
190
|
const isFormData = (thing) => {
|
191
|
-
|
191
|
+
let kind;
|
192
192
|
return thing && (
|
193
|
-
(typeof FormData === 'function' && thing instanceof FormData) ||
|
194
|
-
|
195
|
-
|
196
|
-
|
193
|
+
(typeof FormData === 'function' && thing instanceof FormData) || (
|
194
|
+
isFunction(thing.append) && (
|
195
|
+
(kind = kindOf(thing)) === 'formdata' ||
|
196
|
+
// detect form-data instance
|
197
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
198
|
+
)
|
199
|
+
)
|
200
|
+
)
|
197
201
|
}
|
198
202
|
|
199
203
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "axios",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.6",
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
5
5
|
"main": "index.js",
|
6
6
|
"exports": {
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"scripts": {
|
26
26
|
"test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
|
27
27
|
"test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
|
28
|
-
"test:dtslint": "
|
28
|
+
"test:dtslint": "dtslint --localTs node_modules/typescript/lib",
|
29
29
|
"test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
|
30
30
|
"test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
|
31
31
|
"test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
|