unhead 1.4.0 → 1.4.1
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -196,7 +196,7 @@ const TemplateParamsPlugin = shared.defineHeadPlugin({
|
|
|
196
196
|
tag.props.content = shared.processTemplateParams(tag.props.content, params, sep);
|
|
197
197
|
else if (tag.tag === "link" && typeof tag.props.href === "string")
|
|
198
198
|
tag.props.href = shared.processTemplateParams(tag.props.href, params, sep);
|
|
199
|
-
else if (tag.tag === "script" && ["application/json", "application/ld+json"].includes(tag.props.type) && tag.innerHTML)
|
|
199
|
+
else if (tag.tag === "script" && ["application/json", "application/ld+json"].includes(tag.props.type) && tag.innerHTML && tag.props.id !== "unhead:payload")
|
|
200
200
|
tag.innerHTML = shared.processTemplateParams(tag.innerHTML, params, sep);
|
|
201
201
|
}
|
|
202
202
|
ctx.tags = tags.filter((tag) => tag.tag !== "templateParams");
|
package/dist/index.mjs
CHANGED
|
@@ -195,7 +195,7 @@ const TemplateParamsPlugin = defineHeadPlugin({
|
|
|
195
195
|
tag.props.content = processTemplateParams(tag.props.content, params, sep);
|
|
196
196
|
else if (tag.tag === "link" && typeof tag.props.href === "string")
|
|
197
197
|
tag.props.href = processTemplateParams(tag.props.href, params, sep);
|
|
198
|
-
else if (tag.tag === "script" && ["application/json", "application/ld+json"].includes(tag.props.type) && tag.innerHTML)
|
|
198
|
+
else if (tag.tag === "script" && ["application/json", "application/ld+json"].includes(tag.props.type) && tag.innerHTML && tag.props.id !== "unhead:payload")
|
|
199
199
|
tag.innerHTML = processTemplateParams(tag.innerHTML, params, sep);
|
|
200
200
|
}
|
|
201
201
|
ctx.tags = tags.filter((tag) => tag.tag !== "templateParams");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"hookable": "^5.5.3",
|
|
33
|
-
"@unhead/dom": "1.4.
|
|
34
|
-
"@unhead/schema": "1.4.
|
|
35
|
-
"@unhead/shared": "1.4.
|
|
33
|
+
"@unhead/dom": "1.4.1",
|
|
34
|
+
"@unhead/schema": "1.4.1",
|
|
35
|
+
"@unhead/shared": "1.4.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "unbuild .",
|