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/node/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.7.
|
1
|
+
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
const FormData$1 = require('form-data');
|
@@ -2035,7 +2035,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
2035
2035
|
return requestedURL;
|
2036
2036
|
}
|
2037
2037
|
|
2038
|
-
const VERSION = "1.7.
|
2038
|
+
const VERSION = "1.7.2";
|
2039
2039
|
|
2040
2040
|
function parseProtocol(url) {
|
2041
2041
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
@@ -3747,11 +3747,11 @@ const fetchProgressDecorator = (total, fn) => {
|
|
3747
3747
|
}));
|
3748
3748
|
};
|
3749
3749
|
|
3750
|
-
const isFetchSupported = typeof fetch
|
3751
|
-
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream
|
3750
|
+
const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
3751
|
+
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
3752
3752
|
|
3753
3753
|
// used only inside the fetch adapter
|
3754
|
-
const encodeText = isFetchSupported && (typeof TextEncoder
|
3754
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
3755
3755
|
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
3756
3756
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
3757
3757
|
);
|