axios 1.6.2 → 1.6.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.6.2 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.6.4 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -1368,6 +1368,9 @@ function arrayToObject(arr) {
1368
1368
  function formDataToJSON(formData) {
1369
1369
  function buildPath(path, value, target, index) {
1370
1370
  let name = path[index++];
1371
+
1372
+ if (name === '__proto__') return true;
1373
+
1371
1374
  const isNumericKey = Number.isFinite(+name);
1372
1375
  const isLast = index >= path.length;
1373
1376
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -1998,7 +2001,7 @@ function isAbsoluteURL(url) {
1998
2001
  */
1999
2002
  function combineURLs(baseURL, relativeURL) {
2000
2003
  return relativeURL
2001
- ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2004
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2002
2005
  : baseURL;
2003
2006
  }
2004
2007
 
@@ -2019,7 +2022,7 @@ function buildFullPath(baseURL, requestedURL) {
2019
2022
  return requestedURL;
2020
2023
  }
2021
2024
 
2022
- const VERSION = "1.6.2";
2025
+ const VERSION = "1.6.4";
2023
2026
 
2024
2027
  function parseProtocol(url) {
2025
2028
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);