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.

@@ -229,7 +229,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
229
229
 
230
230
  // Parse url
231
231
  const fullPath = buildFullPath(config.baseURL, config.url);
232
- const parsed = new URL(fullPath, 'http://localhost');
232
+ const parsed = new URL(fullPath, utils.hasBrowserEnv ? platform.origin : undefined);
233
233
  const protocol = parsed.protocol || supportedProtocols[0];
234
234
 
235
235
  if (protocol === 'data:') {
package/lib/env/data.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.7.3";
1
+ export const VERSION = "1.7.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "index.js",
6
6
  "exports": {