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/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 */
    22(function (global, factory) {
    33  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
     
    12661266  var toFiniteNumber = function toFiniteNumber(value, defaultValue) {
    12671267    return value != null && Number.isFinite(value = +value) ? value : defaultValue;
    1268   };
    1269   var ALPHA = 'abcdefghijklmnopqrstuvwxyz';
    1270   var DIGIT = '0123456789';
    1271   var ALPHABET = {
    1272     DIGIT: DIGIT,
    1273     ALPHA: ALPHA,
    1274     ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
    1275   };
    1276   var generateString = function generateString() {
    1277     var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;
    1278     var alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT;
    1279     var str = '';
    1280     var length = alphabet.length;
    1281     while (size--) {
    1282       str += alphabet[Math.random() * length | 0];
    1283     }
    1284     return str;
    12851268  };
    12861269
     
    14001383    global: _global,
    14011384    isContextDefined: isContextDefined,
    1402     ALPHABET: ALPHABET,
    1403     generateString: generateString,
    14041385    isSpecCompliantForm: isSpecCompliantForm,
    14051386    toJSONObject: toJSONObject,
     
    27212702   * @returns {string} The combined full path
    27222703   */
    2723   function buildFullPath(baseURL, requestedURL) {
    2724     if (baseURL && !isAbsoluteURL(requestedURL)) {
     2704  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
     2705    var isRelativeUrl = !isAbsoluteURL(requestedURL);
     2706    if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
    27252707      return combineURLs(baseURL, requestedURL);
    27262708    }
     
    28412823      auth = newConfig.auth;
    28422824    newConfig.headers = headers = AxiosHeaders$1.from(headers);
    2843     newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
     2825    newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
    28442826
    28452827    // HTTP basic authentication
     
    36773659  }
    36783660
    3679   var VERSION = "1.7.9";
     3661  var VERSION = "1.8.4";
    36803662
    36813663  var validators$1 = {};
     
    38683850          }
    38693851        }
     3852
     3853        // Set config.allowAbsoluteUrls
     3854        if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
     3855          config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
     3856        } else {
     3857          config.allowAbsoluteUrls = true;
     3858        }
    38703859        validator.assertOptions(config, {
    38713860          baseUrl: validators.spelling('baseURL'),
     
    39403929      value: function getUri(config) {
    39413930        config = mergeConfig(this.defaults, config);
    3942         var fullPath = buildFullPath(config.baseURL, config.url);
     3931        var fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
    39433932        return buildURL(fullPath, config.params, config.paramsSerializer);
    39443933      }
Note: See TracChangeset for help on using the changeset viewer.