monkey-front-core 0.0.219 → 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.
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +5 -3
- package/fesm2015/monkey-front-core.mjs +4 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.220.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.219.tgz +0 -0
|
@@ -338,14 +338,16 @@ class MonkeyEcxCookieStorageService {
|
|
|
338
338
|
setCookie(name, value, environment) {
|
|
339
339
|
this.removeCookie(name, environment);
|
|
340
340
|
const { urlDomain } = environment;
|
|
341
|
-
|
|
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
|
-
|
|
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 });
|