Ignore:
Timestamp:
04/01/25 22:58:15 (2 months ago)
Author:
ste08 <sjovanoska@…>
Branches:
master
Children:
8ae59d6
Parents:
3a74959
Message:

Adding review works\!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • node_modules/axios/dist/esm/axios.js

    r3a74959 rff72ad2  
    1 // Axios v1.7.9 Copyright (c) 2024 Matt Zabriskie and contributors
     1/*! Axios v1.8.4 Copyright (c) 2025 Matt Zabriskie and contributors */
    22function bind(fn, thisArg) {
    33  return function wrap() {
     
    604604const toFiniteNumber = (value, defaultValue) => {
    605605  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
    606 };
    607 
    608 const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
    609 
    610 const DIGIT = '0123456789';
    611 
    612 const ALPHABET = {
    613   DIGIT,
    614   ALPHA,
    615   ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
    616 };
    617 
    618 const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
    619   let str = '';
    620   const {length} = alphabet;
    621   while (size--) {
    622     str += alphabet[Math.random() * length|0];
    623   }
    624 
    625   return str;
    626606};
    627607
     
    753733  global: _global,
    754734  isContextDefined,
    755   ALPHABET,
    756   generateString,
    757735  isSpecCompliantForm,
    758736  toJSONObject,
     
    22472225 * @returns {string} The combined full path
    22482226 */
    2249 function buildFullPath(baseURL, requestedURL) {
    2250   if (baseURL && !isAbsoluteURL(requestedURL)) {
     2227function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
     2228  let isRelativeUrl = !isAbsoluteURL(requestedURL);
     2229  if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
    22512230    return combineURLs(baseURL, requestedURL);
    22522231  }
     
    23632342  newConfig.headers = headers = AxiosHeaders$2.from(headers);
    23642343
    2365   newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
     2344  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
    23662345
    23672346  // HTTP basic authentication
     
    30883067}
    30893068
    3090 const VERSION$1 = "1.7.9";
     3069const VERSION$1 = "1.8.4";
    30913070
    30923071const validators$1 = {};
     
    32733252    }
    32743253
     3254    // Set config.allowAbsoluteUrls
     3255    if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
     3256      config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
     3257    } else {
     3258      config.allowAbsoluteUrls = true;
     3259    }
     3260
    32753261    validator.assertOptions(config, {
    32763262      baseUrl: validators.spelling('baseURL'),
     
    33683354  getUri(config) {
    33693355    config = mergeConfig$1(this.defaults, config);
    3370     const fullPath = buildFullPath(config.baseURL, config.url);
     3356    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
    33713357    return buildURL(fullPath, config.params, config.paramsSerializer);
    33723358  }
Note: See TracChangeset for help on using the changeset viewer.