(config8)
| 73329 | const merge2 = mergeMap[prop] || mergeDeepProperties; |
| 73330 | const configValue = merge2(config1[prop], config22[prop], prop); |
| 73331 | utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config8[prop] = configValue); |
| 73332 | }); |
| 73333 | return config8; |
| 73334 | } |
| 73335 | |
| 73336 | // node_modules/axios/lib/helpers/resolveConfig.js |
| 73337 | var resolveConfig_default = (config8) => { |
| 73338 | const newConfig = mergeConfig({}, config8); |
| 73339 | let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig; |
| 73340 | newConfig.headers = headers = AxiosHeaders_default.from(headers); |
| 73341 | newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config8.params, config8.paramsSerializer); |
| 73342 | if (auth) { |
| 73343 | headers.set( |
| 73344 | "Authorization", |
| 73345 | "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")) |
| 73346 | ); |
| 73347 | } |
| 73348 | let contentType; |
| 73349 | if (utils_default.isFormData(data)) { |
| 73350 | if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) { |
| 73351 | headers.setContentType(void 0); |
| 73352 | } else if ((contentType = headers.getContentType()) !== false) { |
| 73353 | const [type2, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : []; |
| 73354 | headers.setContentType([type2 || "multipart/form-data", ...tokens].join("; ")); |
| 73355 | } |
| 73356 | } |
| 73357 | if (platform_default.hasStandardBrowserEnv) { |
| 73358 | withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig)); |
| 73359 | if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) { |
| 73360 | const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName); |
| 73361 | if (xsrfValue) { |
| 73362 | headers.set(xsrfHeaderName, xsrfValue); |
| 73363 | } |
| 73364 | } |
no test coverage detected
searching dependent graphs…