@iobroker/db-base 4.0.16-alpha.2-20220302-c5d9b244 → 4.0.18
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.
- package/lib/inMemFileDB.js +1 -1
- package/lib/tools.js +1 -1
- package/package.json +3 -3
package/lib/inMemFileDB.js
CHANGED
|
@@ -184,7 +184,7 @@ class InMemoryFileDB {
|
|
|
184
184
|
const maxTimeoutMinutes = Math.floor((2 ** 31 - 1) / 60000);
|
|
185
185
|
if (this.settings.backup.period > maxTimeoutMinutes) {
|
|
186
186
|
this.settings.backup.period = 120;
|
|
187
|
-
this.log.
|
|
187
|
+
this.log.warn(
|
|
188
188
|
`${this.namespace} Configured backup period ${this.settings.backup.period} is larger than the supported maximum of ${maxTimeoutMinutes} minutes. Defaulting to 120 minutes.`
|
|
189
189
|
);
|
|
190
190
|
}
|
package/lib/tools.js
CHANGED
|
@@ -10,7 +10,7 @@ module.exports.getControllerDir = () => controllerDir;
|
|
|
10
10
|
* @param {((error: Error | null | undefined, ...args: any[]) => void) | null | undefined} callback - callback function to be executed
|
|
11
11
|
* @param {Error | string | null | undefined} error - error which will be used by the callback function. If callback is not a function and
|
|
12
12
|
* error is given, a rejected Promise is returned. If error is given but it is not an instance of Error, it is converted into one.
|
|
13
|
-
* @param {any
|
|
13
|
+
* @param {...any} args - as many arguments as needed, which will be returned by the callback function or by the Promise
|
|
14
14
|
* @returns {Promise<any>} - if Promise is resolved with multiple arguments, an array is returned
|
|
15
15
|
*/
|
|
16
16
|
module.exports.maybeCallbackWithRedisError = (callback, error, ...args) => {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/db-base",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.18",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@iobroker/js-controller-common": "4.0.
|
|
8
|
+
"@iobroker/js-controller-common": "4.0.18",
|
|
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": "
|
|
38
|
+
"gitHead": "ff1f5de7065853138ffc0ece3dc941c7a59fec6c"
|
|
39
39
|
}
|