@unhead/vue 1.10.3 → 1.10.4

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
@@ -122,8 +122,8 @@ function registerVueScopeHandlers(script, scope) {
122
122
  }
123
123
  function useScript(_input, _options) {
124
124
  const input = typeof _input === "string" ? { src: _input } : _input;
125
- const head = injectHead.injectHead();
126
125
  const options = _options || {};
126
+ const head = options?.head || injectHead.injectHead();
127
127
  options.head = head;
128
128
  const scope = vue.getCurrentInstance();
129
129
  options.eventContext = scope;
package/dist/index.mjs CHANGED
@@ -122,8 +122,8 @@ function registerVueScopeHandlers(script, scope) {
122
122
  }
123
123
  function useScript(_input, _options) {
124
124
  const input = typeof _input === "string" ? { src: _input } : _input;
125
- const head = injectHead();
126
125
  const options = _options || {};
126
+ const head = options?.head || injectHead();
127
127
  options.head = head;
128
128
  const scope = getCurrentInstance();
129
129
  options.eventContext = scope;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "1.10.3",
4
+ "version": "1.10.4",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -66,9 +66,9 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "hookable": "^5.5.3",
69
- "@unhead/schema": "1.10.3",
70
- "@unhead/shared": "1.10.3",
71
- "unhead": "1.10.3"
69
+ "@unhead/schema": "1.10.4",
70
+ "unhead": "1.10.4",
71
+ "@unhead/shared": "1.10.4"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "unbuild .",