axios 1.6.2 → 1.6.3

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.3 Copyright (c) 2023 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -1998,7 +1998,7 @@ function isAbsoluteURL(url) {
1998
1998
  */
1999
1999
  function combineURLs(baseURL, relativeURL) {
2000
2000
  return relativeURL
2001
- ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2001
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2002
2002
  : baseURL;
2003
2003
  }
2004
2004
 
@@ -2019,7 +2019,7 @@ function buildFullPath(baseURL, requestedURL) {
2019
2019
  return requestedURL;
2020
2020
  }
2021
2021
 
2022
- const VERSION = "1.6.2";
2022
+ const VERSION = "1.6.3";
2023
2023
 
2024
2024
  function parseProtocol(url) {
2025
2025
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);