@unhead/ssr 1.1.16 → 1.1.19

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
@@ -40,9 +40,9 @@ const tagToString = (tag) => {
40
40
  const openTag = `<${tag.tag}${attrs}>`;
41
41
  if (!shared.TagsWithInnerContent.includes(tag.tag))
42
42
  return shared.SelfClosingTags.includes(tag.tag) ? openTag : `${openTag}</${tag.tag}>`;
43
- let content = tag.innerHTML || "";
43
+ let content = String(tag.innerHTML || "");
44
44
  if (tag.textContent)
45
- content = encodeInnerHtml(tag.textContent);
45
+ content = encodeInnerHtml(String(tag.textContent));
46
46
  return shared.SelfClosingTags.includes(tag.tag) ? openTag : `${openTag}${content}</${tag.tag}>`;
47
47
  };
48
48
 
package/dist/index.mjs CHANGED
@@ -38,9 +38,9 @@ const tagToString = (tag) => {
38
38
  const openTag = `<${tag.tag}${attrs}>`;
39
39
  if (!TagsWithInnerContent.includes(tag.tag))
40
40
  return SelfClosingTags.includes(tag.tag) ? openTag : `${openTag}</${tag.tag}>`;
41
- let content = tag.innerHTML || "";
41
+ let content = String(tag.innerHTML || "");
42
42
  if (tag.textContent)
43
- content = encodeInnerHtml(tag.textContent);
43
+ content = encodeInnerHtml(String(tag.textContent));
44
44
  return SelfClosingTags.includes(tag.tag) ? openTag : `${openTag}${content}</${tag.tag}>`;
45
45
  };
46
46
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/ssr",
3
3
  "type": "module",
4
- "version": "1.1.16",
4
+ "version": "1.1.19",
5
5
  "packageManager": "pnpm@7.28.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -30,8 +30,8 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@unhead/schema": "1.1.16",
34
- "@unhead/shared": "1.1.16"
33
+ "@unhead/schema": "1.1.19",
34
+ "@unhead/shared": "1.1.19"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "unbuild .",