@bhxch/vviewer-sanitize 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -4,6 +4,12 @@
4
4
  `data:` 按属性收窄、外域加载向量拦截、服务端图表 SVG 片段净化。所有不可信渲染
5
5
  HTML 必须经本包出口进入 DOM,调用方不得各自直连 DOMPurify 或另设净化规则。
6
6
 
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install @bhxch/vviewer-sanitize
11
+ ```
12
+
7
13
  ## 导出面
8
14
 
9
15
  | 导出 | 用途 | 既有消费点 |
@@ -50,3 +56,8 @@ HTML 必须经本包出口进入 DOM,调用方不得各自直连 DOMPurify 或
50
56
  自 `packages/vviewer-render-text/src/markdown/sanitize.ts` 迁入(零内部依赖、仅
51
57
  dompurify)。过渡期原位置保留,render-text 内部消费方与 render-doc 改指
52
58
  `@bhxch/vviewer-sanitize` 后移除原位置与 render-text 的 `./sanitize` 子路径导出。
59
+
60
+ ## 仓库与许可
61
+
62
+ - 仓库:[bhxch/vviewer](https://github.com/bhxch/vviewer),源码位于 `packages/vviewer-sanitize/`
63
+ - 许可:Apache-2.0;第三方依赖许可见仓库 `THIRD_PARTY_NOTICES.md`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhxch/vviewer-sanitize",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -28,5 +28,5 @@
28
28
  "dependencies": {
29
29
  "dompurify": "^3.4.16"
30
30
  },
31
- "contentHash": "846f2e368ab0db9f"
31
+ "contentHash": "1e7901c6c9267a2a"
32
32
  }