@libs-ui/pipes-security-trust 0.2.357-8 → 0.2.357-9
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/README.md +1 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -226,10 +226,4 @@ const safeUrl = await pipe.transform('https://www.youtube.com/embed/abc123', 're
|
|
|
226
226
|
|
|
227
227
|
⚠️ **Truyền `false` cho `useXssFilter` là nguy hiểm**: Chỉ tắt XSS Filter khi nội dung HTML đã được sanitize hoàn toàn ở phía server và bạn cần giữ nguyên toàn bộ markup.
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
```bash
|
|
232
|
-
npx nx serve core-ui
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
Truy cập: http://localhost:4500/pipes/security-trust
|
|
229
|
+
⚠️ **`type` không hợp lệ sẽ throw lỗi**: Nếu truyền giá trị `type` khác 5 loại trên (`'html' | 'style' | 'script' | 'url' | 'resourceUrl'`), pipe throw `Error('Invalid safe type specified: ...')`. Vì `transform()` là hàm `async`, lỗi này reject Promise — cần đảm bảo `type` luôn hợp lệ (tốt nhất dùng literal string, không dùng biến động không kiểm soát).
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/pipes-security-trust",
|
|
3
|
-
"version": "0.2.357-
|
|
3
|
+
"version": "0.2.357-9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=18.0.0",
|
|
6
6
|
"@angular/platform-browser": ">=18.0.0",
|
|
7
|
-
"@libs-ui/utils": "0.2.357-
|
|
7
|
+
"@libs-ui/utils": "0.2.357-9"
|
|
8
8
|
},
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"module": "fesm2022/libs-ui-pipes-security-trust.mjs",
|