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/dist/esm/axios.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.6 Copyright (c) 2023 Matt Zabriskie and contributors
|
2
2
|
function bind(fn, thisArg) {
|
3
3
|
return function wrap() {
|
4
4
|
return fn.apply(thisArg, arguments);
|
@@ -191,12 +191,16 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
191
191
|
* @returns {boolean} True if value is an FormData, otherwise false
|
192
192
|
*/
|
193
193
|
const isFormData = (thing) => {
|
194
|
-
|
194
|
+
let kind;
|
195
195
|
return thing && (
|
196
|
-
(typeof FormData === 'function' && thing instanceof FormData) ||
|
197
|
-
|
198
|
-
|
199
|
-
|
196
|
+
(typeof FormData === 'function' && thing instanceof FormData) || (
|
197
|
+
isFunction(thing.append) && (
|
198
|
+
(kind = kindOf(thing)) === 'formdata' ||
|
199
|
+
// detect form-data instance
|
200
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
201
|
+
)
|
202
|
+
)
|
203
|
+
)
|
200
204
|
};
|
201
205
|
|
202
206
|
/**
|
@@ -2614,7 +2618,7 @@ function mergeConfig$1(config1, config2) {
|
|
2614
2618
|
return config;
|
2615
2619
|
}
|
2616
2620
|
|
2617
|
-
const VERSION$1 = "1.3.
|
2621
|
+
const VERSION$1 = "1.3.6";
|
2618
2622
|
|
2619
2623
|
const validators$1 = {};
|
2620
2624
|
|