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.

@@ -1,4 +1,4 @@
1
- // Axios v1.7.3 Copyright (c) 2024 Matt Zabriskie and contributors
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.3";
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, 'http://localhost');
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:') {