@unhead/vue 1.0.5 → 1.0.6

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
@@ -790,7 +790,7 @@ const VueHeadMixin = {
790
790
  const options = instance.type;
791
791
  if (!options || !("head" in options))
792
792
  return;
793
- const source = typeof options.head === "function" ? () => options.head() : options.head;
793
+ const source = typeof options.head === "function" ? () => options.head.call(instance.proxy) : options.head;
794
794
  useHead(source);
795
795
  }
796
796
  };
package/dist/index.mjs CHANGED
@@ -788,7 +788,7 @@ const VueHeadMixin = {
788
788
  const options = instance.type;
789
789
  if (!options || !("head" in options))
790
790
  return;
791
- const source = typeof options.head === "function" ? () => options.head() : options.head;
791
+ const source = typeof options.head === "function" ? () => options.head.call(instance.proxy) : options.head;
792
792
  useHead(source);
793
793
  }
794
794
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "packageManager": "pnpm@7.17.1",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "hookable": "^5.4.2",
37
- "@unhead/schema": "1.0.5"
37
+ "@unhead/schema": "1.0.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "vue": "^3.2.45",
41
- "unhead": "1.0.5"
41
+ "unhead": "1.0.6"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "unbuild .",