@iobroker/db-base 4.0.23 → 4.0.24

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.
@@ -30,6 +30,7 @@ class RedisHandler extends EventEmitter {
30
30
 
31
31
  this.activeMultiCalls = [];
32
32
  this.writeQueue = [];
33
+ this.responseId = 0;
33
34
 
34
35
  this.handleBuffers = false;
35
36
  const respOptions = {};
@@ -99,8 +100,10 @@ class RedisHandler extends EventEmitter {
99
100
  }
100
101
  }
101
102
 
102
- const t = process.hrtime();
103
- const responseId = t[0] * 1e3 + t[1] / 1e6;
103
+ if (this.responseId === Number.MAX_VALUE) {
104
+ this.responseId = 0;
105
+ }
106
+ const responseId = ++this.responseId;
104
107
 
105
108
  if (this.options.enhancedLogging) {
106
109
  this.log.silly(
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@iobroker/db-base",
3
- "version": "4.0.23",
3
+ "version": "4.0.24",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
7
7
  "dependencies": {
8
- "@iobroker/js-controller-common": "4.0.23",
8
+ "@iobroker/js-controller-common": "4.0.24",
9
9
  "deep-clone": "^3.0.3",
10
10
  "fs-extra": "^10.0.0",
11
11
  "respjs": "^4.2.0"
@@ -35,5 +35,5 @@
35
35
  "lib/",
36
36
  "index.js"
37
37
  ],
38
- "gitHead": "ea1a72ac2d74317ad16234f7aeac90632374614c"
38
+ "gitHead": "5645debf3394177abeef58917f872a7d8c43e320"
39
39
  }