unhead 1.0.5 → 1.0.7

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
@@ -27,6 +27,8 @@ async function normaliseTag(tagName, input) {
27
27
  ["children", "innerHtml", "innerHTML"].forEach((key) => {
28
28
  if (typeof tag.props[key] !== "undefined") {
29
29
  tag.children = tag.props[key];
30
+ if (typeof tag.children === "object")
31
+ tag.children = JSON.stringify(tag.children);
30
32
  delete tag.props[key];
31
33
  }
32
34
  });
package/dist/index.mjs CHANGED
@@ -25,6 +25,8 @@ async function normaliseTag(tagName, input) {
25
25
  ["children", "innerHtml", "innerHTML"].forEach((key) => {
26
26
  if (typeof tag.props[key] !== "undefined") {
27
27
  tag.children = tag.props[key];
28
+ if (typeof tag.children === "object")
29
+ tag.children = JSON.stringify(tag.children);
28
30
  delete tag.props[key];
29
31
  }
30
32
  });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "1.0.5",
5
- "packageManager": "pnpm@7.17.1",
4
+ "version": "1.0.7",
5
+ "packageManager": "pnpm@7.18.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -31,11 +31,11 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "hookable": "^5.4.2",
34
- "@unhead/dom": "1.0.5",
35
- "@unhead/schema": "1.0.5"
34
+ "@unhead/dom": "1.0.7",
35
+ "@unhead/schema": "1.0.7"
36
36
  },
37
37
  "devDependencies": {
38
- "zhead": "^1.0.4"
38
+ "zhead": "^1.0.7"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "unbuild .",