@iobroker/db-objects-jsonl
Advanced tools
Comparing version 6.0.1-alpha.0-20240525-56d9e4a2e to 6.0.1-alpha.0-20240529-9dbeeb628
@@ -35,3 +35,3 @@ "use strict"; | ||
var import_node_os = __toESM(require("node:os"), 1); | ||
var import_js_controller_common = require("@iobroker/js-controller-common"); | ||
var import_js_controller_common_db = require("@iobroker/js-controller-common-db"); | ||
function normalizeJsonlOptions(conf = {}) { | ||
@@ -55,3 +55,3 @@ const ret = { | ||
}; | ||
if (import_js_controller_common.tools.isObject(conf.autoCompress)) { | ||
if (import_js_controller_common_db.tools.isObject(conf.autoCompress)) { | ||
const ac = conf.autoCompress; | ||
@@ -65,3 +65,3 @@ if (typeof ac.sizeFactor === "number" && ac.sizeFactor >= 2 && ac.sizeFactor <= 100) { | ||
} | ||
if (import_js_controller_common.tools.isObject(conf.throttleFS)) { | ||
if (import_js_controller_common_db.tools.isObject(conf.throttleFS)) { | ||
const thr = conf.throttleFS; | ||
@@ -198,3 +198,3 @@ if (typeof thr.intervalMs === "number" && thr.intervalMs >= 1e3 && thr.intervalMs <= 36e5) { | ||
await this._db.dump(tmpBackupFileName); | ||
await import_js_controller_common.tools.compressFileGZip(tmpBackupFileName, backupFileName, { deleteInput: true }); | ||
await import_js_controller_common_db.tools.compressFileGZip(tmpBackupFileName, backupFileName, { deleteInput: true }); | ||
this.deleteOldBackupFiles(this.settings.jsonlDB.fileName); | ||
@@ -201,0 +201,0 @@ } catch (e) { |
@@ -36,6 +36,6 @@ "use strict"; | ||
var import_db_base = require("@iobroker/db-base"); | ||
var import_tools = require("@iobroker/js-controller-common/tools"); | ||
var import_tools = require("@iobroker/js-controller-common-db/tools"); | ||
var import_db_base2 = require("@iobroker/db-base"); | ||
var import_objectsInMemJsonlDB = require("./objectsInMemJsonlDB.js"); | ||
var import_js_controller_common = require("@iobroker/js-controller-common"); | ||
var import_js_controller_common_db = require("@iobroker/js-controller-common-db"); | ||
class ObjectsInMemoryServer extends import_objectsInMemJsonlDB.ObjectsInMemoryJsonlDB { | ||
@@ -66,3 +66,3 @@ constructor(settings) { | ||
this.log.error(`${this.namespace} Cannot start inMem-objects on port ${settings.port || 9001}: ${e.message}`); | ||
process.exit(import_js_controller_common.EXIT_CODES.NO_CONNECTION_TO_OBJ_DB); | ||
process.exit(import_js_controller_common_db.EXIT_CODES.NO_CONNECTION_TO_OBJ_DB); | ||
}); | ||
@@ -69,0 +69,0 @@ } |
@@ -14,3 +14,3 @@ /** | ||
import os from 'node:os'; | ||
import { tools } from '@iobroker/js-controller-common'; | ||
import { tools } from '@iobroker/js-controller-common-db'; | ||
/** | ||
@@ -17,0 +17,0 @@ * Normalizes options for the JsonlDB |
@@ -15,6 +15,6 @@ /** | ||
import { tools } from '@iobroker/db-base'; | ||
import { getLocalAddress } from '@iobroker/js-controller-common/tools'; | ||
import { getLocalAddress } from '@iobroker/js-controller-common-db/tools'; | ||
import { RedisHandler } from '@iobroker/db-base'; | ||
import { ObjectsInMemoryJsonlDB } from './objectsInMemJsonlDB.js'; | ||
import { EXIT_CODES } from '@iobroker/js-controller-common'; | ||
import { EXIT_CODES } from '@iobroker/js-controller-common-db'; | ||
// settings = { | ||
@@ -21,0 +21,0 @@ // change: function (id, state) {}, |
102
package.json
{ | ||
"name": "@iobroker/db-objects-jsonl", | ||
"type": "module", | ||
"version": "6.0.1-alpha.0-20240525-56d9e4a2e", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"dependencies": { | ||
"@alcalzone/jsonl-db": "~3.1.1", | ||
"@iobroker/db-base": "6.0.1-alpha.0-20240525-56d9e4a2e", | ||
"@iobroker/db-objects-file": "6.0.1-alpha.0-20240525-56d9e4a2e", | ||
"@iobroker/db-objects-redis": "6.0.1-alpha.0-20240525-56d9e4a2e", | ||
"deep-clone": "^3.0.3", | ||
"fs-extra": "^11.1.0" | ||
}, | ||
"keywords": [ | ||
"ioBroker", | ||
"redis", | ||
"redundancy" | ||
], | ||
"author": "bluefox <dogafox@gmail.com>", | ||
"contributors": [ | ||
"bluefox <dogafox@gmail.com>", | ||
"Apollon77 <iobroker@fischer-ka.de>", | ||
"foxriver76 <moritz.heusinger@gmail.com>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ioBroker/ioBroker.js-controller/tree/master/packages/db-objects-jsonl" | ||
}, | ||
"scripts": { | ||
"build": "tsc -b tsconfig.build.json", | ||
"postbuild": "esm2cjs --in build/esm --out build/cjs -l error -t node18 && cpy ./**/*.d.ts ./build/cjs/ --cwd=build/esm/" | ||
}, | ||
"main": "build/cjs/index.js", | ||
"module": "build/esm/index.js", | ||
"types": "build/esm/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./build/esm/index.js", | ||
"require": "./build/cjs/index.js", | ||
"types": "./build/esm/index.d.ts" | ||
} | ||
}, | ||
"license": "Apache 2.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"build/" | ||
], | ||
"gitHead": "e5a08b9ec08b0d05506030ab985653fb9c00a3c4" | ||
"name": "@iobroker/db-objects-jsonl", | ||
"type": "module", | ||
"version": "6.0.1-alpha.0-20240529-9dbeeb628", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"dependencies": { | ||
"@alcalzone/jsonl-db": "~3.1.1", | ||
"@iobroker/db-base": "6.0.1-alpha.0-20240529-9dbeeb628", | ||
"@iobroker/db-objects-file": "6.0.1-alpha.0-20240529-9dbeeb628", | ||
"@iobroker/db-objects-redis": "6.0.1-alpha.0-20240529-9dbeeb628", | ||
"deep-clone": "^3.0.3", | ||
"fs-extra": "^11.1.0" | ||
}, | ||
"keywords": [ | ||
"ioBroker", | ||
"redis", | ||
"redundancy" | ||
], | ||
"author": "bluefox <dogafox@gmail.com>", | ||
"contributors": [ | ||
"bluefox <dogafox@gmail.com>", | ||
"Apollon77 <iobroker@fischer-ka.de>", | ||
"foxriver76 <moritz.heusinger@gmail.com>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ioBroker/ioBroker.js-controller/tree/master/packages/db-objects-jsonl" | ||
}, | ||
"scripts": { | ||
"build": "tsc -b tsconfig.build.json", | ||
"postbuild": "esm2cjs --in build/esm --out build/cjs -l error -t node18 && cpy ./**/*.d.ts ./build/cjs/ --cwd=build/esm/" | ||
}, | ||
"main": "build/cjs/index.js", | ||
"module": "build/esm/index.js", | ||
"types": "build/esm/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./build/esm/index.js", | ||
"require": "./build/cjs/index.js", | ||
"types": "./build/esm/index.d.ts" | ||
} | ||
}, | ||
"license": "Apache 2.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"build/" | ||
], | ||
"gitHead": "d2cedb0986ea9cbf250d1ce4eea775af36f80c7a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
296602
+ Added@iobroker/db-base@6.0.1-alpha.0-20240529-9dbeeb628(transitive)
+ Added@iobroker/db-objects-file@6.0.1-alpha.0-20240529-9dbeeb628(transitive)
+ Added@iobroker/db-objects-redis@6.0.1-alpha.0-20240529-9dbeeb628(transitive)
+ Added@iobroker/js-controller-common-db@6.0.1-alpha.0-20240529-9dbeeb628(transitive)
- Removed@iobroker/db-base@6.0.1-alpha.0-20240525-56d9e4a2e(transitive)
- Removed@iobroker/db-objects-file@6.0.1-alpha.0-20240525-56d9e4a2e(transitive)
- Removed@iobroker/db-objects-redis@6.0.1-alpha.0-20240525-56d9e4a2e(transitive)
- Removed@iobroker/js-controller-common@6.0.1-alpha.0-20240525-56d9e4a2e(transitive)
Updated@iobroker/db-objects-file@6.0.1-alpha.0-20240529-9dbeeb628
Updated@iobroker/db-objects-redis@6.0.1-alpha.0-20240529-9dbeeb628