@iobroker/db-states-jsonl 4.0.13 → 4.0.14

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.
@@ -54,10 +54,9 @@ class StatesInMemoryJsonlDB extends StatesInMemoryFileDB {
54
54
  fileName: 'states.json',
55
55
  backupDirName: 'backup-objects'
56
56
  };
57
- super(settings);
58
57
 
59
58
  /** @type {import("@alcalzone/jsonl-db").JsonlDBOptions<any>} */
60
- const jsonlOptions = this.settings.connection.jsonlOptions || {
59
+ const jsonlOptions = settings.connection.jsonlOptions || {
61
60
  autoCompress: {
62
61
  sizeFactor: 10,
63
62
  sizeFactorMinimumSize: 50000
@@ -79,6 +78,7 @@ class StatesInMemoryJsonlDB extends StatesInMemoryFileDB {
79
78
  settings.jsonlDB = {
80
79
  fileName: 'states.jsonl'
81
80
  };
81
+ super(settings);
82
82
 
83
83
  /** @type {JsonlDB<any>} */
84
84
  this._db = new JsonlDB(path.join(this.dataDir, settings.jsonlDB.fileName), jsonlOptions);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@iobroker/db-states-jsonl",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
7
7
  "dependencies": {
8
8
  "@alcalzone/jsonl-db": "~2.5.1",
9
- "@iobroker/db-base": "4.0.13",
10
- "@iobroker/db-states-file": "4.0.13",
11
- "@iobroker/db-states-redis": "4.0.13"
9
+ "@iobroker/db-base": "4.0.14",
10
+ "@iobroker/db-states-file": "4.0.14",
11
+ "@iobroker/db-states-redis": "4.0.14"
12
12
  },
13
13
  "keywords": [
14
14
  "ioBroker",
@@ -35,5 +35,5 @@
35
35
  "lib/",
36
36
  "index.js"
37
37
  ],
38
- "gitHead": "a44fa71bf2f3079cdff725fa16c0d8c75af1c271"
38
+ "gitHead": "9fe76bd1337caaa5b06a9c677c9ecf7f7aba8518"
39
39
  }