@unhead/dom 1.0.3 → 1.0.4
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/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,8 @@ const setAttrs = (ctx, markSideEffect) => {
|
|
|
41
41
|
value = String(value);
|
|
42
42
|
const attrSdeKey = `attr:${k}`;
|
|
43
43
|
if (k === "class") {
|
|
44
|
+
if (!value)
|
|
45
|
+
return;
|
|
44
46
|
for (const c of value.split(" ")) {
|
|
45
47
|
const classSdeKey = `${attrSdeKey}:${c}`;
|
|
46
48
|
if (markSideEffect)
|
package/dist/index.mjs
CHANGED
|
@@ -39,6 +39,8 @@ const setAttrs = (ctx, markSideEffect) => {
|
|
|
39
39
|
value = String(value);
|
|
40
40
|
const attrSdeKey = `attr:${k}`;
|
|
41
41
|
if (k === "class") {
|
|
42
|
+
if (!value)
|
|
43
|
+
return;
|
|
42
44
|
for (const c of value.split(" ")) {
|
|
43
45
|
const classSdeKey = `${attrSdeKey}:${c}`;
|
|
44
46
|
if (markSideEffect)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/dom",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"packageManager": "pnpm@7.17.0",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@unhead/schema": "1.0.
|
|
33
|
+
"@unhead/schema": "1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"zhead": "^1.0.4"
|