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