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

Pred finalna verzija

Location:
imaps-frontend/node_modules/axios/lib/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/axios/lib/core/Axios.js

    rd565449 r0c6b92a  
    4141    } catch (err) {
    4242      if (err instanceof Error) {
    43         let dummy;
    44 
    45         Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
     43        let dummy = {};
     44
     45        Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
    4646
    4747        // slice off the Error: ... line
     
    9898    }
    9999
     100    validator.assertOptions(config, {
     101      baseUrl: validators.spelling('baseURL'),
     102      withXsrfToken: validators.spelling('withXSRFToken')
     103    }, true);
     104
    100105    // Set config.method
    101106    config.method = (config.method || this.defaults.method || 'get').toLowerCase();
  • imaps-frontend/node_modules/axios/lib/core/mergeConfig.js

    rd565449 r0c6b92a  
    2020  const config = {};
    2121
    22   function getMergedValue(target, source, caseless) {
     22  function getMergedValue(target, source, prop, caseless) {
    2323    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
    2424      return utils.merge.call({caseless}, target, source);
     
    3232
    3333  // eslint-disable-next-line consistent-return
    34   function mergeDeepProperties(a, b, caseless) {
     34  function mergeDeepProperties(a, b, prop , caseless) {
    3535    if (!utils.isUndefined(b)) {
    36       return getMergedValue(a, b, caseless);
     36      return getMergedValue(a, b, prop , caseless);
    3737    } else if (!utils.isUndefined(a)) {
    38       return getMergedValue(undefined, a, caseless);
     38      return getMergedValue(undefined, a, prop , caseless);
    3939    }
    4040  }
     
    9494    responseEncoding: defaultToConfig2,
    9595    validateStatus: mergeDirectKeys,
    96     headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
     96    headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
    9797  };
    9898
Note: See TracChangeset for help on using the changeset viewer.