@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/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
- (0, import_config.getConfig)().then((config) => {
13
- return import_server.Gateway.getInstance().run({
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
- }).catch((e) => {
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.50-beta",
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.50-beta",
10
- "@nocobase/preset-nocobase": "1.3.50-beta",
11
- "@nocobase/server": "1.3.50-beta"
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.50-beta"
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": "ae3ceb799109d3a088d13f999e52b02af6df2457"
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
- getConfig()
14
- .then((config) => {
15
- return Gateway.getInstance().run({
16
- mainAppOptions: config,
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
+ });