@unhead/vue 0.3.1 → 0.4.1

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
@@ -14,7 +14,7 @@ function resolveUnrefHeadInput(ref) {
14
14
  if (typeof root === "object") {
15
15
  return Object.fromEntries(
16
16
  Object.entries(root).map(([key, value]) => {
17
- if (key === "titleTemplate")
17
+ if (key === "titleTemplate" || key.startsWith("on"))
18
18
  return [key, vue.unref(value)];
19
19
  return [key, resolveUnrefHeadInput(value)];
20
20
  })
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ function resolveUnrefHeadInput(ref) {
12
12
  if (typeof root === "object") {
13
13
  return Object.fromEntries(
14
14
  Object.entries(root).map(([key, value]) => {
15
- if (key === "titleTemplate")
15
+ if (key === "titleTemplate" || key.startsWith("on"))
16
16
  return [key, unref(value)];
17
17
  return [key, resolveUnrefHeadInput(value)];
18
18
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.4.1",
5
5
  "packageManager": "pnpm@7.14.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -33,10 +33,10 @@
33
33
  "vue": ">=2.7 || >=3"
34
34
  },
35
35
  "dependencies": {
36
- "@unhead/dom": "0.3.1",
37
- "@unhead/schema": "0.3.1",
36
+ "@unhead/dom": "0.4.1",
37
+ "@unhead/schema": "0.4.1",
38
38
  "@vueuse/shared": "latest",
39
- "unhead": "0.3.1"
39
+ "unhead": "0.4.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "vue": "^3.2.42"