monkey-front-core 0.0.217 → 0.0.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -338,14 +338,16 @@ class MonkeyEcxCookieStorageService {
338
338
  setCookie(name, value, environment) {
339
339
  this.removeCookie(name, environment);
340
340
  const { urlDomain } = environment;
341
- this.cookieService.set(name, value, undefined, '/', `.${urlDomain}`, true);
341
+ const handledDomain = urlDomain ? `.${urlDomain}` : '';
342
+ this.cookieService.set(name, value, undefined, '/', handledDomain, true);
342
343
  }
343
344
  getCookie(name) {
344
345
  return this.cookieService.get(name);
345
346
  }
346
347
  removeCookie(name, environment) {
347
348
  const { urlDomain } = environment;
348
- this.cookieService.delete(name, '/', `.${urlDomain}`, true);
349
+ const handledDomain = urlDomain ? `.${urlDomain}` : '';
350
+ this.cookieService.delete(name, '/', handledDomain, true);
349
351
  }
350
352
  }
351
353
  MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$2.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -4725,7 +4727,7 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
4725
4727
  }
4726
4728
  }
4727
4729
  const resp = await this.authService
4728
- .getRequestWithHeaders(request)
4730
+ .getRequestWithHeadersOb(request)
4729
4731
  .pipe(take(1), map((event) => {
4730
4732
  return event;
4731
4733
  }), catchError((error) => {