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/axios.js

    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(function (global, factory) {
    33  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
     
    17361736   * @param {string} url The base of the url (e.g., http://www.google.com)
    17371737   * @param {object} [params] The params to be appended
    1738    * @param {?object} options
     1738   * @param {?(object|Function)} options
    17391739   *
    17401740   * @returns {string} The formatted url
     
    17461746    }
    17471747    var _encode = options && options.encode || encode;
     1748    if (utils$1.isFunction(options)) {
     1749      options = {
     1750        serialize: options
     1751      };
     1752    }
    17481753    var serializeFn = options && options.serialize;
    17491754    var serializedParams;
     
    26432648  };
    26442649
    2645   var isURLSameOrigin = platform.hasStandardBrowserEnv ?
    2646   // Standard browser envs have full support of the APIs needed to test
    2647   // whether the request URL is of the same origin as current location.
    2648   function standardBrowserEnv() {
    2649     var msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
    2650     var urlParsingNode = document.createElement('a');
    2651     var originURL;
    2652 
    2653     /**
    2654     * Parse a URL to discover its components
    2655     *
    2656     * @param {String} url The URL to be parsed
    2657     * @returns {Object}
    2658     */
    2659     function resolveURL(url) {
    2660       var href = url;
    2661       if (msie) {
    2662         // IE needs attribute set twice to normalize properties
    2663         urlParsingNode.setAttribute('href', href);
    2664         href = urlParsingNode.href;
    2665       }
    2666       urlParsingNode.setAttribute('href', href);
    2667 
    2668       // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
    2669       return {
    2670         href: urlParsingNode.href,
    2671         protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
    2672         host: urlParsingNode.host,
    2673         search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
    2674         hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
    2675         hostname: urlParsingNode.hostname,
    2676         port: urlParsingNode.port,
    2677         pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
    2678       };
    2679     }
    2680     originURL = resolveURL(window.location.href);
    2681 
    2682     /**
    2683     * Determine if a URL shares the same origin as the current location
    2684     *
    2685     * @param {String} requestURL The URL to test
    2686     * @returns {boolean} True if URL shares the same origin, otherwise false
    2687     */
    2688     return function isURLSameOrigin(requestURL) {
    2689       var parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
    2690       return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
     2650  var isURLSameOrigin = platform.hasStandardBrowserEnv ? function (origin, isMSIE) {
     2651    return function (url) {
     2652      url = new URL(url, platform.origin);
     2653      return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
    26912654    };
    2692   }() :
    2693   // Non standard browser envs (web workers, react-native) lack needed support.
    2694   function nonStandardBrowserEnv() {
    2695     return function isURLSameOrigin() {
    2696       return true;
    2697     };
    2698   }();
     2655  }(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : function () {
     2656    return true;
     2657  };
    26992658
    27002659  var cookies = platform.hasStandardBrowserEnv ?
     
    27862745    config2 = config2 || {};
    27872746    var config = {};
    2788     function getMergedValue(target, source, caseless) {
     2747    function getMergedValue(target, source, prop, caseless) {
    27892748      if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
    27902749        return utils$1.merge.call({
     
    28002759
    28012760    // eslint-disable-next-line consistent-return
    2802     function mergeDeepProperties(a, b, caseless) {
     2761    function mergeDeepProperties(a, b, prop, caseless) {
    28032762      if (!utils$1.isUndefined(b)) {
    2804         return getMergedValue(a, b, caseless);
     2763        return getMergedValue(a, b, prop, caseless);
    28052764      } else if (!utils$1.isUndefined(a)) {
    2806         return getMergedValue(undefined, a, caseless);
     2765        return getMergedValue(undefined, a, prop, caseless);
    28072766      }
    28082767    }
     
    28612820      responseEncoding: defaultToConfig2,
    28622821      validateStatus: mergeDirectKeys,
    2863       headers: function headers(a, b) {
    2864         return mergeDeepProperties(headersToObject(a), headersToObject(b), true);
     2822      headers: function headers(a, b, prop) {
     2823        return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
    28652824      }
    28662825    };
     
    37183677  }
    37193678
    3720   var VERSION = "1.7.7";
     3679  var VERSION = "1.7.8";
    37213680
    37223681  var validators$1 = {};
     
    37553714      }
    37563715      return validator ? validator(value, opt, opts) : true;
     3716    };
     3717  };
     3718  validators$1.spelling = function spelling(correctSpelling) {
     3719    return function (value, opt) {
     3720      // eslint-disable-next-line no-console
     3721      console.warn("".concat(opt, " is likely a misspelling of ").concat(correctSpelling));
     3722      return true;
    37573723    };
    37583724  };
     
    38393805                _context.t0 = _context["catch"](0);
    38403806                if (_context.t0 instanceof Error) {
    3841                   Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
     3807                  dummy = {};
     3808                  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
    38423809
    38433810                  // slice off the Error: ... line
     
    39013868          }
    39023869        }
     3870        validator.assertOptions(config, {
     3871          baseUrl: validators.spelling('baseURL'),
     3872          withXsrfToken: validators.spelling('withXSRFToken')
     3873        }, true);
    39033874
    39043875        // Set config.method
Note: See TracChangeset for help on using the changeset viewer.