@unhead/vue 0.6.1 → 0.6.2

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
@@ -43,12 +43,15 @@ function createHead(options = {}) {
43
43
  domDelayFn: (fn) => setTimeout(() => vue.nextTick(() => fn()), 10),
44
44
  plugins
45
45
  });
46
- head.install = (app) => {
47
- if (Vue3) {
48
- app.config.globalProperties.$unhead = head;
49
- app.provide(headSymbol, head);
46
+ const vuePlugin = {
47
+ install(app) {
48
+ if (Vue3) {
49
+ app.config.globalProperties.$unhead = head;
50
+ app.provide(headSymbol, head);
51
+ }
50
52
  }
51
53
  };
54
+ head.install = vuePlugin.install;
52
55
  return head;
53
56
  }
54
57
 
package/dist/index.mjs CHANGED
@@ -41,12 +41,15 @@ function createHead(options = {}) {
41
41
  domDelayFn: (fn) => setTimeout(() => nextTick(() => fn()), 10),
42
42
  plugins
43
43
  });
44
- head.install = (app) => {
45
- if (Vue3) {
46
- app.config.globalProperties.$unhead = head;
47
- app.provide(headSymbol, head);
44
+ const vuePlugin = {
45
+ install(app) {
46
+ if (Vue3) {
47
+ app.config.globalProperties.$unhead = head;
48
+ app.provide(headSymbol, head);
49
+ }
48
50
  }
49
51
  };
52
+ head.install = vuePlugin.install;
50
53
  return head;
51
54
  }
52
55
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "packageManager": "pnpm@7.14.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -33,13 +33,13 @@
33
33
  "vue": ">=2.7 || >=3"
34
34
  },
35
35
  "dependencies": {
36
- "@unhead/dom": "0.6.1",
37
- "@unhead/schema": "0.6.1",
36
+ "@unhead/dom": "0.6.2",
37
+ "@unhead/schema": "0.6.2",
38
38
  "@vueuse/shared": "latest",
39
- "unhead": "0.6.1"
39
+ "unhead": "0.6.2"
40
40
  },
41
41
  "devDependencies": {
42
- "vue": "^3.2.42"
42
+ "vue": "^3.2.45"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "unbuild .",