Initialisation du code

This commit is contained in:
2024-01-04 17:34:54 +01:00
parent 8a5ed5a788
commit bfee7c82e5
1487 changed files with 171485 additions and 0 deletions

15
node_modules/axios/lib/helpers/combineURLs.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
/**
* Creates a new URL by combining the specified URLs
*
* @param {string} baseURL The base URL
* @param {string} relativeURL The relative URL
*
* @returns {string} The combined URL
*/
export default function combineURLs(baseURL, relativeURL) {
return relativeURL
? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
: baseURL;
}