monkey-front-core 0.0.325 → 0.0.326
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 +5 -3
- package/fesm2015/monkey-front-core.mjs +4 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.326.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.325.tgz +0 -0
|
@@ -5321,12 +5321,14 @@ class MonkeyEcxHttpConfigErrorInterceptor {
|
|
|
5321
5321
|
// no to do
|
|
5322
5322
|
}
|
|
5323
5323
|
async handle(request, error) {
|
|
5324
|
+
console.log('=====================6');
|
|
5324
5325
|
if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
|
|
5325
5326
|
await this.monkeyecxAuthenticationService?.refreshToken();
|
|
5326
5327
|
const headers = await this.monkeyecxAuthenticationService.getRequestWithHeadersAsync(request);
|
|
5327
5328
|
return headers;
|
|
5328
5329
|
}
|
|
5329
|
-
|
|
5330
|
+
console.log('=====================7');
|
|
5331
|
+
return throwError(null);
|
|
5330
5332
|
}
|
|
5331
5333
|
intercept(request, next) {
|
|
5332
5334
|
console.log('=====================1');
|
|
@@ -5346,7 +5348,7 @@ class MonkeyEcxHttpConfigErrorInterceptor {
|
|
|
5346
5348
|
setHeaders: resp
|
|
5347
5349
|
});
|
|
5348
5350
|
return next.handle(request);
|
|
5349
|
-
}), catchError((
|
|
5351
|
+
}), catchError(() => {
|
|
5350
5352
|
console.log('=====================5');
|
|
5351
5353
|
console.log(error);
|
|
5352
5354
|
this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
|