monkey-front-core 0.0.170 → 0.0.173

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.
@@ -330,15 +330,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
330
330
  }]
331
331
  }] });
332
332
 
333
- /* eslint-disable object-curly-newline */
334
333
  class MonkeyEcxCookieStorageService {
335
334
  constructor(cookieService) {
336
335
  this.cookieService = cookieService;
337
336
  // not to do
338
337
  }
339
- setCookie(name, value) {
338
+ setCookie(name, value, environment) {
340
339
  this.removeCookie(name);
341
- this.cookieService.set(name, value, undefined, '/', '', true, 'None');
340
+ const { urlDomain } = environment;
341
+ this.cookieService.set(name, value, undefined, '/', `.${urlDomain}`, true);
342
342
  }
343
343
  getCookie(name) {
344
344
  return this.cookieService.get(name);
@@ -2717,7 +2717,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
2717
2717
  i18n = JSON.parse(atob(cookie));
2718
2718
  }
2719
2719
  else {
2720
- monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)));
2720
+ monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)), environment);
2721
2721
  if (!cookie)
2722
2722
  change = true;
2723
2723
  }
@@ -2727,7 +2727,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
2727
2727
  if (externali18n) {
2728
2728
  data = {
2729
2729
  ...data,
2730
- EXTERNAL: externali18n,
2730
+ EXTERNAL: externali18n
2731
2731
  };
2732
2732
  }
2733
2733
  this.translateService.setTranslation(lang, data, true);
@@ -2746,17 +2746,17 @@ MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12
2746
2746
  __decorate([
2747
2747
  MonkeyEcxCoreService({
2748
2748
  httpResponse: {
2749
- httpCodeIgnore: [404],
2749
+ httpCodeIgnore: [404]
2750
2750
  },
2751
2751
  requestInProgress: {
2752
- showProgress: false,
2753
- },
2752
+ showProgress: false
2753
+ }
2754
2754
  })
2755
2755
  ], MonkeyEcxi18nConfigService.prototype, "apply", null);
2756
2756
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
2757
2757
  type: Injectable,
2758
2758
  args: [{
2759
- providedIn: 'root',
2759
+ providedIn: 'root'
2760
2760
  }]
2761
2761
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i1$1.TranslateService }, { type: MonkeyEcxCookieStorageService }, { type: MonkeyEcxErrorConfigService }]; }, propDecorators: { apply: [] } });
2762
2762