@nocobase/server 2.1.0-beta.10 → 2.1.0-beta.11

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.
@@ -329,7 +329,7 @@ const _AppSupervisor = class _AppSupervisor extends import_events.EventEmitter {
329
329
  };
330
330
  }
331
331
  const app = new import_application.default(options);
332
- if (hook !== false) {
332
+ if (hook ?? app.serving()) {
333
333
  app.on("afterStart", async () => {
334
334
  await this.sendSyncMessage(mainApp, {
335
335
  type: "app:started",
@@ -586,6 +586,9 @@ const _AppSupervisor = class _AppSupervisor extends import_events.EventEmitter {
586
586
  return super.on(eventName, listener);
587
587
  }
588
588
  bindAppEvents(app) {
589
+ if (!app.serving()) {
590
+ return;
591
+ }
589
592
  app.on("afterDestroy", async () => {
590
593
  delete this.apps[app.name];
591
594
  delete this.appStatus[app.name];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "2.1.0-beta.10",
3
+ "version": "2.1.0-beta.11",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -10,21 +10,21 @@
10
10
  "@koa/cors": "^5.0.0",
11
11
  "@koa/multer": "^3.1.0",
12
12
  "@koa/router": "^13.1.0",
13
- "@nocobase/acl": "2.1.0-beta.10",
14
- "@nocobase/actions": "2.1.0-beta.10",
15
- "@nocobase/ai": "2.1.0-beta.10",
16
- "@nocobase/auth": "2.1.0-beta.10",
17
- "@nocobase/cache": "2.1.0-beta.10",
18
- "@nocobase/data-source-manager": "2.1.0-beta.10",
19
- "@nocobase/database": "2.1.0-beta.10",
20
- "@nocobase/evaluators": "2.1.0-beta.10",
21
- "@nocobase/lock-manager": "2.1.0-beta.10",
22
- "@nocobase/logger": "2.1.0-beta.10",
23
- "@nocobase/resourcer": "2.1.0-beta.10",
24
- "@nocobase/sdk": "2.1.0-beta.10",
25
- "@nocobase/snowflake-id": "2.1.0-beta.10",
26
- "@nocobase/telemetry": "2.1.0-beta.10",
27
- "@nocobase/utils": "2.1.0-beta.10",
13
+ "@nocobase/acl": "2.1.0-beta.11",
14
+ "@nocobase/actions": "2.1.0-beta.11",
15
+ "@nocobase/ai": "2.1.0-beta.11",
16
+ "@nocobase/auth": "2.1.0-beta.11",
17
+ "@nocobase/cache": "2.1.0-beta.11",
18
+ "@nocobase/data-source-manager": "2.1.0-beta.11",
19
+ "@nocobase/database": "2.1.0-beta.11",
20
+ "@nocobase/evaluators": "2.1.0-beta.11",
21
+ "@nocobase/lock-manager": "2.1.0-beta.11",
22
+ "@nocobase/logger": "2.1.0-beta.11",
23
+ "@nocobase/resourcer": "2.1.0-beta.11",
24
+ "@nocobase/sdk": "2.1.0-beta.11",
25
+ "@nocobase/snowflake-id": "2.1.0-beta.11",
26
+ "@nocobase/telemetry": "2.1.0-beta.11",
27
+ "@nocobase/utils": "2.1.0-beta.11",
28
28
  "@types/decompress": "4.2.7",
29
29
  "@types/ini": "^1.3.31",
30
30
  "@types/koa-send": "^4.1.3",
@@ -61,5 +61,5 @@
61
61
  "@types/serve-handler": "^6.1.1",
62
62
  "@types/ws": "^8.5.5"
63
63
  },
64
- "gitHead": "f7e467710d4748f7089b779494b220025b39bc02"
64
+ "gitHead": "b02e78b928f476d848b88bc545d3acddca00fe3c"
65
65
  }