@nocobase/app 1.3.50-beta → 1.3.52
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/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/{p__index.4ee20a1f.async.js → p__index.8b9877de.async.js} +3 -3
- package/dist/client/{umi.44718844.js → umi.5eb42d59.js} +1 -1
- package/lib/index.js +11 -3
- package/package.json +6 -6
- package/src/index.ts +12 -9
package/lib/index.js
CHANGED
|
@@ -7,11 +7,19 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
12
|
var import_server = require("@nocobase/server");
|
|
11
13
|
var import_config = require("./config");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
async function initializeGateway() {
|
|
15
|
+
await (0, import_server.runPluginStaticImports)();
|
|
16
|
+
const config = await (0, import_config.getConfig)();
|
|
17
|
+
await import_server.Gateway.getInstance().run({
|
|
14
18
|
mainAppOptions: config
|
|
15
19
|
});
|
|
16
|
-
}
|
|
20
|
+
}
|
|
21
|
+
__name(initializeGateway, "initializeGateway");
|
|
22
|
+
initializeGateway().catch((e) => {
|
|
23
|
+
console.error(e);
|
|
24
|
+
process.exit(1);
|
|
17
25
|
});
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/app",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/database": "1.3.
|
|
10
|
-
"@nocobase/preset-nocobase": "1.3.
|
|
11
|
-
"@nocobase/server": "1.3.
|
|
9
|
+
"@nocobase/database": "1.3.52",
|
|
10
|
+
"@nocobase/preset-nocobase": "1.3.52",
|
|
11
|
+
"@nocobase/server": "1.3.52"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@nocobase/client": "1.3.
|
|
14
|
+
"@nocobase/client": "1.3.52"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
19
19
|
"directory": "packages/core/app"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "90afbd90f915cf5df0ee6766ddbdf7803b3ab7ea"
|
|
22
22
|
}
|
package/src/index.ts
CHANGED
|
@@ -7,15 +7,18 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { Gateway } from '@nocobase/server';
|
|
10
|
+
import { Gateway, runPluginStaticImports } from '@nocobase/server';
|
|
11
11
|
import { getConfig } from './config';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
.catch((e) => {
|
|
20
|
-
// console.error(e);
|
|
13
|
+
async function initializeGateway() {
|
|
14
|
+
await runPluginStaticImports();
|
|
15
|
+
const config = await getConfig();
|
|
16
|
+
await Gateway.getInstance().run({
|
|
17
|
+
mainAppOptions: config,
|
|
21
18
|
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
initializeGateway().catch((e) => {
|
|
22
|
+
console.error(e);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
});
|