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