badmfck-api-server 2.4.0 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,7 +83,7 @@ async function Initializer(services) {
83
83
  exports.Initializer = Initializer;
84
84
  class APIService extends BaseService_1.BaseService {
85
85
  static nextLogID = 0;
86
- version = "2.4.0";
86
+ version = "2.4.2";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -69,6 +69,7 @@ export interface ITransaction {
69
69
  }[];
70
70
  }
71
71
  export interface MysqlQueryFieldObject extends Record<string, string | number | boolean | null | undefined | {
72
+ name?: string | null;
72
73
  value: string | number | boolean | null | undefined;
73
74
  system?: boolean;
74
75
  ignoreInInsert?: boolean;
@@ -137,7 +137,7 @@ class MysqlService extends BaseService_1.BaseService {
137
137
  promises.push(this.execute(query, i.rollbackQuery ?? null, i.transactionID ?? 0));
138
138
  }
139
139
  if (this.debug)
140
- console.log("Execute queries: ", data);
140
+ console.log("Execute queries: ", data.length);
141
141
  return await Promise.all(promises);
142
142
  };
143
143
  exports.REQ_MYSQL_TBEGIN.listener = async () => {
@@ -398,7 +398,8 @@ class MysqlService extends BaseService_1.BaseService {
398
398
  system: i.system,
399
399
  ignoreInInsert: i.ignoreInInsert,
400
400
  ignoreInUpdate: i.ignoreInUpdate,
401
- useInReplace: i.useInReplace
401
+ useInReplace: i.useInReplace,
402
+ name: i.name
402
403
  };
403
404
  }
404
405
  else
@@ -425,7 +426,7 @@ class MysqlService extends BaseService_1.BaseService {
425
426
  };
426
427
  }
427
428
  fields.push({
428
- name: i,
429
+ name: mo.name ?? i,
429
430
  value: mo.value,
430
431
  system: mo.system,
431
432
  ignoreInInsert: mo.system,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",