badmfck-api-server 2.4.0 → 2.4.1

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.1";
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;
@@ -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.1",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",