axios 1.3.1 → 1.3.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.

@@ -1,4 +1,4 @@
1
- // Axios v1.3.1 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.3.2 Copyright (c) 2023 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -1948,7 +1948,7 @@ function buildFullPath(baseURL, requestedURL) {
1948
1948
  return requestedURL;
1949
1949
  }
1950
1950
 
1951
- const VERSION = "1.3.1";
1951
+ const VERSION = "1.3.2";
1952
1952
 
1953
1953
  function parseProtocol(url) {
1954
1954
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -2288,7 +2288,7 @@ const readBlob$1 = readBlob;
2288
2288
 
2289
2289
  const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';
2290
2290
 
2291
- const textEncoder = new TextEncoder();
2291
+ const textEncoder = new util.TextEncoder();
2292
2292
 
2293
2293
  const CRLF = '\r\n';
2294
2294
  const CRLF_BYTES = textEncoder.encode(CRLF);
@@ -2577,7 +2577,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2577
2577
 
2578
2578
  // Parse url
2579
2579
  const fullPath = buildFullPath(config.baseURL, config.url);
2580
- const parsed = new URL(fullPath);
2580
+ const parsed = new URL(fullPath, 'http://localhost');
2581
2581
  const protocol = parsed.protocol || supportedProtocols[0];
2582
2582
 
2583
2583
  if (protocol === 'data:') {