monkey-front-core 0.0.444 → 0.0.446

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.
@@ -8,7 +8,7 @@ import * as i1$1 from '@ngx-translate/core';
8
8
  import { TranslateModule, TranslateService } from '@ngx-translate/core';
9
9
  import * as moment_ from 'moment';
10
10
  import { map, catchError, filter, takeWhile, take, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
11
- import { throwError, BehaviorSubject, Subscription, interval, concat, of, Subject, from } from 'rxjs';
11
+ import { throwError, BehaviorSubject, Subscription, interval, concat, Subject, of, from } from 'rxjs';
12
12
  import * as i1$2 from '@angular/common/http';
13
13
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
14
14
  import * as i2$1 from '@angular/platform-browser';
@@ -3500,15 +3500,17 @@ class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
3500
3500
  constructor(translateService) {
3501
3501
  super();
3502
3502
  this.translateService = translateService;
3503
+ this.unsubscribeAll = new Subject();
3503
3504
  this.geti18n(this.translateService, 'SERVICES.WARNING.CONSOLE');
3504
3505
  }
3505
3506
  handleValidation() {
3506
- this.__oni18nDataChanged$.subscribe(() => {
3507
+ this.__oni18nDataChanged$
3508
+ .pipe(takeUntil(this.unsubscribeAll)).subscribe(() => {
3507
3509
  const { __i18n } = this;
3508
3510
  const title = __i18n?.TITLE;
3509
3511
  const message = __i18n?.MESSAGE;
3510
3512
  if (title) {
3511
- console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: x-large');
3513
+ console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: 18px');
3512
3514
  console.log(`%c${message}`, 'font-size: x-large');
3513
3515
  console.log('%c __ __ _ ______ \n ' +
3514
3516
  '| \\/ | ___ _ __ | | _____ _ _\\ \\ \\ \\ \n ' +
@@ -3517,6 +3519,8 @@ class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
3517
3519
  '|_| |_|\\___/|_| |_|_|\\_\\___|\\__, /_/_/_/ \n ' +
3518
3520
  ' |___/ \n ' +
3519
3521
  '', 'background: #1976d2; color: #fff');
3522
+ this.unsubscribeAll.next();
3523
+ this.unsubscribeAll.complete();
3520
3524
  }
3521
3525
  });
3522
3526
  }