@lynx-js/web-core-server 0.19.7 → 0.19.8
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/CHANGELOG.md +2 -0
- package/dist/131.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/dist/131.js
CHANGED
|
@@ -944,7 +944,7 @@ const XSSDetector = /<\s*script/g;
|
|
|
944
944
|
const templateXImage = (attributes)=>{
|
|
945
945
|
const { src } = attributes;
|
|
946
946
|
if (src && XSSDetector.test(src)) throw new Error("detected <script, this is a potential XSS attack, please check your src");
|
|
947
|
-
return `<img part="img" alt=""
|
|
947
|
+
return `<img part="img" alt="" id="img" ${src ? `src="${src}"` : ''}/> `;
|
|
948
948
|
};
|
|
949
949
|
const templateFilterImage = templateXImage;
|
|
950
950
|
const templateXInput = `<style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-server",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"rsbuild-plugin-arethetypeswrong": "0.
|
|
26
|
+
"rsbuild-plugin-arethetypeswrong": "0.2.0",
|
|
27
27
|
"rsbuild-plugin-publint": "0.3.4",
|
|
28
28
|
"@lynx-js/offscreen-document": "0.1.4",
|
|
29
|
-
"@lynx-js/web-constants": "0.19.
|
|
30
|
-
"@lynx-js/web-elements": "0.11.
|
|
31
|
-
"@lynx-js/web-mainthread-apis": "0.19.
|
|
32
|
-
"@lynx-js/web-worker-rpc": "0.19.
|
|
29
|
+
"@lynx-js/web-constants": "0.19.8",
|
|
30
|
+
"@lynx-js/web-elements": "0.11.2",
|
|
31
|
+
"@lynx-js/web-mainthread-apis": "0.19.8",
|
|
32
|
+
"@lynx-js/web-worker-rpc": "0.19.8"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rslib build",
|