@unhead/vue 1.0.6 → 1.0.8

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
@@ -229,6 +229,8 @@ async function normaliseTag(tagName, input) {
229
229
  ["children", "innerHtml", "innerHTML"].forEach((key) => {
230
230
  if (typeof tag.props[key] !== "undefined") {
231
231
  tag.children = tag.props[key];
232
+ if (typeof tag.children === "object")
233
+ tag.children = JSON.stringify(tag.children);
232
234
  delete tag.props[key];
233
235
  }
234
236
  });
@@ -635,6 +637,10 @@ function createHeadCore(options = {}) {
635
637
  get hooks() {
636
638
  return hooks;
637
639
  },
640
+ use(plugin) {
641
+ if (plugin.hooks)
642
+ hooks.addHooks(plugin.hooks);
643
+ },
638
644
  push(input, options2) {
639
645
  const activeEntry = {
640
646
  _i: _eid++,
package/dist/index.mjs CHANGED
@@ -227,6 +227,8 @@ async function normaliseTag(tagName, input) {
227
227
  ["children", "innerHtml", "innerHTML"].forEach((key) => {
228
228
  if (typeof tag.props[key] !== "undefined") {
229
229
  tag.children = tag.props[key];
230
+ if (typeof tag.children === "object")
231
+ tag.children = JSON.stringify(tag.children);
230
232
  delete tag.props[key];
231
233
  }
232
234
  });
@@ -633,6 +635,10 @@ function createHeadCore(options = {}) {
633
635
  get hooks() {
634
636
  return hooks;
635
637
  },
638
+ use(plugin) {
639
+ if (plugin.hooks)
640
+ hooks.addHooks(plugin.hooks);
641
+ },
636
642
  push(input, options2) {
637
643
  const activeEntry = {
638
644
  _i: _eid++,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "1.0.6",
5
- "packageManager": "pnpm@7.17.1",
4
+ "version": "1.0.8",
5
+ "packageManager": "pnpm@7.18.1",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "hookable": "^5.4.2",
37
- "@unhead/schema": "1.0.6"
37
+ "@unhead/schema": "1.0.8"
38
38
  },
39
39
  "devDependencies": {
40
40
  "vue": "^3.2.45",
41
- "unhead": "1.0.6"
41
+ "unhead": "1.0.8"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "unbuild .",