@unhead/dom 0.4.6 → 0.4.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/dist/index.cjs +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -31,8 +31,11 @@ function tagDedupeKey(tag) {
|
|
|
31
31
|
if (tagName === "meta")
|
|
32
32
|
name.push(...["name", "property", "http-equiv"]);
|
|
33
33
|
for (const n of name) {
|
|
34
|
-
if (typeof props[n] !== "undefined"
|
|
35
|
-
|
|
34
|
+
if (typeof props[n] !== "undefined") {
|
|
35
|
+
const val = String(props[n]);
|
|
36
|
+
if (ArrayMetaProperties.findIndex((p) => val.startsWith(p)) !== -1)
|
|
37
|
+
return false;
|
|
38
|
+
return `${tagName}:${n}:${val}`;
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
return false;
|
package/dist/index.mjs
CHANGED
|
@@ -29,8 +29,11 @@ function tagDedupeKey(tag) {
|
|
|
29
29
|
if (tagName === "meta")
|
|
30
30
|
name.push(...["name", "property", "http-equiv"]);
|
|
31
31
|
for (const n of name) {
|
|
32
|
-
if (typeof props[n] !== "undefined"
|
|
33
|
-
|
|
32
|
+
if (typeof props[n] !== "undefined") {
|
|
33
|
+
const val = String(props[n]);
|
|
34
|
+
if (ArrayMetaProperties.findIndex((p) => val.startsWith(p)) !== -1)
|
|
35
|
+
return false;
|
|
36
|
+
return `${tagName}:${n}:${val}`;
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/dom",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.8",
|
|
5
5
|
"packageManager": "pnpm@7.14.0",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@unhead/schema": "0.4.
|
|
33
|
+
"@unhead/schema": "0.4.8"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"zhead": "1.0.0-beta.
|
|
36
|
+
"zhead": "1.0.0-beta.13"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild .",
|