@iobroker/db-base
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -20,3 +20,2 @@ /** | ||
const tools = require('./tools.js'); | ||
const getDefaultDataDir = tools.getDefaultDataDir; | ||
@@ -70,5 +69,5 @@ // settings = { | ||
this.dataDir = (this.settings.connection.dataDir || getDefaultDataDir()); | ||
this.dataDir = (this.settings.connection.dataDir || tools.getDefaultDataDir()); | ||
if (!path.isAbsolute(this.dataDir)) { | ||
this.dataDir = path.normalize(path.join(__dirname, '../..', this.dataDir)); | ||
this.dataDir = path.normalize(path.join(tools.getControllerDir(), this.dataDir)); | ||
} | ||
@@ -75,0 +74,0 @@ this.dataDir = this.dataDir.replace(/\\/g, '/'); |
@@ -46,2 +46,5 @@ const path = require('path'); | ||
module.exports = require(path.join(getControllerDir() || __dirname, 'lib/tools.js')); | ||
const controllerDir = getControllerDir() || __dirname; | ||
module.exports = require(path.join(controllerDir , 'lib/tools.js')); | ||
module.exports.getControllerDir = () => controllerDir; |
{ | ||
"name": "@iobroker/db-base", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"engines": { | ||
@@ -34,3 +34,3 @@ "node": ">=10.0.0" | ||
}, | ||
"gitHead": "9d8189588c3365a059ce10a6ebc81cc464690913" | ||
"gitHead": "6f1253ede80b73ec1ffbc24d1afd19f2552bbdc4" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
26516
25195
623
11
89