@unhead/shared 1.7.2 → 1.7.3
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 +0 -3
- package/dist/index.mjs +0 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -594,9 +594,6 @@ async function normaliseTag(tagName, input, e) {
|
|
|
594
594
|
if (typeof tag.innerHTML === "object") {
|
|
595
595
|
tag.innerHTML = JSON.stringify(tag.innerHTML);
|
|
596
596
|
tag.props.type = tag.props.type || "application/json";
|
|
597
|
-
} else if (tag.tag === "script" && tag.innerHTML && (/^(https?:)?\/\//.test(tag.innerHTML) || tag.innerHTML.startsWith("/"))) {
|
|
598
|
-
tag.props.src = tag.innerHTML;
|
|
599
|
-
delete tag.innerHTML;
|
|
600
597
|
}
|
|
601
598
|
if (tag.innerHTML && ["application/ld+json", "application/json"].includes(tag.props.type))
|
|
602
599
|
tag.innerHTML = tag.innerHTML.replace(/</g, "\\u003C");
|
package/dist/index.mjs
CHANGED
|
@@ -592,9 +592,6 @@ async function normaliseTag(tagName, input, e) {
|
|
|
592
592
|
if (typeof tag.innerHTML === "object") {
|
|
593
593
|
tag.innerHTML = JSON.stringify(tag.innerHTML);
|
|
594
594
|
tag.props.type = tag.props.type || "application/json";
|
|
595
|
-
} else if (tag.tag === "script" && tag.innerHTML && (/^(https?:)?\/\//.test(tag.innerHTML) || tag.innerHTML.startsWith("/"))) {
|
|
596
|
-
tag.props.src = tag.innerHTML;
|
|
597
|
-
delete tag.innerHTML;
|
|
598
595
|
}
|
|
599
596
|
if (tag.innerHTML && ["application/ld+json", "application/json"].includes(tag.props.type))
|
|
600
597
|
tag.innerHTML = tag.innerHTML.replace(/</g, "\\u003C");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.3",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@unhead/schema": "1.7.
|
|
37
|
+
"@unhead/schema": "1.7.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"packrup": "^0.1.0"
|