@nocobase/server 1.3.34-beta → 1.3.36-beta

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.
@@ -162,7 +162,7 @@ export declare class Application<StateT = DefaultState, ContextT = DefaultContex
162
162
  */
163
163
  syncManager: SyncManager;
164
164
  requestLogger: Logger;
165
- private sqlLogger;
165
+ private _sqlLogger;
166
166
  protected _logger: SystemLogger;
167
167
  constructor(options: ApplicationOptions);
168
168
  /**
@@ -170,6 +170,7 @@ export declare class Application<StateT = DefaultState, ContextT = DefaultContex
170
170
  */
171
171
  get started(): Date;
172
172
  get logger(): SystemLogger;
173
+ get sqlLogger(): Logger;
173
174
  get log(): SystemLogger;
174
175
  protected _loaded: boolean;
175
176
  /**
@@ -120,7 +120,7 @@ const _Application = class _Application extends import_koa.default {
120
120
  */
121
121
  syncManager;
122
122
  requestLogger;
123
- sqlLogger;
123
+ _sqlLogger;
124
124
  _logger;
125
125
  /**
126
126
  * @experimental
@@ -131,6 +131,9 @@ const _Application = class _Application extends import_koa.default {
131
131
  get logger() {
132
132
  return this._logger;
133
133
  }
134
+ get sqlLogger() {
135
+ return this._sqlLogger;
136
+ }
134
137
  get log() {
135
138
  return this._logger;
136
139
  }
@@ -775,7 +778,7 @@ const _Application = class _Application extends import_koa.default {
775
778
  filename: "request",
776
779
  ...(options == null ? void 0 : options.request) || {}
777
780
  });
778
- this.sqlLogger = this.createLogger({
781
+ this._sqlLogger = this.createLogger({
779
782
  filename: "sql",
780
783
  level: "debug"
781
784
  });
@@ -784,7 +787,7 @@ const _Application = class _Application extends import_koa.default {
784
787
  var _a, _b, _c;
785
788
  (_a = this.log) == null ? void 0 : _a.close();
786
789
  (_b = this.requestLogger) == null ? void 0 : _b.close();
787
- (_c = this.sqlLogger) == null ? void 0 : _c.close();
790
+ (_c = this._sqlLogger) == null ? void 0 : _c.close();
788
791
  }
789
792
  init() {
790
793
  const options = this.options;
@@ -864,7 +867,7 @@ const _Application = class _Application extends import_koa.default {
864
867
  if (msg.includes("INSERT INTO")) {
865
868
  msg = msg.substring(0, 2e3) + "...";
866
869
  }
867
- this.sqlLogger.debug({ message: msg, app: this.name, reqId: this.context.reqId });
870
+ this._sqlLogger.debug({ message: msg, app: this.name, reqId: this.context.reqId });
868
871
  }, "logging");
869
872
  const dbOptions = options.database instanceof import_database.default ? options.database.options : options.database;
870
873
  const db = new import_database.default({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "1.3.34-beta",
3
+ "version": "1.3.36-beta",
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.3.34-beta",
14
- "@nocobase/actions": "1.3.34-beta",
15
- "@nocobase/auth": "1.3.34-beta",
16
- "@nocobase/cache": "1.3.34-beta",
17
- "@nocobase/data-source-manager": "1.3.34-beta",
18
- "@nocobase/database": "1.3.34-beta",
19
- "@nocobase/evaluators": "1.3.34-beta",
20
- "@nocobase/logger": "1.3.34-beta",
21
- "@nocobase/resourcer": "1.3.34-beta",
22
- "@nocobase/sdk": "1.3.34-beta",
23
- "@nocobase/telemetry": "1.3.34-beta",
24
- "@nocobase/utils": "1.3.34-beta",
13
+ "@nocobase/acl": "1.3.36-beta",
14
+ "@nocobase/actions": "1.3.36-beta",
15
+ "@nocobase/auth": "1.3.36-beta",
16
+ "@nocobase/cache": "1.3.36-beta",
17
+ "@nocobase/data-source-manager": "1.3.36-beta",
18
+ "@nocobase/database": "1.3.36-beta",
19
+ "@nocobase/evaluators": "1.3.36-beta",
20
+ "@nocobase/logger": "1.3.36-beta",
21
+ "@nocobase/resourcer": "1.3.36-beta",
22
+ "@nocobase/sdk": "1.3.36-beta",
23
+ "@nocobase/telemetry": "1.3.36-beta",
24
+ "@nocobase/utils": "1.3.36-beta",
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": "dea91f76df3d5b205a0b74e17a0fef2358a90c14"
57
+ "gitHead": "c220ce1036f651eb23deb91246d7f84b046074b6"
58
58
  }