monkey-front-core 0.0.368 → 0.0.369
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-header.interceptor.mjs +19 -18
- package/fesm2015/monkey-front-core.mjs +17 -16
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +17 -16
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.369.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.368.tgz +0 -0
|
@@ -5410,26 +5410,27 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
|
|
|
5410
5410
|
async handle(request) {
|
|
5411
5411
|
const { url } = request;
|
|
5412
5412
|
console.log('====> core 1 <====');
|
|
5413
|
-
if (this.authService.isTokenMandatory(url)) {
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5413
|
+
/* if (this.authService.isTokenMandatory(url)) {
|
|
5414
|
+
console.log('====> core 2 <====');
|
|
5415
|
+
try {
|
|
5416
|
+
await this.config
|
|
5417
|
+
.config()
|
|
5418
|
+
.pipe(
|
|
5419
|
+
first((val: any) => {
|
|
5420
|
+
return !!val && JSON.stringify(val) !== '{}';
|
|
5421
|
+
})
|
|
5422
|
+
)
|
|
5423
|
+
.toPromise();
|
|
5424
|
+
} catch (e) {
|
|
5425
|
+
// not to do
|
|
5426
|
+
}
|
|
5427
|
+
} */
|
|
5427
5428
|
let resp = null;
|
|
5428
|
-
console.log('====> core
|
|
5429
|
+
console.log('====> core 2 <====');
|
|
5429
5430
|
try {
|
|
5430
5431
|
console.log(url);
|
|
5431
5432
|
resp = await this.authService.getRequestWithHeadersAsync(request);
|
|
5432
|
-
console.log('====> core
|
|
5433
|
+
console.log('====> core 3 <====');
|
|
5433
5434
|
console.log(resp);
|
|
5434
5435
|
}
|
|
5435
5436
|
catch (e) {
|