@unhead/vue 2.0.17 → 2.0.19
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/client.mjs +3 -2
- package/dist/components.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/legacy.mjs +2 -2
- package/dist/scripts.mjs +2 -2
- package/dist/server.mjs +3 -2
- package/dist/shared/{vue.nvpYXC6D.mjs → vue.BVUAdATk.mjs} +1 -1
- package/dist/shared/{vue.BYLJNEcq.mjs → vue.Bm-NbY4b.mjs} +5 -3
- package/dist/shared/{vue.cHBs6zvy.mjs → vue.CeCEzk2b.mjs} +1 -1
- package/dist/utils.mjs +1 -0
- package/package.json +3 -3
package/dist/client.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { createHead as createHead$1, createDebouncedFn, renderDOMHead } from 'unhead/client';
|
|
2
2
|
export { renderDOMHead } from 'unhead/client';
|
|
3
|
-
import { v as vueInstall } from './shared/vue.
|
|
4
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
3
|
+
import { v as vueInstall } from './shared/vue.Bm-NbY4b.mjs';
|
|
4
|
+
export { V as VueHeadMixin } from './shared/vue.BVUAdATk.mjs';
|
|
5
5
|
import 'unhead/plugins';
|
|
6
6
|
import 'unhead/utils';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './shared/vue.N9zWjxoK.mjs';
|
|
9
9
|
|
|
10
|
+
// @__NO_SIDE_EFFECTS__
|
|
10
11
|
function createHead(options = {}) {
|
|
11
12
|
const head = createHead$1({
|
|
12
13
|
domOptions: {
|
package/dist/components.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onBeforeUnmount, watchEffect } from 'vue';
|
|
2
|
-
import { u as useHead } from './shared/vue.
|
|
2
|
+
import { u as useHead } from './shared/vue.Bm-NbY4b.mjs';
|
|
3
3
|
import 'unhead/plugins';
|
|
4
4
|
import 'unhead/utils';
|
|
5
5
|
import './shared/vue.N9zWjxoK.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createUnhead } from 'unhead';
|
|
2
2
|
export { createUnhead } from 'unhead';
|
|
3
|
-
export { h as headSymbol, i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.
|
|
3
|
+
export { h as headSymbol, i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.Bm-NbY4b.mjs';
|
|
4
4
|
export { resolveUnrefHeadInput } from './utils.mjs';
|
|
5
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
6
|
-
export { u as useScript } from './shared/vue.
|
|
5
|
+
export { V as VueHeadMixin } from './shared/vue.BVUAdATk.mjs';
|
|
6
|
+
export { u as useScript } from './shared/vue.CeCEzk2b.mjs';
|
|
7
7
|
import 'unhead/plugins';
|
|
8
8
|
import 'unhead/utils';
|
|
9
9
|
import 'vue';
|
package/dist/legacy.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createUnhead } from 'unhead';
|
|
2
2
|
import { inject, ref, watchEffect, unref, watch, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
|
|
3
3
|
import { createHead as createHead$1 } from './client.mjs';
|
|
4
|
-
import { h as headSymbol } from './shared/vue.
|
|
4
|
+
import { h as headSymbol } from './shared/vue.Bm-NbY4b.mjs';
|
|
5
5
|
import { V as VueResolver } from './shared/vue.N9zWjxoK.mjs';
|
|
6
6
|
import { createHead as createHead$2 } from './server.mjs';
|
|
7
7
|
import { walkResolver } from 'unhead/utils';
|
|
8
8
|
import { defineHeadPlugin, DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin, SafeInputPlugin, FlatMetaPlugin } from 'unhead/plugins';
|
|
9
9
|
import 'unhead/client';
|
|
10
|
-
import './shared/vue.
|
|
10
|
+
import './shared/vue.BVUAdATk.mjs';
|
|
11
11
|
import 'unhead/server';
|
|
12
12
|
|
|
13
13
|
const createHeadCore = createUnhead;
|
package/dist/scripts.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createSpyProxy, resolveScriptKey } from 'unhead/scripts';
|
|
2
|
-
export { u as useScript } from './shared/vue.
|
|
2
|
+
export { u as useScript } from './shared/vue.CeCEzk2b.mjs';
|
|
3
3
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
4
|
+
import './shared/vue.Bm-NbY4b.mjs';
|
|
5
5
|
import 'unhead/plugins';
|
|
6
6
|
import 'unhead/utils';
|
|
7
7
|
import './shared/vue.N9zWjxoK.mjs';
|
package/dist/server.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { createHead as createHead$1 } from 'unhead/server';
|
|
2
2
|
export { extractUnheadInputFromHtml, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
|
|
3
|
-
import { v as vueInstall } from './shared/vue.
|
|
3
|
+
import { v as vueInstall } from './shared/vue.Bm-NbY4b.mjs';
|
|
4
4
|
import { V as VueResolver } from './shared/vue.N9zWjxoK.mjs';
|
|
5
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
5
|
+
export { V as VueHeadMixin } from './shared/vue.BVUAdATk.mjs';
|
|
6
6
|
import 'unhead/plugins';
|
|
7
7
|
import 'unhead/utils';
|
|
8
8
|
import 'vue';
|
|
9
9
|
|
|
10
|
+
// @__NO_SIDE_EFFECTS__
|
|
10
11
|
function createHead(options = {}) {
|
|
11
12
|
const head = createHead$1({
|
|
12
13
|
...options,
|
|
@@ -4,6 +4,7 @@ import { hasInjectionContext, inject, ref, watchEffect, getCurrentInstance, onBe
|
|
|
4
4
|
import { V as VueResolver } from './vue.N9zWjxoK.mjs';
|
|
5
5
|
|
|
6
6
|
const headSymbol = "usehead";
|
|
7
|
+
// @__NO_SIDE_EFFECTS__
|
|
7
8
|
function vueInstall(head) {
|
|
8
9
|
const plugin = {
|
|
9
10
|
install(app) {
|
|
@@ -15,6 +16,7 @@ function vueInstall(head) {
|
|
|
15
16
|
return plugin.install;
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
20
|
function injectHead() {
|
|
19
21
|
if (hasInjectionContext()) {
|
|
20
22
|
const instance = inject(headSymbol);
|
|
@@ -26,7 +28,7 @@ function injectHead() {
|
|
|
26
28
|
throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
|
|
27
29
|
}
|
|
28
30
|
function useHead(input, options = {}) {
|
|
29
|
-
const head = options.head || injectHead();
|
|
31
|
+
const head = options.head || /* @__PURE__ */ injectHead();
|
|
30
32
|
return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
|
|
31
33
|
}
|
|
32
34
|
function clientUseHead(head, input, options = {}) {
|
|
@@ -55,13 +57,13 @@ function clientUseHead(head, input, options = {}) {
|
|
|
55
57
|
return entry;
|
|
56
58
|
}
|
|
57
59
|
function useHeadSafe(input = {}, options = {}) {
|
|
58
|
-
const head = options.head || injectHead();
|
|
60
|
+
const head = options.head || /* @__PURE__ */ injectHead();
|
|
59
61
|
head.use(SafeInputPlugin);
|
|
60
62
|
options._safe = true;
|
|
61
63
|
return useHead(input, options);
|
|
62
64
|
}
|
|
63
65
|
function useSeoMeta(input = {}, options = {}) {
|
|
64
|
-
const head = options.head || injectHead();
|
|
66
|
+
const head = options.head || /* @__PURE__ */ injectHead();
|
|
65
67
|
head.use(FlatMetaPlugin);
|
|
66
68
|
const { title, titleTemplate, ...meta } = input;
|
|
67
69
|
return useHead({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useScript as useScript$1 } from 'unhead/scripts';
|
|
2
2
|
import { getCurrentInstance, onMounted, isRef, watch, onScopeDispose, ref } from 'vue';
|
|
3
|
-
import { i as injectHead } from './vue.
|
|
3
|
+
import { i as injectHead } from './vue.Bm-NbY4b.mjs';
|
|
4
4
|
|
|
5
5
|
function registerVueScopeHandlers(script, scope) {
|
|
6
6
|
if (!scope) {
|
package/dist/utils.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.19",
|
|
5
5
|
"description": "Full-stack <head> manager built for Vue.",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"hookable": "^5.5.3",
|
|
106
|
-
"unhead": "2.0.
|
|
106
|
+
"unhead": "2.0.19"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"vue": "^3.5.
|
|
109
|
+
"vue": "^3.5.22"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
112
|
"build": "unbuild",
|