Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iobroker/db-base

Package Overview
Dependencies
Maintainers
5
Versions
417
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iobroker/db-base - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

5

lib/inMemFileDB.js

@@ -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;

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc