axios 1.0.0 → 1.1.0
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 +19 -0
- package/dist/axios.js +14 -8
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +1 -1
- package/dist/axios.min.js.map +1 -1
- package/dist/esm/axios.js +4 -4
- 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 +18 -7
- package/dist/node/axios.cjs.map +1 -1
- package/index.d.ts +5 -4
- package/lib/adapters/http.js +8 -3
- package/lib/axios.js +11 -3
- package/lib/env/data.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +1 -1
- package/rollup.config.js +2 -2
package/dist/esm/axios.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.
|
1
|
+
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
|
2
2
|
function bind(fn, thisArg) {
|
3
3
|
return function wrap() {
|
4
4
|
return fn.apply(thisArg, arguments);
|
@@ -135,7 +135,7 @@ const isPlainObject = (val) => {
|
|
135
135
|
}
|
136
136
|
|
137
137
|
const prototype = getPrototypeOf(val);
|
138
|
-
return prototype === null || prototype === Object.prototype;
|
138
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
139
139
|
};
|
140
140
|
|
141
141
|
/**
|
@@ -2461,7 +2461,7 @@ function mergeConfig(config1, config2) {
|
|
2461
2461
|
return config;
|
2462
2462
|
}
|
2463
2463
|
|
2464
|
-
const VERSION = "1.
|
2464
|
+
const VERSION = "1.1.0";
|
2465
2465
|
|
2466
2466
|
const validators$1 = {};
|
2467
2467
|
|
@@ -2938,5 +2938,5 @@ axios.formToJSON = thing => {
|
|
2938
2938
|
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
2939
2939
|
};
|
2940
2940
|
|
2941
|
-
export { axios as default };
|
2941
|
+
export { Axios, AxiosError, AxiosHeaders, CanceledError, axios as default };
|
2942
2942
|
//# sourceMappingURL=axios.js.map
|