@kms-ngx-ui/presentational 0.0.13 → 0.0.14

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.
@@ -1365,7 +1365,7 @@
1365
1365
  this.sanitizer = sanitizer;
1366
1366
  }
1367
1367
  SafeHtmlPipe.prototype.transform = function (html) {
1368
- return this.sanitizer.bypassSecurityTrustResourceUrl(html);
1368
+ return this.sanitizer.bypassSecurityTrustHtml(html);
1369
1369
  };
1370
1370
  return SafeHtmlPipe;
1371
1371
  }());
@@ -1406,8 +1406,13 @@
1406
1406
  function SafeUrlPipe(sanitizer) {
1407
1407
  this.sanitizer = sanitizer;
1408
1408
  }
1409
- SafeUrlPipe.prototype.transform = function (style) {
1410
- return this.sanitizer.bypassSecurityTrustUrl(style);
1409
+ SafeUrlPipe.prototype.transform = function (url, type) {
1410
+ switch (type) {
1411
+ case 'url':
1412
+ return this.sanitizer.bypassSecurityTrustUrl(url);
1413
+ case 'resourceUrl':
1414
+ return this.sanitizer.bypassSecurityTrustResourceUrl(url);
1415
+ }
1411
1416
  };
1412
1417
  return SafeUrlPipe;
1413
1418
  }());