@monkeyplus/flow 5.0.0-rc.170 → 5.0.0-rc.172
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/flow.mjs +10 -4
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import "node-fetch-native/polyfill";
|
|
2
2
|
import { eventHandler } from "h3";
|
|
3
3
|
import { defineCachedFunction, useRuntimeConfig } from "#internal/nitro";
|
|
4
|
-
const getServerApp = () => import("#server").then((r) => r
|
|
4
|
+
const getServerApp = () => import("#server").then((r) => r);
|
|
5
5
|
export const getFlowRenderer = lazyCachedFunction(async () => {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const r = await getServerApp();
|
|
7
|
+
console.log("Modfule", r);
|
|
8
|
+
console.log("default", r.default);
|
|
9
|
+
console.log("default.default", r.default?.default);
|
|
10
|
+
console.log("default.default.default", r.default?.default?.default);
|
|
11
|
+
const theFlowApp = r?.default?.default?.default || r?.default?.default || r?.default || r;
|
|
12
|
+
console.log(theFlowApp);
|
|
13
|
+
if (!theFlowApp)
|
|
8
14
|
throw new Error("Server bundle is not available");
|
|
9
|
-
return
|
|
15
|
+
return theFlowApp(useRuntimeConfig());
|
|
10
16
|
});
|
|
11
17
|
export default eventHandler(async (event) => {
|
|
12
18
|
const flow = await getFlowRenderer();
|
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.172";
|
|
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.172",
|
|
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.172",
|
|
29
|
+
"@monkeyplus/flow-kit": "5.0.0-rc.172",
|
|
30
|
+
"@monkeyplus/flow-schema": "5.0.0-rc.172",
|
|
31
31
|
"@rollup/plugin-replace": "^4.0.0",
|
|
32
32
|
"@vueuse/head": "^1.0.16",
|
|
33
33
|
"c12": "^1.0.1",
|