axios 1.7.1 → 1.7.2
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 +11 -0
- package/dist/axios.js +5 -5
- 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 +5 -5
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +5 -5
- 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 +5 -5
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/fetch.js +3 -3
- package/lib/env/data.js +1 -1
- package/package.json +2 -2
package/dist/esm/axios.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.7.
|
1
|
+
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
2
2
|
function bind(fn, thisArg) {
|
3
3
|
return function wrap() {
|
4
4
|
return fn.apply(thisArg, arguments);
|
@@ -2676,11 +2676,11 @@ const fetchProgressDecorator = (total, fn) => {
|
|
2676
2676
|
}));
|
2677
2677
|
};
|
2678
2678
|
|
2679
|
-
const isFetchSupported = typeof fetch
|
2680
|
-
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream
|
2679
|
+
const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
2680
|
+
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
2681
2681
|
|
2682
2682
|
// used only inside the fetch adapter
|
2683
|
-
const encodeText = isFetchSupported && (typeof TextEncoder
|
2683
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
2684
2684
|
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
2685
2685
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
2686
2686
|
);
|
@@ -3030,7 +3030,7 @@ function dispatchRequest(config) {
|
|
3030
3030
|
});
|
3031
3031
|
}
|
3032
3032
|
|
3033
|
-
const VERSION$1 = "1.7.
|
3033
|
+
const VERSION$1 = "1.7.2";
|
3034
3034
|
|
3035
3035
|
const validators$1 = {};
|
3036
3036
|
|