@nocobase/server 2.2.25 → 2.2.27
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/application.js +3 -2
- package/package.json +17 -17
package/lib/application.js
CHANGED
|
@@ -383,6 +383,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
383
383
|
return this.cli._findCommand(name);
|
|
384
384
|
}
|
|
385
385
|
async disposeServices() {
|
|
386
|
+
await this.workerIdAllocator.release();
|
|
386
387
|
if (this.redisConnectionManager) {
|
|
387
388
|
await this.redisConnectionManager.close();
|
|
388
389
|
}
|
|
@@ -395,7 +396,6 @@ const _Application = class _Application extends import_koa.default {
|
|
|
395
396
|
if (this.telemetry.started) {
|
|
396
397
|
await this.telemetry.shutdown();
|
|
397
398
|
}
|
|
398
|
-
await this.workerIdAllocator.release();
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* @internal
|
|
@@ -452,7 +452,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
452
452
|
if ((options == null ? void 0 : options.hooks) !== false) {
|
|
453
453
|
await this.emitAsync("beforeLoad", this, options);
|
|
454
454
|
}
|
|
455
|
-
if (
|
|
455
|
+
if (this._instanceId == null) {
|
|
456
456
|
this._instanceId = await this.workerIdAllocator.getWorkerId();
|
|
457
457
|
this.log.info(`allocate worker id: ${this._instanceId}`, { method: "load" });
|
|
458
458
|
}
|
|
@@ -881,6 +881,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
881
881
|
init() {
|
|
882
882
|
const options = this.options;
|
|
883
883
|
this._instanceId = options.instanceId;
|
|
884
|
+
this.snowflakeIdGenerator = void 0;
|
|
884
885
|
this.initLogger(options.logger);
|
|
885
886
|
this.reInitEvents();
|
|
886
887
|
this.middleware = new import_utils.Toposort();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.27",
|
|
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.2.
|
|
14
|
-
"@nocobase/actions": "2.2.
|
|
15
|
-
"@nocobase/ai": "2.2.
|
|
16
|
-
"@nocobase/auth": "2.2.
|
|
17
|
-
"@nocobase/cache": "2.2.
|
|
18
|
-
"@nocobase/data-source-manager": "2.2.
|
|
19
|
-
"@nocobase/database": "2.2.
|
|
20
|
-
"@nocobase/evaluators": "2.2.
|
|
21
|
-
"@nocobase/lock-manager": "2.2.
|
|
22
|
-
"@nocobase/logger": "2.2.
|
|
23
|
-
"@nocobase/resourcer": "2.2.
|
|
24
|
-
"@nocobase/sdk": "2.2.
|
|
25
|
-
"@nocobase/snowflake-id": "2.2.
|
|
26
|
-
"@nocobase/telemetry": "2.2.
|
|
27
|
-
"@nocobase/utils": "2.2.
|
|
13
|
+
"@nocobase/acl": "2.2.27",
|
|
14
|
+
"@nocobase/actions": "2.2.27",
|
|
15
|
+
"@nocobase/ai": "2.2.27",
|
|
16
|
+
"@nocobase/auth": "2.2.27",
|
|
17
|
+
"@nocobase/cache": "2.2.27",
|
|
18
|
+
"@nocobase/data-source-manager": "2.2.27",
|
|
19
|
+
"@nocobase/database": "2.2.27",
|
|
20
|
+
"@nocobase/evaluators": "2.2.27",
|
|
21
|
+
"@nocobase/lock-manager": "2.2.27",
|
|
22
|
+
"@nocobase/logger": "2.2.27",
|
|
23
|
+
"@nocobase/resourcer": "2.2.27",
|
|
24
|
+
"@nocobase/sdk": "2.2.27",
|
|
25
|
+
"@nocobase/snowflake-id": "2.2.27",
|
|
26
|
+
"@nocobase/telemetry": "2.2.27",
|
|
27
|
+
"@nocobase/utils": "2.2.27",
|
|
28
28
|
"@types/ini": "^1.3.31",
|
|
29
29
|
"@types/koa-send": "^4.1.3",
|
|
30
30
|
"@types/multer": "^1.4.12",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"@types/serve-handler": "^6.1.1",
|
|
61
61
|
"@types/ws": "^8.5.5"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "8705450a8478da5567cd8556967ac60fd5a5aff4"
|
|
64
64
|
}
|