axios 1.7.3 → 1.7.4
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 +2 -2
- 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 +2 -2
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +2 -2
- 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 +3 -3
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/http.js +1 -1
- package/lib/env/data.js +1 -1
- package/package.json +1 -1
package/dist/node/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.7.
|
1
|
+
// Axios v1.7.4 Copyright (c) 2024 Matt Zabriskie and contributors
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
const FormData$1 = require('form-data');
|
@@ -2067,7 +2067,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
2067
2067
|
return requestedURL;
|
2068
2068
|
}
|
2069
2069
|
|
2070
|
-
const VERSION = "1.7.
|
2070
|
+
const VERSION = "1.7.4";
|
2071
2071
|
|
2072
2072
|
function parseProtocol(url) {
|
2073
2073
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
@@ -2763,7 +2763,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
2763
2763
|
|
2764
2764
|
// Parse url
|
2765
2765
|
const fullPath = buildFullPath(config.baseURL, config.url);
|
2766
|
-
const parsed = new URL(fullPath,
|
2766
|
+
const parsed = new URL(fullPath, utils$1.hasBrowserEnv ? platform.origin : undefined);
|
2767
2767
|
const protocol = parsed.protocol || supportedProtocols[0];
|
2768
2768
|
|
2769
2769
|
if (protocol === 'data:') {
|