monkey-front-core 0.0.199 → 0.0.200
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 +12 -2
- package/fesm2015/monkey-front-core.mjs +11 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +11 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.200.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.199.tgz +0 -0
|
@@ -4683,18 +4683,28 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
async handle(request, next) {
|
|
4685
4685
|
const { url } = request;
|
|
4686
|
+
console.log('====== 1');
|
|
4686
4687
|
if (this.authService.isTokenMandatory(url)) {
|
|
4688
|
+
console.log('====== 2');
|
|
4687
4689
|
try {
|
|
4688
|
-
|
|
4690
|
+
console.log('====== 3');
|
|
4691
|
+
const x = await this.config
|
|
4689
4692
|
.config()
|
|
4690
4693
|
.pipe(first((val) => {
|
|
4694
|
+
console.log('====== 4');
|
|
4695
|
+
console.log(val);
|
|
4691
4696
|
return !!val;
|
|
4692
4697
|
}))
|
|
4693
4698
|
.toPromise();
|
|
4699
|
+
console.log('====== 5');
|
|
4700
|
+
console.log(x);
|
|
4694
4701
|
}
|
|
4695
4702
|
catch (e) {
|
|
4703
|
+
console.log('====== 6');
|
|
4704
|
+
console.log(e);
|
|
4696
4705
|
// not to do
|
|
4697
4706
|
}
|
|
4707
|
+
console.log('====== 7');
|
|
4698
4708
|
}
|
|
4699
4709
|
return this.authService
|
|
4700
4710
|
.getRequestWithHeadersOb(request)
|