Socket
Socket
Sign inDemoInstall

@iobroker/db-base

Package Overview
Dependencies
Maintainers
5
Versions
410
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 1.0.8 to 1.0.10

12

lib/inMemFileDB.js

@@ -116,3 +116,3 @@ /**

} catch (e) {
this.log.error(this.namespace + ' Cannot parse ' + this.datasetName + ': ' + e);
this.log.error(this.namespace + ' Cannot parse ' + this.datasetName + ': ' + e.message);
if (fs.existsSync(this.datasetName + '.bak')) {

@@ -122,3 +122,3 @@ try {

} catch (e) {
this.log.error(this.namespace + ' Cannot parse ' + this.datasetName + '.bak: ' + e);
this.log.error(this.namespace + ' Cannot parse ' + this.datasetName + '.bak: ' + e.message);
this.dataset = {};

@@ -134,3 +134,3 @@ }

} catch (e) {
this.log.error(this.namespace + ' Cannot parse ' + this.datasetName + '.bak: ' + e);
this.log.error(this.namespace + ' Cannot parse ' + this.datasetName + '.bak: ' + e.message);
this.dataset = {};

@@ -233,3 +233,3 @@ }

} catch (e) {
this.log.error(`Cannot delete file "${path.join(this.backupDir, file)}: ${JSON.stringify(e)}`);
this.log.error(`${this.namespace} Cannot delete file "${path.join(this.backupDir, file)}: ${e.message}`);
}

@@ -310,3 +310,3 @@ }

} catch (e) {
this.log.error(this.namespace + ' Cannot save ' + this.datasetName + ': ' + e);
this.log.error(this.namespace + ' Cannot save ' + this.datasetName + ': ' + e.message);
}

@@ -330,3 +330,3 @@ if (this.stateTimer) {

if (id === undefined) {
this.log.error('Can not publish empty ID');
this.log.error(this.namespace + ' Can not publish empty ID');
return 0;

@@ -333,0 +333,0 @@ }

@@ -174,3 +174,3 @@ const Resp = require('respjs');

if (!responseId) {
throw Error('Invalid implementation: no responseId provided!');
throw new Error('Invalid implementation: no responseId provided!');
}

@@ -177,0 +177,0 @@ if (!data) {

{
"name": "@iobroker/db-base",
"version": "1.0.8",
"version": "1.0.10",
"engines": {

@@ -34,3 +34,3 @@ "node": ">=10.0.0"

},
"gitHead": "20f0956d98bc0492dbc15fcee45b944d4dc644da"
"gitHead": "758fd93aae496663dff8b9d8dbe38d06fdb739be"
}
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