@nocobase/server 1.5.0-beta.21 → 1.5.0-beta.23
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/gateway/ws-server.js
CHANGED
|
@@ -173,26 +173,6 @@ const _WSServer = class _WSServer extends import_events.default {
|
|
|
173
173
|
if (!hasApp) {
|
|
174
174
|
import_app_supervisor.AppSupervisor.getInstance().bootStrapApp(handleAppName);
|
|
175
175
|
}
|
|
176
|
-
const appStatus = import_app_supervisor.AppSupervisor.getInstance().getAppStatus(handleAppName, "initializing");
|
|
177
|
-
if (appStatus === "not_found") {
|
|
178
|
-
this.sendMessageToConnection(client, {
|
|
179
|
-
type: "maintaining",
|
|
180
|
-
payload: getPayloadByErrorCode("APP_NOT_FOUND", { appName: handleAppName })
|
|
181
|
-
});
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
if (appStatus === "initializing") {
|
|
185
|
-
this.sendMessageToConnection(client, {
|
|
186
|
-
type: "maintaining",
|
|
187
|
-
payload: getPayloadByErrorCode("APP_INITIALIZING", { appName: handleAppName })
|
|
188
|
-
});
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
const app = await import_app_supervisor.AppSupervisor.getInstance().getApp(handleAppName);
|
|
192
|
-
this.sendMessageToConnection(client, {
|
|
193
|
-
type: "maintaining",
|
|
194
|
-
payload: getPayloadByErrorCode(appStatus, { app })
|
|
195
|
-
});
|
|
196
176
|
}
|
|
197
177
|
removeConnection(id) {
|
|
198
178
|
console.log(`client disconnected ${id}`);
|
|
@@ -371,9 +371,14 @@ const _PluginManager = class _PluginManager {
|
|
|
371
371
|
const packageNames = items.map((item) => item.packageName);
|
|
372
372
|
const source = [];
|
|
373
373
|
for (const packageName of packageNames) {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
try {
|
|
375
|
+
const dirname = await (0, import_utils2.getPluginBasePath)(packageName);
|
|
376
|
+
const directory = (0, import_path.join)(dirname, "server/commands/*." + ((0, import_path.basename)(dirname) === "src" ? "{ts,js}" : "js"));
|
|
377
|
+
source.push(directory.replaceAll(import_path.sep, "/"));
|
|
378
|
+
} catch (error) {
|
|
379
|
+
this.app.log.error(error);
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
377
382
|
}
|
|
378
383
|
for (const plugin of this.options.plugins || []) {
|
|
379
384
|
if (typeof plugin === "string") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.23",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"@koa/cors": "^3.1.0",
|
|
11
11
|
"@koa/multer": "^3.0.2",
|
|
12
12
|
"@koa/router": "^9.4.0",
|
|
13
|
-
"@nocobase/acl": "1.5.0-beta.
|
|
14
|
-
"@nocobase/actions": "1.5.0-beta.
|
|
15
|
-
"@nocobase/auth": "1.5.0-beta.
|
|
16
|
-
"@nocobase/cache": "1.5.0-beta.
|
|
17
|
-
"@nocobase/data-source-manager": "1.5.0-beta.
|
|
18
|
-
"@nocobase/database": "1.5.0-beta.
|
|
19
|
-
"@nocobase/evaluators": "1.5.0-beta.
|
|
20
|
-
"@nocobase/lock-manager": "1.5.0-beta.
|
|
21
|
-
"@nocobase/logger": "1.5.0-beta.
|
|
22
|
-
"@nocobase/resourcer": "1.5.0-beta.
|
|
23
|
-
"@nocobase/sdk": "1.5.0-beta.
|
|
24
|
-
"@nocobase/telemetry": "1.5.0-beta.
|
|
25
|
-
"@nocobase/utils": "1.5.0-beta.
|
|
13
|
+
"@nocobase/acl": "1.5.0-beta.23",
|
|
14
|
+
"@nocobase/actions": "1.5.0-beta.23",
|
|
15
|
+
"@nocobase/auth": "1.5.0-beta.23",
|
|
16
|
+
"@nocobase/cache": "1.5.0-beta.23",
|
|
17
|
+
"@nocobase/data-source-manager": "1.5.0-beta.23",
|
|
18
|
+
"@nocobase/database": "1.5.0-beta.23",
|
|
19
|
+
"@nocobase/evaluators": "1.5.0-beta.23",
|
|
20
|
+
"@nocobase/lock-manager": "1.5.0-beta.23",
|
|
21
|
+
"@nocobase/logger": "1.5.0-beta.23",
|
|
22
|
+
"@nocobase/resourcer": "1.5.0-beta.23",
|
|
23
|
+
"@nocobase/sdk": "1.5.0-beta.23",
|
|
24
|
+
"@nocobase/telemetry": "1.5.0-beta.23",
|
|
25
|
+
"@nocobase/utils": "1.5.0-beta.23",
|
|
26
26
|
"@types/decompress": "4.2.7",
|
|
27
27
|
"@types/ini": "^1.3.31",
|
|
28
28
|
"@types/koa-send": "^4.1.3",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"@types/serve-handler": "^6.1.1",
|
|
57
57
|
"@types/ws": "^8.5.5"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "3a0123f9dbbd68b94843c5fabd31d628bbf5c606"
|
|
60
60
|
}
|