@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.
- package/bundles/kms-ngx-ui-presentational.umd.js +8 -3
- package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -1
- package/esm2015/lib/pipes/safe-html.pipe.js +2 -2
- package/esm2015/lib/pipes/safe-url.pipe.js +8 -3
- package/fesm2015/kms-ngx-ui-presentational.js +8 -3
- package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
- package/lib/pipes/safe-url.pipe.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1365,7 +1365,7 @@
|
|
|
1365
1365
|
this.sanitizer = sanitizer;
|
|
1366
1366
|
}
|
|
1367
1367
|
SafeHtmlPipe.prototype.transform = function (html) {
|
|
1368
|
-
return this.sanitizer.
|
|
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 (
|
|
1410
|
-
|
|
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
|
}());
|