monkey-front-core 0.0.362 → 0.0.364

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.
@@ -2772,13 +2772,9 @@ class MonkeyEcxCommonsService {
2772
2772
  return arg.country === arg.envCountry;
2773
2773
  }
2774
2774
  handlePaginationOptions() {
2775
- console.log('core ==> handlePaginationOptions');
2776
2775
  const { __paginationOptions } = this;
2777
2776
  if (__paginationOptions) {
2778
- console.log('__paginationOptions');
2779
- console.log(__paginationOptions);
2780
2777
  const { service, callback, name } = __paginationOptions;
2781
- console.log(service, callback, name);
2782
2778
  service?.setCallback((type) => {
2783
2779
  this.doPaginationv2(type, callback);
2784
2780
  }, name || 'main');
@@ -2872,9 +2868,7 @@ class MonkeyEcxCommonsService {
2872
2868
  this.__callbackPagination = otherArgs.callbackPagination;
2873
2869
  }
2874
2870
  if (otherArgs?.paginationOptions) {
2875
- console.log('core => veio pagination options');
2876
2871
  this.__paginationOptions = otherArgs?.paginationOptions;
2877
- console.log(this.__paginationOptions);
2878
2872
  this.handlePaginationOptions();
2879
2873
  }
2880
2874
  if (otherArgs?.feature) {
@@ -4577,24 +4571,14 @@ class MonkeyEcxPaginationService {
4577
4571
  // not to do
4578
4572
  }
4579
4573
  setCallback(callback, name = 'main') {
4580
- console.log('this.callbacks');
4581
- console.log(this.callbacks);
4582
- console.log('name');
4583
- console.log(name);
4584
- console.log('callback');
4585
- console.log(callback);
4586
4574
  this.callbacks = {
4587
4575
  ...this.callbacks,
4588
4576
  [name]: callback
4589
4577
  };
4590
4578
  }
4591
4579
  execute(type, name = 'main') {
4592
- console.log('core => execute pagination');
4593
4580
  const { callbacks } = this;
4594
- console.log(callbacks);
4595
- console.log(type, name);
4596
4581
  const callback = callbacks?.[name];
4597
- console.log(callback);
4598
4582
  if (callback)
4599
4583
  callback(type);
4600
4584
  }
@@ -5391,9 +5375,12 @@ class MonkeyEcxHttpConfigErrorInterceptor {
5391
5375
  return throwError(null);
5392
5376
  }
5393
5377
  intercept(request, next) {
5378
+ console.log('interceptor error =====');
5394
5379
  return next.handle(request).pipe(map((event) => {
5395
5380
  return event;
5396
5381
  }), catchError((error) => {
5382
+ console.log('interceptor error =====1');
5383
+ console.log(error);
5397
5384
  return from(this.handle(request, error)).pipe(take(1), map((event) => {
5398
5385
  return event;
5399
5386
  }), mergeMap((resp) => {
@@ -5402,6 +5389,8 @@ class MonkeyEcxHttpConfigErrorInterceptor {
5402
5389
  });
5403
5390
  return next.handle(request);
5404
5391
  }), catchError(() => {
5392
+ console.log('interceptor error =====');
5393
+ console.log(error);
5405
5394
  this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
5406
5395
  return throwError(error);
5407
5396
  }));
@@ -5447,6 +5436,7 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
5447
5436
  return resp;
5448
5437
  }
5449
5438
  intercept(request, next) {
5439
+ console.log('interceptor header =====');
5450
5440
  return from(this.handle(request)).pipe(take(1), map((event) => {
5451
5441
  return event;
5452
5442
  }), mergeMap((resp) => {
@@ -5455,6 +5445,8 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
5455
5445
  });
5456
5446
  return next.handle(request);
5457
5447
  }), catchError((error) => {
5448
+ console.log('interceptor header =====');
5449
+ console.log(error);
5458
5450
  this.errorHandlingService.handleError(error);
5459
5451
  return throwError(error);
5460
5452
  }));