@monkeyplus/flow 5.0.0-rc.60 → 5.0.0-rc.62
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/core/runtime/nitro/renderer.mjs +3 -1
- package/dist/index.mjs +2 -2
- package/package.json +24 -24
|
@@ -32,13 +32,15 @@ export default eventHandler(async (event) => {
|
|
|
32
32
|
const contextHooks = {};
|
|
33
33
|
await flow.callHook("page:context", { localeCode: locale.code, page: pageName }, utils, contextHooks);
|
|
34
34
|
templateContext.url = url;
|
|
35
|
-
|
|
35
|
+
const pageObject = {
|
|
36
36
|
name: pageName,
|
|
37
37
|
pathname: url,
|
|
38
38
|
url: joinURL(flow.site.origin, `${url}`),
|
|
39
39
|
origin: flow.site.origin,
|
|
40
40
|
joinOrigin: (_url) => joinURL(flow.site.origin, _url)
|
|
41
41
|
};
|
|
42
|
+
templateContext.page = pageObject;
|
|
43
|
+
contextPage.page = pageObject;
|
|
42
44
|
templateContext.locale = locale;
|
|
43
45
|
templateContext.view = view;
|
|
44
46
|
if (dynamic && page.dynamic) {
|
package/dist/index.mjs
CHANGED
|
@@ -29,7 +29,7 @@ import { isExternal as isExternal$1, ExternalsDefaults } from 'externality';
|
|
|
29
29
|
import { createHash } from 'node:crypto';
|
|
30
30
|
import MagicString from 'magic-string';
|
|
31
31
|
|
|
32
|
-
const version = "5.0.0-rc.
|
|
32
|
+
const version = "5.0.0-rc.62";
|
|
33
33
|
|
|
34
34
|
let _distDir = dirname(fileURLToPath(import.meta.url));
|
|
35
35
|
if (_distDir.endsWith("chunks"))
|
|
@@ -379,7 +379,7 @@ const builClient = async (flow) => {
|
|
|
379
379
|
mode: "production",
|
|
380
380
|
build: {
|
|
381
381
|
assetsDir: "scripts",
|
|
382
|
-
target: "
|
|
382
|
+
target: "es2015",
|
|
383
383
|
outDir: ".vite",
|
|
384
384
|
manifest: true
|
|
385
385
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkeyplus/flow",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.62",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -25,52 +25,52 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@monkeyplus/flow-cli": "5.0.0-rc.
|
|
29
|
-
"@monkeyplus/flow-kit": "5.0.0-rc.
|
|
30
|
-
"@monkeyplus/flow-schema": "5.0.0-rc.
|
|
28
|
+
"@monkeyplus/flow-cli": "5.0.0-rc.62",
|
|
29
|
+
"@monkeyplus/flow-kit": "5.0.0-rc.62",
|
|
30
|
+
"@monkeyplus/flow-schema": "5.0.0-rc.62",
|
|
31
31
|
"@rollup/plugin-replace": "^4.0.0",
|
|
32
32
|
"@vueuse/head": "^0.7.6",
|
|
33
|
-
"c12": "^0.2.
|
|
33
|
+
"c12": "^0.2.8",
|
|
34
34
|
"chokidar": "^3.5.3",
|
|
35
35
|
"consola": "^2.15.3",
|
|
36
36
|
"defu": "^6.0.0",
|
|
37
|
-
"esbuild": "^0.14.
|
|
37
|
+
"esbuild": "^0.14.49",
|
|
38
38
|
"escape-string-regexp": "^5.0.0",
|
|
39
|
-
"esno": "^0.
|
|
39
|
+
"esno": "^0.16.3",
|
|
40
40
|
"eta": "^1.12.3",
|
|
41
|
-
"externality": "^0.2.
|
|
41
|
+
"externality": "^0.2.2",
|
|
42
42
|
"fs-extra": "^10.1.0",
|
|
43
43
|
"get-port-please": "^2.5.0",
|
|
44
|
-
"globby": "^13.1.
|
|
45
|
-
"h3": "^0.7.
|
|
44
|
+
"globby": "^13.1.2",
|
|
45
|
+
"h3": "^0.7.10",
|
|
46
46
|
"hookable": "^5.1.1",
|
|
47
|
-
"jiti": "^1.
|
|
48
|
-
"knitwork": "^0.1.
|
|
49
|
-
"listhen": "^0.2.
|
|
47
|
+
"jiti": "^1.14.0",
|
|
48
|
+
"knitwork": "^0.1.2",
|
|
49
|
+
"listhen": "^0.2.13",
|
|
50
50
|
"magic-string": "^0.26.2",
|
|
51
|
-
"mlly": "^0.5.
|
|
51
|
+
"mlly": "^0.5.4",
|
|
52
52
|
"mri": "^1.2.0",
|
|
53
|
-
"nitropack": "^0.4.
|
|
54
|
-
"pathe": "^0.2
|
|
53
|
+
"nitropack": "^0.4.12",
|
|
54
|
+
"pathe": "^0.3.2",
|
|
55
55
|
"perfect-debounce": "^0.1.3",
|
|
56
56
|
"radix3": "^0.1.2",
|
|
57
57
|
"unenv": "^0.5.2",
|
|
58
58
|
"ohmyfetch": "^0.4.18",
|
|
59
|
-
"node-fetch-native": "^0.1.
|
|
60
|
-
"rollup": "^2.
|
|
61
|
-
"rollup-plugin-visualizer": "^5.
|
|
59
|
+
"node-fetch-native": "^0.1.4",
|
|
60
|
+
"rollup": "^2.77.0",
|
|
61
|
+
"rollup-plugin-visualizer": "^5.7.1",
|
|
62
62
|
"scule": "^0.2.1",
|
|
63
|
-
"ufo": "^0.8.
|
|
63
|
+
"ufo": "^0.8.5",
|
|
64
64
|
"unctx": "^1.1.4",
|
|
65
|
-
"unimport": "^0.
|
|
66
|
-
"unplugin": "^0.
|
|
65
|
+
"unimport": "^0.4.5",
|
|
66
|
+
"unplugin": "^0.7.2",
|
|
67
67
|
"untyped": "^0.4.4",
|
|
68
68
|
"vite": "^2.9.9",
|
|
69
|
-
"vue": "^3.2.
|
|
69
|
+
"vue": "^3.2.37"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/fs-extra": "^9.0.13",
|
|
73
|
-
"vue-router": "^4.
|
|
73
|
+
"vue-router": "^4.1.2"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": "^16.11.0 || ^17.0.0 || ^18.0.0"
|