wt-front-shared 1.0.72 → 1.0.74

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.
@@ -3793,19 +3793,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3793
3793
  }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: UiUnitsFacade }]; } });
3794
3794
 
3795
3795
  class MainEffects {
3796
- constructor(actions$, store) {
3796
+ constructor(actions$, store, config) {
3797
3797
  this.actions$ = actions$;
3798
3798
  this.store = store;
3799
+ this.config = config;
3799
3800
  this.notificationAdd$ = createEffect(() => this.actions$.pipe(tap((action) => {
3800
- console.info('[ action ]', action.type);
3801
+ if (this.config.env === 'develop') {
3802
+ console.info('[ action ]', action.type);
3803
+ }
3801
3804
  })), { dispatch: false });
3802
3805
  }
3803
3806
  }
3804
- MainEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MainEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
3807
+ MainEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MainEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
3805
3808
  MainEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MainEffects });
3806
3809
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MainEffects, decorators: [{
3807
3810
  type: Injectable
3808
- }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }]; } });
3811
+ }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: undefined, decorators: [{
3812
+ type: Inject,
3813
+ args: [CORE_CONFIG]
3814
+ }] }]; } });
3809
3815
 
3810
3816
  const TAGS_FEATURE_KEY = 'tags';
3811
3817
  const initialState$8 = {
@@ -12677,7 +12683,7 @@ class HeadersInterceptor {
12677
12683
  try {
12678
12684
  const userInfo = this.authenticationService.loadAuthDataFromLocalStore();
12679
12685
  this.updateRequestData(request.urlWithParams, request.method, errResponse.error.formErrors);
12680
- const currentHost = window.location.host;
12686
+ const currentHost = this.getDomainByUrl(window.location.host);
12681
12687
  const requestDomain = this.getDomainByUrl(request.url);
12682
12688
  if (currentHost === requestDomain) {
12683
12689
  if (errResponse.status === 401) {
@@ -12793,9 +12799,10 @@ class HeadersInterceptor {
12793
12799
  newUrl = urlParams.slice(url.length - 2).join('.');
12794
12800
  }
12795
12801
  if (newUrl.indexOf('/') !== -1) {
12796
- return newUrl.split('/')[0];
12802
+ newUrl = newUrl.split('/')[0];
12797
12803
  }
12798
- return newUrl;
12804
+ const urlParams = newUrl.split(':');
12805
+ return urlParams[0];
12799
12806
  }
12800
12807
  handle401Error(err, userInfo, request, next) {
12801
12808
  console.error('[ header.interceptor ][ handle401Error ]', userInfo);