@nocobase/server 1.9.46 → 1.9.47

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.
@@ -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) {
@@ -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.46",
3
+ "version": "1.9.47",
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.46",
14
- "@nocobase/actions": "1.9.46",
15
- "@nocobase/auth": "1.9.46",
16
- "@nocobase/cache": "1.9.46",
17
- "@nocobase/data-source-manager": "1.9.46",
18
- "@nocobase/database": "1.9.46",
19
- "@nocobase/evaluators": "1.9.46",
20
- "@nocobase/lock-manager": "1.9.46",
21
- "@nocobase/logger": "1.9.46",
22
- "@nocobase/resourcer": "1.9.46",
23
- "@nocobase/sdk": "1.9.46",
24
- "@nocobase/snowflake-id": "1.9.46",
25
- "@nocobase/telemetry": "1.9.46",
26
- "@nocobase/utils": "1.9.46",
13
+ "@nocobase/acl": "1.9.47",
14
+ "@nocobase/actions": "1.9.47",
15
+ "@nocobase/auth": "1.9.47",
16
+ "@nocobase/cache": "1.9.47",
17
+ "@nocobase/data-source-manager": "1.9.47",
18
+ "@nocobase/database": "1.9.47",
19
+ "@nocobase/evaluators": "1.9.47",
20
+ "@nocobase/lock-manager": "1.9.47",
21
+ "@nocobase/logger": "1.9.47",
22
+ "@nocobase/resourcer": "1.9.47",
23
+ "@nocobase/sdk": "1.9.47",
24
+ "@nocobase/snowflake-id": "1.9.47",
25
+ "@nocobase/telemetry": "1.9.47",
26
+ "@nocobase/utils": "1.9.47",
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": "cb489d4453cab423a79a7540e7ce7eace5ba54d7"
62
+ "gitHead": "bc3787003d581cc1453444de53d23c7c41b862d8"
63
63
  }