@monkeyplus/flow 6.0.54 → 6.0.55
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.
|
File without changes
|
package/package.json
CHANGED
package/server/lib/pages.mjs
CHANGED
|
@@ -7,7 +7,8 @@ import { localizeRoutePattern, normalizePath, toPublicRoute } from "../../src/ru
|
|
|
7
7
|
function mergeHeadDefinitions(...heads) {
|
|
8
8
|
const result = {};
|
|
9
9
|
for (const head of heads) {
|
|
10
|
-
if (!head)
|
|
10
|
+
if (!head)
|
|
11
|
+
continue;
|
|
11
12
|
for (const [key, value] of Object.entries(head)) {
|
|
12
13
|
if (["meta", "link", "script", "style", "noscript"].includes(key)) {
|
|
13
14
|
result[key] = [...result[key] || [], ...Array.isArray(value) ? value : []];
|
|
@@ -30,6 +31,7 @@ function mergeHeadDefinitions(...heads) {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
34
|
+
console.log("mergeHeadDefinitions", result);
|
|
33
35
|
return result;
|
|
34
36
|
}
|
|
35
37
|
const dynamicRouteCache = /* @__PURE__ */ new Map();
|
package/server/lib/render.mjs
CHANGED
|
@@ -135,7 +135,7 @@ async function renderBody(page) {
|
|
|
135
135
|
const app = createSSRApp(TemplateRoot);
|
|
136
136
|
app.config.warnHandler = (msg, instance, trace) => {
|
|
137
137
|
const cleanTrace = trace.split("\n").map((line) => {
|
|
138
|
-
return line.length > 200 ? line.substring(0, 200)
|
|
138
|
+
return line.length > 200 ? `${line.substring(0, 200)} ... >` : line;
|
|
139
139
|
}).join("\n");
|
|
140
140
|
console.warn(`[Vue warn]: ${msg}
|
|
141
141
|
${cleanTrace}`);
|
|
@@ -150,6 +150,7 @@ ${cleanTrace}`);
|
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
head.push(normalizeSeoToHead(page.head, fallbackTitle, fallbackDescription));
|
|
153
|
+
console.log("head", head);
|
|
153
154
|
app.use(head);
|
|
154
155
|
installFlowVuePlugins(app);
|
|
155
156
|
return {
|
package/src/public/vite.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import { createFlowNitroConfig } from "./nitro.mjs";
|
|
25
25
|
let schemaOrgImports = {};
|
|
26
26
|
try {
|
|
27
|
-
const pkg = await import("@unhead/schema-org
|
|
27
|
+
const pkg = await import("@unhead/schema-org/vue");
|
|
28
28
|
schemaOrgImports = pkg.schemaOrgAutoImports || {};
|
|
29
29
|
console.log("--- SCHEMA ORG IMPORTS LOADED ---", typeof schemaOrgImports, Array.isArray(schemaOrgImports));
|
|
30
30
|
} catch (e) {
|
package/src/runtime/head.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSchemaOrg } from '@unhead/schema-org
|
|
1
|
+
import { useSchemaOrg } from '@unhead/schema-org/vue';
|
|
2
2
|
import { useHead, useSeoMeta } from '@unhead/vue';
|
|
3
3
|
export declare function getClientHead(): import("@unhead/vue").VueHeadClient<import("@unhead/vue").UseHeadInput<_Deprecated>, boolean>;
|
|
4
4
|
export { useHead, useSchemaOrg, useSeoMeta };
|
package/src/runtime/head.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnheadSchemaOrg } from "@unhead/schema-org";
|
|
2
|
-
import { useSchemaOrg } from "@unhead/schema-org
|
|
2
|
+
import { useSchemaOrg } from "@unhead/schema-org/vue";
|
|
3
3
|
import { useHead, useSeoMeta } from "@unhead/vue";
|
|
4
4
|
import { createHead } from "@unhead/vue/client";
|
|
5
5
|
const clientHead = createHead();
|