@nocobase/server 1.9.46 → 1.9.49
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/commands/console.js +1 -1
- package/lib/gateway/index.js +9 -0
- package/package.json +16 -16
package/lib/commands/console.js
CHANGED
|
@@ -31,9 +31,9 @@ __export(console_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(console_exports);
|
|
33
33
|
/* istanbul ignore file -- @preserve */
|
|
34
|
-
const REPL = require("repl");
|
|
35
34
|
var console_default = /* @__PURE__ */ __name((app) => {
|
|
36
35
|
app.command("console").preload().action(async () => {
|
|
36
|
+
const REPL = require("repl");
|
|
37
37
|
await app.start();
|
|
38
38
|
const repl = REPL.start("nocobase > ").context.app = app;
|
|
39
39
|
repl.on("exit", async function(err) {
|
package/lib/gateway/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __export(gateway_exports, {
|
|
|
44
44
|
module.exports = __toCommonJS(gateway_exports);
|
|
45
45
|
var import_logger = require("@nocobase/logger");
|
|
46
46
|
var import_utils = require("@nocobase/utils");
|
|
47
|
+
var import_utils2 = require("@nocobase/utils");
|
|
47
48
|
var import_plugin_symlink = require("@nocobase/utils/plugin-symlink");
|
|
48
49
|
var import_commander = require("commander");
|
|
49
50
|
var import_compression = __toESM(require("compression"));
|
|
@@ -350,6 +351,14 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
|
|
|
350
351
|
}
|
|
351
352
|
const mainApp = import_app_supervisor.AppSupervisor.getInstance().bootMainApp(options.mainAppOptions);
|
|
352
353
|
mainApp.setMaxListeners(50);
|
|
354
|
+
mainApp.once("afterStart", () => {
|
|
355
|
+
(0, import_utils2.lockdownSes)({
|
|
356
|
+
consoleTaming: "unsafe",
|
|
357
|
+
errorTaming: "unsafe",
|
|
358
|
+
overrideTaming: "moderate",
|
|
359
|
+
stackFiltering: "verbose"
|
|
360
|
+
});
|
|
361
|
+
});
|
|
353
362
|
let runArgs = [import_node_process.default.argv, { throwError: true, from: "node" }];
|
|
354
363
|
if (!import_node_worker_threads.isMainThread) {
|
|
355
364
|
runArgs = [import_node_worker_threads.workerData.argv, { throwError: true, from: "user" }];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.49",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"@koa/cors": "^5.0.0",
|
|
11
11
|
"@koa/multer": "^3.1.0",
|
|
12
12
|
"@koa/router": "^13.1.0",
|
|
13
|
-
"@nocobase/acl": "1.9.
|
|
14
|
-
"@nocobase/actions": "1.9.
|
|
15
|
-
"@nocobase/auth": "1.9.
|
|
16
|
-
"@nocobase/cache": "1.9.
|
|
17
|
-
"@nocobase/data-source-manager": "1.9.
|
|
18
|
-
"@nocobase/database": "1.9.
|
|
19
|
-
"@nocobase/evaluators": "1.9.
|
|
20
|
-
"@nocobase/lock-manager": "1.9.
|
|
21
|
-
"@nocobase/logger": "1.9.
|
|
22
|
-
"@nocobase/resourcer": "1.9.
|
|
23
|
-
"@nocobase/sdk": "1.9.
|
|
24
|
-
"@nocobase/snowflake-id": "1.9.
|
|
25
|
-
"@nocobase/telemetry": "1.9.
|
|
26
|
-
"@nocobase/utils": "1.9.
|
|
13
|
+
"@nocobase/acl": "1.9.49",
|
|
14
|
+
"@nocobase/actions": "1.9.49",
|
|
15
|
+
"@nocobase/auth": "1.9.49",
|
|
16
|
+
"@nocobase/cache": "1.9.49",
|
|
17
|
+
"@nocobase/data-source-manager": "1.9.49",
|
|
18
|
+
"@nocobase/database": "1.9.49",
|
|
19
|
+
"@nocobase/evaluators": "1.9.49",
|
|
20
|
+
"@nocobase/lock-manager": "1.9.49",
|
|
21
|
+
"@nocobase/logger": "1.9.49",
|
|
22
|
+
"@nocobase/resourcer": "1.9.49",
|
|
23
|
+
"@nocobase/sdk": "1.9.49",
|
|
24
|
+
"@nocobase/snowflake-id": "1.9.49",
|
|
25
|
+
"@nocobase/telemetry": "1.9.49",
|
|
26
|
+
"@nocobase/utils": "1.9.49",
|
|
27
27
|
"@types/decompress": "4.2.7",
|
|
28
28
|
"@types/ini": "^1.3.31",
|
|
29
29
|
"@types/koa-send": "^4.1.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@types/serve-handler": "^6.1.1",
|
|
60
60
|
"@types/ws": "^8.5.5"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b90fa583f837a84067c354a72574e738cc6c3281"
|
|
63
63
|
}
|