badmfck-api-server 3.0.6 → 3.0.7

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.
@@ -89,7 +89,7 @@ async function Initializer(services) {
89
89
  exports.Initializer = Initializer;
90
90
  class APIService extends BaseService_1.BaseService {
91
91
  static nextLogID = 0;
92
- version = "3.0.6";
92
+ version = "3.0.7";
93
93
  options;
94
94
  monitor = null;
95
95
  monitorIndexFile;
@@ -20,6 +20,7 @@ export interface IDBQuery {
20
20
  transactionID?: number;
21
21
  calculateCount?: boolean;
22
22
  parseQueryOnly?: boolean;
23
+ debug?: boolean;
23
24
  }
24
25
  export interface IDBBulkQueryItem {
25
26
  query: string;
@@ -317,6 +317,8 @@ class MysqlAdapter {
317
317
  }
318
318
  async query(request, conn) {
319
319
  const query = this.prepareQuery(request);
320
+ if (this.options.debug || request.debug)
321
+ (0, LogService_1.logDB)(query);
320
322
  if (request.parseQueryOnly) {
321
323
  return {
322
324
  data: [{ query }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",