@unhead/shared 1.8.4 → 1.8.5

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
@@ -521,8 +521,6 @@ async function normaliseTag(tagName, input, e) {
521
521
  tag.innerHTML = JSON.stringify(tag.innerHTML);
522
522
  tag.props.type = tag.props.type || "application/json";
523
523
  }
524
- if (tag.innerHTML && ["application/ld+json", "application/json"].includes(tag.props.type))
525
- tag.innerHTML = tag.innerHTML.replace(/</g, "\\u003C");
526
524
  }
527
525
  return Array.isArray(tag.props.content) ? tag.props.content.map((v) => ({ ...tag, props: { ...tag.props, content: v } })) : tag;
528
526
  }
package/dist/index.mjs CHANGED
@@ -519,8 +519,6 @@ async function normaliseTag(tagName, input, e) {
519
519
  tag.innerHTML = JSON.stringify(tag.innerHTML);
520
520
  tag.props.type = tag.props.type || "application/json";
521
521
  }
522
- if (tag.innerHTML && ["application/ld+json", "application/json"].includes(tag.props.type))
523
- tag.innerHTML = tag.innerHTML.replace(/</g, "\\u003C");
524
522
  }
525
523
  return Array.isArray(tag.props.content) ? tag.props.content.map((v) => ({ ...tag, props: { ...tag.props, content: v } })) : tag;
526
524
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/shared",
3
3
  "type": "module",
4
- "version": "1.8.4",
4
+ "version": "1.8.5",
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.8.4"
37
+ "@unhead/schema": "1.8.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "packrup": "^0.1.0"