@messaia/cdk 19.0.0-rc12 → 19.0.0

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.
@@ -24644,7 +24644,12 @@ class BaseInterceptor {
24644
24644
  /* Show warnings from response headers if available */
24645
24645
  var warning = event.headers.get("Warning");
24646
24646
  if (warning) {
24647
- this.snackBar.open(warning, "OK", { duration: 6000, panelClass: ['warn'] });
24647
+ /* First, replace the plus signs (+) with spaces */
24648
+ const withSpaces = warning.replace(/\+/g, ' ');
24649
+ /* Then, decode the URL-encoded characters */
24650
+ const decodedString = decodeURIComponent(withSpaces);
24651
+ /* Finally, show the decoded warning message */
24652
+ this.snackBar.open(decodedString, "OK", { duration: 6000, panelClass: ['warn'] });
24648
24653
  }
24649
24654
  }
24650
24655
  }