monkey-front-core 0.0.214 → 0.0.215
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 +8 -23
- package/fesm2015/monkey-front-core.mjs +4 -18
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +4 -18
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +1 -3
- package/monkey-front-core-0.0.215.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.214.tgz +0 -0
|
@@ -4703,9 +4703,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4703
4703
|
}], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
|
|
4704
4704
|
|
|
4705
4705
|
class MonkeyEcxHttpConfigHeaderInterceptor {
|
|
4706
|
-
constructor(authService,
|
|
4706
|
+
constructor(authService, config) {
|
|
4707
4707
|
this.authService = authService;
|
|
4708
|
-
this.errorHandlingService = errorHandlingService;
|
|
4709
4708
|
this.config = config;
|
|
4710
4709
|
// not to do
|
|
4711
4710
|
}
|
|
@@ -4724,30 +4723,17 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
|
|
|
4724
4723
|
// not to do
|
|
4725
4724
|
}
|
|
4726
4725
|
}
|
|
4727
|
-
return this.authService
|
|
4728
|
-
.getRequestWithHeadersOb(request)
|
|
4729
|
-
.pipe(take(1), map((event) => {
|
|
4730
|
-
return event;
|
|
4731
|
-
}), mergeMap((resp) => {
|
|
4732
|
-
request = request.clone({
|
|
4733
|
-
setHeaders: resp
|
|
4734
|
-
});
|
|
4735
|
-
return next.handle(request);
|
|
4736
|
-
}), catchError((error) => {
|
|
4737
|
-
this.errorHandlingService.handleError(error);
|
|
4738
|
-
return throwError(error);
|
|
4739
|
-
}))
|
|
4740
|
-
.toPromise();
|
|
4726
|
+
return this.authService.getRequestWithHeaders(request);
|
|
4741
4727
|
}
|
|
4742
4728
|
intercept(request, next) {
|
|
4743
4729
|
return from(this.handle(request, next));
|
|
4744
4730
|
}
|
|
4745
4731
|
}
|
|
4746
|
-
MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token:
|
|
4732
|
+
MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4747
4733
|
MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
|
|
4748
4734
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
|
|
4749
4735
|
type: Injectable
|
|
4750
|
-
}], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type:
|
|
4736
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxConfigService }]; } });
|
|
4751
4737
|
|
|
4752
4738
|
/* eslint-disable max-len */
|
|
4753
4739
|
class MonkeyEcxHttpConfigQueueInterceptor {
|