monkey-front-core 0.0.37 → 0.0.38
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/config/monkeyecx-config.service.mjs +1 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +1 -3
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +1 -2
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +5 -2
- package/fesm2015/monkey-front-core.mjs +5 -8
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4 -8
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.38.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.37.tgz +0 -0
|
@@ -2518,10 +2518,6 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2518
2518
|
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
|
|
2519
2519
|
const url = `${environment.urlAssets}`;
|
|
2520
2520
|
monkeyecxService?.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`)?.subscribe((config) => {
|
|
2521
|
-
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
|
|
2522
|
-
console.log(config);
|
|
2523
|
-
console.log(`${url}/${monkeyecxCode.toLowerCase()}/monkey-style-guide-settings.json`);
|
|
2524
|
-
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
|
|
2525
2521
|
monkeyecxi18nConfigService.apply(config, environment);
|
|
2526
2522
|
monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
|
|
2527
2523
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
@@ -2616,13 +2612,16 @@ class MonkeyEcxTokenStorageService {
|
|
|
2616
2612
|
token$.next(token);
|
|
2617
2613
|
}
|
|
2618
2614
|
getAllTokens() {
|
|
2619
|
-
const { token } = this;
|
|
2615
|
+
const { token, config } = this;
|
|
2620
2616
|
const handledToken = {
|
|
2621
2617
|
...token
|
|
2622
2618
|
};
|
|
2623
2619
|
Object.entries(token || {}).forEach(([key, value]) => {
|
|
2624
2620
|
handledToken[key] = localStorage.getItem(key);
|
|
2625
2621
|
});
|
|
2622
|
+
if (config?.program) {
|
|
2623
|
+
handledToken.program = config?.program?.token;
|
|
2624
|
+
}
|
|
2626
2625
|
return handledToken;
|
|
2627
2626
|
}
|
|
2628
2627
|
setAllMe(me) {
|
|
@@ -3131,7 +3130,6 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
3131
3130
|
}
|
|
3132
3131
|
showMessage(message, error, mkc) {
|
|
3133
3132
|
const { snackbarService } = this;
|
|
3134
|
-
console.log('==================');
|
|
3135
3133
|
if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
|
|
3136
3134
|
snackbarService.show({
|
|
3137
3135
|
title: this.__i18n?.TITLE,
|
|
@@ -3252,8 +3250,6 @@ class MonkeyEcxErrorHandlingService {
|
|
|
3252
3250
|
const handlingService = injector.get(MonkeyEcxHandlingService);
|
|
3253
3251
|
const httpErrorHandlingService = injector.get(MonkeyEcxHttpErrorHandlingService);
|
|
3254
3252
|
const othersErrorsHandlingService = injector.get(MonkeyEcxOthersErrorsHandlingService);
|
|
3255
|
-
console.log('error');
|
|
3256
|
-
console.log(error);
|
|
3257
3253
|
if (error instanceof HttpErrorResponse) {
|
|
3258
3254
|
const sCredentials = handlingService?.getMonkeyEcxServiceCredentials() || {};
|
|
3259
3255
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
|