monkey-front-core 0.0.594 → 0.0.596

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.
@@ -5227,8 +5227,11 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
5227
5227
  }
5228
5228
  showMessage(message, error, mkc) {
5229
5229
  const { snackbarService } = this;
5230
+ console.log('#########');
5231
+ console.log(error.status);
5230
5232
  if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
5231
5233
  const keepOnUrlChange = error.status === 401;
5234
+ console.log('keepOnUrlChange', keepOnUrlChange);
5232
5235
  snackbarService.show({
5233
5236
  title: this.__i18n?.TITLE,
5234
5237
  message,
@@ -5259,6 +5262,9 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
5259
5262
  if (notifications) {
5260
5263
  customMessage = notifications;
5261
5264
  }
5265
+ console.log('@@@@@');
5266
+ console.log(error);
5267
+ console.log('@@@@@');
5262
5268
  if (!customMessage) {
5263
5269
  if (error.error instanceof Blob) {
5264
5270
  const blob = new Blob([error.error], {
@@ -5314,11 +5320,17 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
5314
5320
  }
5315
5321
  handleErrorRefreshToken(error, mkc) {
5316
5322
  const hasToRefresh = this.monkeyecxAuthenticationService.refreshShouldHappen(error);
5323
+ console.log('!!!!!!!!!');
5324
+ console.log(error.status);
5325
+ console.log(hasToRefresh);
5317
5326
  if ((error.status === 401 || error.status === 400) && hasToRefresh) {
5327
+ console.log('==========1');
5318
5328
  NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack(), {});
5329
+ console.log('==========2');
5319
5330
  setTimeout(() => {
5320
5331
  this.handleMessage(error, mkc);
5321
5332
  }, 1200);
5333
+ console.log('==========3');
5322
5334
  }
5323
5335
  else if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
5324
5336
  this.handleMessage(error, mkc);