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

Adding review works\!

Location:
node_modules/axios/lib
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • node_modules/axios/lib/adapters/http.js

    r3a74959 rff72ad2  
    229229
    230230    // Parse url
    231     const fullPath = buildFullPath(config.baseURL, config.url);
     231    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
    232232    const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
    233233    const protocol = parsed.protocol || supportedProtocols[0];
  • node_modules/axios/lib/core/Axios.js

    r3a74959 rff72ad2  
    9898    }
    9999
     100    // Set config.allowAbsoluteUrls
     101    if (config.allowAbsoluteUrls !== undefined) {
     102      // do nothing
     103    } else if (this.defaults.allowAbsoluteUrls !== undefined) {
     104      config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
     105    } else {
     106      config.allowAbsoluteUrls = true;
     107    }
     108
    100109    validator.assertOptions(config, {
    101110      baseUrl: validators.spelling('baseURL'),
     
    193202  getUri(config) {
    194203    config = mergeConfig(this.defaults, config);
    195     const fullPath = buildFullPath(config.baseURL, config.url);
     204    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
    196205    return buildURL(fullPath, config.params, config.paramsSerializer);
    197206  }
  • node_modules/axios/lib/core/buildFullPath.js

    r3a74959 rff72ad2  
    1414 * @returns {string} The combined full path
    1515 */
    16 export default function buildFullPath(baseURL, requestedURL) {
    17   if (baseURL && !isAbsoluteURL(requestedURL)) {
     16export default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
     17  let isRelativeUrl = !isAbsoluteURL(requestedURL);
     18  if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
    1819    return combineURLs(baseURL, requestedURL);
    1920  }
  • node_modules/axios/lib/env/data.js

    r3a74959 rff72ad2  
    1 export const VERSION = "1.7.9";
     1export const VERSION = "1.8.4";
  • node_modules/axios/lib/helpers/formDataToStream.js

    r3a74959 rff72ad2  
    33import utils from "../utils.js";
    44import readBlob from "./readBlob.js";
     5import platform from "../platform/index.js";
    56
    6 const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';
     7const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';
    78
    89const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util.TextEncoder();
     
    6465    tag = 'form-data-boundary',
    6566    size = 25,
    66     boundary = tag + '-' + utils.generateString(size, BOUNDARY_ALPHABET)
     67    boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET)
    6768  } = options || {};
    6869
  • node_modules/axios/lib/helpers/resolveConfig.js

    r3a74959 rff72ad2  
    1515  newConfig.headers = headers = AxiosHeaders.from(headers);
    1616
    17   newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
     17  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
    1818
    1919  // HTTP basic authentication
  • node_modules/axios/lib/platform/node/index.js

    r3a74959 rff72ad2  
     1import crypto from 'crypto';
    12import URLSearchParams from './classes/URLSearchParams.js'
    23import FormData from './classes/FormData.js'
     4
     5const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
     6
     7const DIGIT = '0123456789';
     8
     9const ALPHABET = {
     10  DIGIT,
     11  ALPHA,
     12  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
     13}
     14
     15const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
     16  let str = '';
     17  const {length} = alphabet;
     18  const randomValues = new Uint32Array(size);
     19  crypto.randomFillSync(randomValues);
     20  for (let i = 0; i < size; i++) {
     21    str += alphabet[randomValues[i] % length];
     22  }
     23
     24  return str;
     25}
     26
    327
    428export default {
     
    933    Blob: typeof Blob !== 'undefined' && Blob || null
    1034  },
     35  ALPHABET,
     36  generateString,
    1137  protocols: [ 'http', 'https', 'file', 'data' ]
    1238};
  • node_modules/axios/lib/utils.js

    r3a74959 rff72ad2  
    601601const toFiniteNumber = (value, defaultValue) => {
    602602  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
    603 }
    604 
    605 const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
    606 
    607 const DIGIT = '0123456789';
    608 
    609 const ALPHABET = {
    610   DIGIT,
    611   ALPHA,
    612   ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
    613 }
    614 
    615 const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
    616   let str = '';
    617   const {length} = alphabet;
    618   while (size--) {
    619     str += alphabet[Math.random() * length|0]
    620   }
    621 
    622   return str;
    623603}
    624604
     
    750730  global: _global,
    751731  isContextDefined,
    752   ALPHABET,
    753   generateString,
    754732  isSpecCompliantForm,
    755733  toJSONObject,
Note: See TracChangeset for help on using the changeset viewer.