unhead 1.11.9 → 1.11.11

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 CHANGED
@@ -245,7 +245,7 @@ const TemplateParamsPlugin = shared.defineHeadPlugin((head) => ({
245
245
  } else if (tag.processTemplateParams || tag.tag === "titleTemplate" || tag.tag === "title") {
246
246
  for (const p of contentAttrs) {
247
247
  if (typeof tag[p] === "string")
248
- tag[p] = shared.processTemplateParams(tag[p], params, sep);
248
+ tag[p] = shared.processTemplateParams(tag[p], params, sep, tag.tag === "script" && tag.props.type.endsWith("json"));
249
249
  }
250
250
  }
251
251
  }
package/dist/index.mjs CHANGED
@@ -244,7 +244,7 @@ const TemplateParamsPlugin = defineHeadPlugin((head) => ({
244
244
  } else if (tag.processTemplateParams || tag.tag === "titleTemplate" || tag.tag === "title") {
245
245
  for (const p of contentAttrs) {
246
246
  if (typeof tag[p] === "string")
247
- tag[p] = processTemplateParams(tag[p], params, sep);
247
+ tag[p] = processTemplateParams(tag[p], params, sep, tag.tag === "script" && tag.props.type.endsWith("json"));
248
248
  }
249
249
  }
250
250
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "1.11.9",
4
+ "version": "1.11.11",
5
5
  "author": {
6
6
  "name": "Harlan Wilton",
7
7
  "email": "harlan@harlanzw.com",
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "hookable": "^5.5.3",
37
- "@unhead/dom": "1.11.9",
38
- "@unhead/schema": "1.11.9",
39
- "@unhead/shared": "1.11.9"
37
+ "@unhead/dom": "1.11.11",
38
+ "@unhead/shared": "1.11.11",
39
+ "@unhead/schema": "1.11.11"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild .",