@unhead/vue 1.10.0-beta.5 → 1.10.0
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 +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -117,7 +117,6 @@ function useScript(_input, _options) {
|
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
script = unhead.useScript(input, options);
|
|
120
|
-
script.status = status;
|
|
121
120
|
if (scope) {
|
|
122
121
|
const _registerCb = (key2, cb) => {
|
|
123
122
|
if (!script._cbs[key2]) {
|
|
@@ -138,7 +137,13 @@ function useScript(_input, _options) {
|
|
|
138
137
|
script.onLoaded = (cb) => _registerCb("loaded", cb);
|
|
139
138
|
script.onError = (cb) => _registerCb("error", cb);
|
|
140
139
|
}
|
|
141
|
-
return script
|
|
140
|
+
return new Proxy(script, {
|
|
141
|
+
get(_2, key2, a) {
|
|
142
|
+
if (key2 === "status")
|
|
143
|
+
return status;
|
|
144
|
+
return Reflect.get(_2, key2, a);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
exports.CapoPlugin = unhead.CapoPlugin;
|
package/dist/index.mjs
CHANGED
|
@@ -117,7 +117,6 @@ function useScript(_input, _options) {
|
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
script = useScript$1(input, options);
|
|
120
|
-
script.status = status;
|
|
121
120
|
if (scope) {
|
|
122
121
|
const _registerCb = (key2, cb) => {
|
|
123
122
|
if (!script._cbs[key2]) {
|
|
@@ -138,7 +137,13 @@ function useScript(_input, _options) {
|
|
|
138
137
|
script.onLoaded = (cb) => _registerCb("loaded", cb);
|
|
139
138
|
script.onError = (cb) => _registerCb("error", cb);
|
|
140
139
|
}
|
|
141
|
-
return script
|
|
140
|
+
return new Proxy(script, {
|
|
141
|
+
get(_2, key2, a) {
|
|
142
|
+
if (key2 === "status")
|
|
143
|
+
return status;
|
|
144
|
+
return Reflect.get(_2, key2, a);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
export { Vue2ProvideUnheadPlugin, VueHeadMixin, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.10.0
|
|
4
|
+
"version": "1.10.0",
|
|
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": "1.10.0
|
|
70
|
-
"@unhead/
|
|
71
|
-
"@unhead/
|
|
69
|
+
"unhead": "1.10.0",
|
|
70
|
+
"@unhead/schema": "1.10.0",
|
|
71
|
+
"@unhead/shared": "1.10.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "unbuild .",
|