@monkeyplus/flow 5.0.0-rc.172 → 5.0.0-rc.173
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/app/entry.d.ts +2 -2
- package/dist/app/entry.mjs +2 -1
- package/dist/core/runtime/nitro/flow.mjs +5 -5
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/app/entry.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { RuntimeConfig } from '@monkeyplus/flow-schema';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
export declare const entry: (runtimeConfig: RuntimeConfig) => Promise<import("./flow").FlowApp>;
|
|
3
|
+
export default entry;
|
package/dist/app/entry.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { config, configure, render } from "eta";
|
|
2
2
|
import { applyPlugins, createFlowApp } from "./flow.mjs";
|
|
3
3
|
import plugins from "#build/plugins";
|
|
4
|
-
export
|
|
4
|
+
export const entry = async (runtimeConfig) => {
|
|
5
5
|
const flow = createFlowApp({ runtimeConfig });
|
|
6
6
|
try {
|
|
7
7
|
await applyPlugins(flow, plugins);
|
|
@@ -21,3 +21,4 @@ export default async (runtimeConfig) => {
|
|
|
21
21
|
}
|
|
22
22
|
return flow;
|
|
23
23
|
};
|
|
24
|
+
export default entry;
|
|
@@ -4,11 +4,11 @@ import { defineCachedFunction, useRuntimeConfig } from "#internal/nitro";
|
|
|
4
4
|
const getServerApp = () => import("#server").then((r) => r);
|
|
5
5
|
export const getFlowRenderer = lazyCachedFunction(async () => {
|
|
6
6
|
const r = await getServerApp();
|
|
7
|
-
console.log(
|
|
8
|
-
console.log("
|
|
9
|
-
console.log("default
|
|
10
|
-
console.log("default.default
|
|
11
|
-
const theFlowApp = r?.
|
|
7
|
+
console.log(r);
|
|
8
|
+
console.log("entry", typeof r?.entry);
|
|
9
|
+
console.log("default", typeof r?.default);
|
|
10
|
+
console.log("default.default", typeof r?.default?.default);
|
|
11
|
+
const theFlowApp = r?.entry || r?.default?.default || r.default;
|
|
12
12
|
console.log(theFlowApp);
|
|
13
13
|
if (!theFlowApp)
|
|
14
14
|
throw new Error("Server bundle is not available");
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import replace from '@rollup/plugin-replace';
|
|
|
24
24
|
import { resolveTSConfig } from 'pkg-types';
|
|
25
25
|
import fse from 'fs-extra';
|
|
26
26
|
|
|
27
|
-
const version = "5.0.0-rc.
|
|
27
|
+
const version = "5.0.0-rc.173";
|
|
28
28
|
|
|
29
29
|
let _distDir = dirname(fileURLToPath(import.meta.url));
|
|
30
30
|
if (_distDir.match(/(chunks|shared)$/))
|
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.173",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
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.173",
|
|
29
|
+
"@monkeyplus/flow-kit": "5.0.0-rc.173",
|
|
30
|
+
"@monkeyplus/flow-schema": "5.0.0-rc.173",
|
|
31
31
|
"@rollup/plugin-replace": "^4.0.0",
|
|
32
32
|
"@vueuse/head": "^1.0.16",
|
|
33
33
|
"c12": "^1.0.1",
|