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/node/axios.cjs

    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'use strict';
    33
    44const FormData$1 = require('form-data');
     5const crypto = require('crypto');
    56const url = require('url');
    67const proxyFromEnv = require('proxy-from-env');
     
    1617
    1718const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
     19const crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
    1820const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
    1921const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
     
    629631const toFiniteNumber = (value, defaultValue) => {
    630632  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
    631 };
    632 
    633 const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
    634 
    635 const DIGIT = '0123456789';
    636 
    637 const ALPHABET = {
    638   DIGIT,
    639   ALPHA,
    640   ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
    641 };
    642 
    643 const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
    644   let str = '';
    645   const {length} = alphabet;
    646   while (size--) {
    647     str += alphabet[Math.random() * length|0];
    648   }
    649 
    650   return str;
    651633};
    652634
     
    778760  global: _global,
    779761  isContextDefined,
    780   ALPHABET,
    781   generateString,
    782762  isSpecCompliantForm,
    783763  toJSONObject,
     
    12911271const URLSearchParams = url__default["default"].URLSearchParams;
    12921272
     1273const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
     1274
     1275const DIGIT = '0123456789';
     1276
     1277const ALPHABET = {
     1278  DIGIT,
     1279  ALPHA,
     1280  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
     1281};
     1282
     1283const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
     1284  let str = '';
     1285  const {length} = alphabet;
     1286  const randomValues = new Uint32Array(size);
     1287  crypto__default["default"].randomFillSync(randomValues);
     1288  for (let i = 0; i < size; i++) {
     1289    str += alphabet[randomValues[i] % length];
     1290  }
     1291
     1292  return str;
     1293};
     1294
     1295
    12931296const platform$1 = {
    12941297  isNode: true,
     
    12981301    Blob: typeof Blob !== 'undefined' && Blob || null
    12991302  },
     1303  ALPHABET,
     1304  generateString,
    13001305  protocols: [ 'http', 'https', 'file', 'data' ]
    13011306};
     
    20722077 * @returns {string} The combined full path
    20732078 */
    2074 function buildFullPath(baseURL, requestedURL) {
    2075   if (baseURL && !isAbsoluteURL(requestedURL)) {
     2079function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
     2080  let isRelativeUrl = !isAbsoluteURL(requestedURL);
     2081  if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
    20762082    return combineURLs(baseURL, requestedURL);
    20772083  }
     
    20792085}
    20802086
    2081 const VERSION = "1.7.9";
     2087const VERSION = "1.8.4";
    20822088
    20832089function parseProtocol(url) {
     
    22892295const readBlob$1 = readBlob;
    22902296
    2291 const BOUNDARY_ALPHABET = utils$1.ALPHABET.ALPHA_DIGIT + '-_';
     2297const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';
    22922298
    22932299const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util__default["default"].TextEncoder();
     
    23492355    tag = 'form-data-boundary',
    23502356    size = 25,
    2351     boundary = tag + '-' + utils$1.generateString(size, BOUNDARY_ALPHABET)
     2357    boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET)
    23522358  } = options || {};
    23532359
     
    27742780
    27752781    // Parse url
    2776     const fullPath = buildFullPath(config.baseURL, config.url);
     2782    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
    27772783    const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
    27782784    const protocol = parsed.protocol || supportedProtocols[0];
     
    33973403  newConfig.headers = headers = AxiosHeaders$1.from(headers);
    33983404
    3399   newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
     3405  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
    34003406
    34013407  // HTTP basic authentication
     
    43054311    }
    43064312
     4313    // Set config.allowAbsoluteUrls
     4314    if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
     4315      config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
     4316    } else {
     4317      config.allowAbsoluteUrls = true;
     4318    }
     4319
    43074320    validator.assertOptions(config, {
    43084321      baseUrl: validators.spelling('baseURL'),
     
    44004413  getUri(config) {
    44014414    config = mergeConfig(this.defaults, config);
    4402     const fullPath = buildFullPath(config.baseURL, config.url);
     4415    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
    44034416    return buildURL(fullPath, config.params, config.paramsSerializer);
    44044417  }
Note: See TracChangeset for help on using the changeset viewer.