monkey-front-core 0.0.108 → 0.0.113
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/interfaces/monkeyecx-me-credentials.mjs +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +7 -6
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +1 -3
- package/fesm2015/monkey-front-core.mjs +6 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +6 -7
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +2 -0
- package/monkey-front-core-0.0.113.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.108.tgz +0 -0
|
@@ -10,7 +10,7 @@ import * as moment_ from 'moment';
|
|
|
10
10
|
import * as i1$2 from 'ngx-cookie-service';
|
|
11
11
|
import * as i1$3 from '@angular/router';
|
|
12
12
|
import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
|
|
13
|
-
import { BehaviorSubject, throwError,
|
|
13
|
+
import { BehaviorSubject, throwError, interval, concat, of, Subject } from 'rxjs';
|
|
14
14
|
import { filter, take, takeWhile, map, catchError, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
|
|
15
15
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
16
16
|
import { __decorate } from 'tslib';
|
|
@@ -2006,10 +2006,11 @@ class MonkeyEcxCommonsService {
|
|
|
2006
2006
|
});
|
|
2007
2007
|
}
|
|
2008
2008
|
geti18n(translateService, keys) {
|
|
2009
|
-
|
|
2010
|
-
translateService.
|
|
2011
|
-
|
|
2012
|
-
|
|
2009
|
+
translateService.onDefaultLangChange.subscribe(() => {
|
|
2010
|
+
this.__i18n = translateService.instant(keys);
|
|
2011
|
+
this.__oni18nDataChanged$.next(null);
|
|
2012
|
+
});
|
|
2013
|
+
translateService.getStreamOnTranslationChange(keys).subscribe(() => {
|
|
2013
2014
|
this.__i18n = translateService.instant(keys);
|
|
2014
2015
|
this.__oni18nDataChanged$.next(null);
|
|
2015
2016
|
});
|
|
@@ -3319,8 +3320,6 @@ class MonkeyEcxErrorHandlingService {
|
|
|
3319
3320
|
const handlingService = injector.get(MonkeyEcxHandlingService);
|
|
3320
3321
|
const httpErrorHandlingService = injector.get(MonkeyEcxHttpErrorHandlingService);
|
|
3321
3322
|
const othersErrorsHandlingService = injector.get(MonkeyEcxOthersErrorsHandlingService);
|
|
3322
|
-
console.log('======error');
|
|
3323
|
-
console.log(error);
|
|
3324
3323
|
if (error instanceof HttpErrorResponse) {
|
|
3325
3324
|
const sCredentials = handlingService?.getMonkeyEcxServiceCredentials() || {};
|
|
3326
3325
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
|