@nocobase/server 1.5.0-beta.22 → 1.5.0-beta.24
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 +0 -20
- package/package.json +15 -15
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}`);
|
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.24",
|
|
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.24",
|
|
14
|
+
"@nocobase/actions": "1.5.0-beta.24",
|
|
15
|
+
"@nocobase/auth": "1.5.0-beta.24",
|
|
16
|
+
"@nocobase/cache": "1.5.0-beta.24",
|
|
17
|
+
"@nocobase/data-source-manager": "1.5.0-beta.24",
|
|
18
|
+
"@nocobase/database": "1.5.0-beta.24",
|
|
19
|
+
"@nocobase/evaluators": "1.5.0-beta.24",
|
|
20
|
+
"@nocobase/lock-manager": "1.5.0-beta.24",
|
|
21
|
+
"@nocobase/logger": "1.5.0-beta.24",
|
|
22
|
+
"@nocobase/resourcer": "1.5.0-beta.24",
|
|
23
|
+
"@nocobase/sdk": "1.5.0-beta.24",
|
|
24
|
+
"@nocobase/telemetry": "1.5.0-beta.24",
|
|
25
|
+
"@nocobase/utils": "1.5.0-beta.24",
|
|
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": "382214bc5d774743b6ecf27eadc530fed3d9954b"
|
|
60
60
|
}
|