Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/axios/dist/node/axios.cjs

    rd565449 r0c6b92a  
    1 // Axios v1.7.7 Copyright (c) 2024 Matt Zabriskie and contributors
     1// Axios v1.7.8 Copyright (c) 2024 Matt Zabriskie and contributors
    22'use strict';
    33
     
    1717const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
    1818const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
     19const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
    1920const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
    2021const https__default = /*#__PURE__*/_interopDefaultLegacy(https);
     
    11721173 * @param {string} url The base of the url (e.g., http://www.google.com)
    11731174 * @param {object} [params] The params to be appended
    1174  * @param {?object} options
     1175 * @param {?(object|Function)} options
    11751176 *
    11761177 * @returns {string} The formatted url
     
    11831184 
    11841185  const _encode = options && options.encode || encode;
     1186
     1187  if (utils$1.isFunction(options)) {
     1188    options = {
     1189      serialize: options
     1190    };
     1191  }
    11851192
    11861193  const serializeFn = options && options.serialize;
     
    20722079}
    20732080
    2074 const VERSION = "1.7.7";
     2081const VERSION = "1.7.8";
    20752082
    20762083function parseProtocol(url) {
     
    22842291const BOUNDARY_ALPHABET = utils$1.ALPHABET.ALPHA_DIGIT + '-_';
    22852292
    2286 const textEncoder = new util.TextEncoder();
     2293const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util__default["default"].TextEncoder();
    22872294
    22882295const CRLF = '\r\n';
     
    26222629  let proxy = configProxy;
    26232630  if (!proxy && proxy !== false) {
    2624     const proxyUrl = proxyFromEnv.getProxyForUrl(location);
     2631    const proxyUrl = proxyFromEnv__default["default"].getProxyForUrl(location);
    26252632    if (proxyUrl) {
    26262633      proxy = new URL(proxyUrl);
     
    28532860        }
    28542861      }
    2855     } else if (utils$1.isBlob(data)) {
     2862    } else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
    28562863      data.size && headers.setContentType(data.type || 'application/octet-stream');
    28572864      headers.setContentLength(data.size || 0);
     
    31063113
    31073114          const err = new AxiosError(
    3108             'maxContentLength size of ' + config.maxContentLength + ' exceeded',
     3115            'stream has been aborted',
    31093116            AxiosError.ERR_BAD_RESPONSE,
    31103117            config,
     
    32293236};
    32303237
    3231 const isURLSameOrigin = platform.hasStandardBrowserEnv ?
    3232 
    3233 // Standard browser envs have full support of the APIs needed to test
    3234 // whether the request URL is of the same origin as current location.
    3235   (function standardBrowserEnv() {
    3236     const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
    3237     const urlParsingNode = document.createElement('a');
    3238     let originURL;
    3239 
    3240     /**
    3241     * Parse a URL to discover its components
    3242     *
    3243     * @param {String} url The URL to be parsed
    3244     * @returns {Object}
    3245     */
    3246     function resolveURL(url) {
    3247       let href = url;
    3248 
    3249       if (msie) {
    3250         // IE needs attribute set twice to normalize properties
    3251         urlParsingNode.setAttribute('href', href);
    3252         href = urlParsingNode.href;
    3253       }
    3254 
    3255       urlParsingNode.setAttribute('href', href);
    3256 
    3257       // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
    3258       return {
    3259         href: urlParsingNode.href,
    3260         protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
    3261         host: urlParsingNode.host,
    3262         search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
    3263         hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
    3264         hostname: urlParsingNode.hostname,
    3265         port: urlParsingNode.port,
    3266         pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
    3267           urlParsingNode.pathname :
    3268           '/' + urlParsingNode.pathname
    3269       };
    3270     }
    3271 
    3272     originURL = resolveURL(window.location.href);
    3273 
    3274     /**
    3275     * Determine if a URL shares the same origin as the current location
    3276     *
    3277     * @param {String} requestURL The URL to test
    3278     * @returns {boolean} True if URL shares the same origin, otherwise false
    3279     */
    3280     return function isURLSameOrigin(requestURL) {
    3281       const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
    3282       return (parsed.protocol === originURL.protocol &&
    3283           parsed.host === originURL.host);
    3284     };
    3285   })() :
    3286 
    3287   // Non standard browser envs (web workers, react-native) lack needed support.
    3288   (function nonStandardBrowserEnv() {
    3289     return function isURLSameOrigin() {
    3290       return true;
    3291     };
    3292   })();
     3238const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
     3239  url = new URL(url, platform.origin);
     3240
     3241  return (
     3242    origin.protocol === url.protocol &&
     3243    origin.host === url.host &&
     3244    (isMSIE || origin.port === url.port)
     3245  );
     3246})(
     3247  new URL(platform.origin),
     3248  platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
     3249) : () => true;
    32933250
    32943251const cookies = platform.hasStandardBrowserEnv ?
     
    33473304  const config = {};
    33483305
    3349   function getMergedValue(target, source, caseless) {
     3306  function getMergedValue(target, source, prop, caseless) {
    33503307    if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
    33513308      return utils$1.merge.call({caseless}, target, source);
     
    33593316
    33603317  // eslint-disable-next-line consistent-return
    3361   function mergeDeepProperties(a, b, caseless) {
     3318  function mergeDeepProperties(a, b, prop , caseless) {
    33623319    if (!utils$1.isUndefined(b)) {
    3363       return getMergedValue(a, b, caseless);
     3320      return getMergedValue(a, b, prop , caseless);
    33643321    } else if (!utils$1.isUndefined(a)) {
    3365       return getMergedValue(undefined, a, caseless);
     3322      return getMergedValue(undefined, a, prop , caseless);
    33663323    }
    33673324  }
     
    34213378    responseEncoding: defaultToConfig2,
    34223379    validateStatus: mergeDirectKeys,
    3423     headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
     3380    headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
    34243381  };
    34253382
     
    42144171};
    42154172
     4173validators$1.spelling = function spelling(correctSpelling) {
     4174  return (value, opt) => {
     4175    // eslint-disable-next-line no-console
     4176    console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
     4177    return true;
     4178  }
     4179};
     4180
    42164181/**
    42174182 * Assert object's properties type
     
    42834248    } catch (err) {
    42844249      if (err instanceof Error) {
    4285         let dummy;
    4286 
    4287         Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
     4250        let dummy = {};
     4251
     4252        Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
    42884253
    42894254        // slice off the Error: ... line
     
    43394304      }
    43404305    }
     4306
     4307    validator.assertOptions(config, {
     4308      baseUrl: validators.spelling('baseURL'),
     4309      withXsrfToken: validators.spelling('withXSRFToken')
     4310    }, true);
    43414311
    43424312    // Set config.method
Note: See TracChangeset for help on using the changeset viewer.