monkey-front-core 0.0.372 → 0.0.374
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/interceptors/monkeyecx-http-config-error.interceptor.mjs +1 -10
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +2 -6
- package/fesm2015/monkey-front-core.mjs +1 -14
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +1 -14
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.374.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.372.tgz +0 -0
|
@@ -2883,16 +2883,12 @@ class MonkeyEcxCommonsService {
|
|
|
2883
2883
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(hasFlag)) {
|
|
2884
2884
|
if (!hasFlag) {
|
|
2885
2885
|
this.navigateToErrorPage(404, otherArgs?.router);
|
|
2886
|
-
return;
|
|
2887
2886
|
}
|
|
2888
2887
|
}
|
|
2889
|
-
otherArgs?.callbackMain();
|
|
2890
2888
|
}
|
|
2891
2889
|
});
|
|
2892
2890
|
}
|
|
2893
|
-
|
|
2894
|
-
otherArgs?.callbackMain();
|
|
2895
|
-
}
|
|
2891
|
+
otherArgs?.callbackMain();
|
|
2896
2892
|
}
|
|
2897
2893
|
else if (!allowedByProgram) {
|
|
2898
2894
|
this.navigateToErrorPage(404, otherArgs?.router);
|
|
@@ -5370,23 +5366,14 @@ class MonkeyEcxHttpConfigErrorInterceptor {
|
|
|
5370
5366
|
// no to do
|
|
5371
5367
|
}
|
|
5372
5368
|
async handle(request, error) {
|
|
5373
|
-
console.log('===@');
|
|
5374
|
-
console.log('error1');
|
|
5375
5369
|
try {
|
|
5376
|
-
console.log('error2');
|
|
5377
5370
|
if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
|
|
5378
|
-
console.log('error3');
|
|
5379
5371
|
await this.monkeyecxAuthenticationService?.refreshToken();
|
|
5380
|
-
console.log('error4');
|
|
5381
5372
|
const headers = await this.monkeyecxAuthenticationService.getRequestWithHeadersAsync(request);
|
|
5382
|
-
console.log('error5');
|
|
5383
|
-
console.log(headers);
|
|
5384
5373
|
return headers;
|
|
5385
5374
|
}
|
|
5386
5375
|
}
|
|
5387
5376
|
catch (e) {
|
|
5388
|
-
console.log('error6');
|
|
5389
|
-
console.log(e);
|
|
5390
5377
|
return throwError(e);
|
|
5391
5378
|
}
|
|
5392
5379
|
return null;
|