@nocobase/server 1.4.17 → 1.4.19
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/index.js +8 -1
- package/package.json +14 -14
package/lib/gateway/index.js
CHANGED
|
@@ -203,7 +203,14 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
|
|
|
203
203
|
rewrites: [{ source: "/**", destination: "/index.html" }]
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
let handleApp = "main";
|
|
207
|
+
try {
|
|
208
|
+
handleApp = await this.getRequestHandleAppName(req);
|
|
209
|
+
} catch (error) {
|
|
210
|
+
console.log(error);
|
|
211
|
+
this.responseErrorWithCode("APP_INITIALIZING", res, { appName: handleApp });
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
207
214
|
const hasApp = import_app_supervisor.AppSupervisor.getInstance().hasApp(handleApp);
|
|
208
215
|
if (!hasApp) {
|
|
209
216
|
void import_app_supervisor.AppSupervisor.getInstance().bootStrapApp(handleApp);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.19",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,18 +10,18 @@
|
|
|
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.4.
|
|
14
|
-
"@nocobase/actions": "1.4.
|
|
15
|
-
"@nocobase/auth": "1.4.
|
|
16
|
-
"@nocobase/cache": "1.4.
|
|
17
|
-
"@nocobase/data-source-manager": "1.4.
|
|
18
|
-
"@nocobase/database": "1.4.
|
|
19
|
-
"@nocobase/evaluators": "1.4.
|
|
20
|
-
"@nocobase/logger": "1.4.
|
|
21
|
-
"@nocobase/resourcer": "1.4.
|
|
22
|
-
"@nocobase/sdk": "1.4.
|
|
23
|
-
"@nocobase/telemetry": "1.4.
|
|
24
|
-
"@nocobase/utils": "1.4.
|
|
13
|
+
"@nocobase/acl": "1.4.19",
|
|
14
|
+
"@nocobase/actions": "1.4.19",
|
|
15
|
+
"@nocobase/auth": "1.4.19",
|
|
16
|
+
"@nocobase/cache": "1.4.19",
|
|
17
|
+
"@nocobase/data-source-manager": "1.4.19",
|
|
18
|
+
"@nocobase/database": "1.4.19",
|
|
19
|
+
"@nocobase/evaluators": "1.4.19",
|
|
20
|
+
"@nocobase/logger": "1.4.19",
|
|
21
|
+
"@nocobase/resourcer": "1.4.19",
|
|
22
|
+
"@nocobase/sdk": "1.4.19",
|
|
23
|
+
"@nocobase/telemetry": "1.4.19",
|
|
24
|
+
"@nocobase/utils": "1.4.19",
|
|
25
25
|
"@types/decompress": "4.2.7",
|
|
26
26
|
"@types/ini": "^1.3.31",
|
|
27
27
|
"@types/koa-send": "^4.1.3",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@types/serve-handler": "^6.1.1",
|
|
55
55
|
"@types/ws": "^8.5.5"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "91da9a60ff7b2951eea55b70901e813af6195581"
|
|
58
58
|
}
|