badmfck-api-server 1.4.5 → 1.4.6

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.
@@ -43,7 +43,7 @@ async function Initializer(services) {
43
43
  exports.Initializer = Initializer;
44
44
  class APIService extends BaseService_1.BaseService {
45
45
  static nextLogID = 0;
46
- version = "1.4.5";
46
+ version = "1.4.6";
47
47
  options;
48
48
  netLog = [];
49
49
  constructor(options) {
@@ -45,7 +45,7 @@ export declare const REQ_LOG_UNIQUE_SERVICES: Req<void, {
45
45
  count: number;
46
46
  }[]>;
47
47
  export declare class LogService extends BaseService {
48
- epoch: number;
48
+ static nextID: number;
49
49
  log: ILogItem[];
50
50
  options: ILogServiceOptions;
51
51
  level: LOG_LEVEL;
@@ -60,7 +60,7 @@ exports.S_LOG_SET_TEXT_LIMIT = new badmfck_signal_1.default();
60
60
  exports.REQ_LOG = new badmfck_signal_1.Req();
61
61
  exports.REQ_LOG_UNIQUE_SERVICES = new badmfck_signal_1.Req();
62
62
  class LogService extends BaseService_1.BaseService {
63
- epoch = 1699476234961;
63
+ static nextID = 0;
64
64
  log = [];
65
65
  options;
66
66
  level = LOG_LEVEL.ALL;
@@ -147,7 +147,7 @@ class LogService extends BaseService_1.BaseService {
147
147
  const d = new Date();
148
148
  const logitem = {
149
149
  level: log.level,
150
- id: ((+new Date()) - this.epoch),
150
+ id: LogService.nextID++,
151
151
  text: text,
152
152
  time: d.getTime(),
153
153
  date: this.createDate(d),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",