New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iobroker/db-objects-jsonl

Package Overview
Dependencies
Maintainers
6
Versions
423
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iobroker/db-objects-jsonl - npm Package Compare versions

Comparing version 4.0.0-alpha.2-20210830-d7e31ee8 to 4.0.0-alpha.20-20211202-7f48f5ea

2

lib/objects/objectsInMemJsonlDB.js

@@ -36,3 +36,3 @@ /**

sizeFactor: 2,
sizeFactorMinimumSize: 1000
sizeFactorMinimumSize: 25000
},

@@ -39,0 +39,0 @@ ignoreReadErrors: true,

@@ -24,18 +24,3 @@ /**

settings.autoConnect = false; // delay Client connection to when we need it
// hack around testing problem where subscribe was called before connect
// Should be removed for a later release
const origConnected = settings.connected;
settings.connected = () => {
this.clientConnected = true;
if (Array.isArray(this.storedSubscribes) && this.storedSubscribes.length) {
this.log.warn(`${this.namespace} Replay ${this.storedSubscribes.length} subscription calls for Objects Server that were done before the client was connected initially`);
this.storedSubscribes.forEach((s => this.subscribe(s.pattern, s.options, s.callback)));
this.storedSubscribes = [];
}
origConnected();
};
super(settings);
this.clientConnected = false;
this.storedSubscribes = [];

@@ -70,11 +55,3 @@ const serverSettings = {

}
subscribe(pattern, options, callback) {
if (!this.clientConnected) {
this.storedSubscribes.push({pattern, options, callback}); // we ignore the promise return because not used for this testing issue we work around here
} else {
return super.subscribe(pattern, options, callback);
}
}
}
module.exports = ObjectsInMemoryServerClass;

@@ -177,4 +177,4 @@ /**

// e.g. ekey.admin and admin/ekey.png
if (id.match(/\.admin$/)) {
if (name.match(/^admin\//)) {
if (id.endsWith('.admin')) {
if (name.startsWith('admin/')) {
name = name.replace(/^admin\//, '');

@@ -181,0 +181,0 @@ } else

{
"name": "@iobroker/db-objects-jsonl",
"version": "4.0.0-alpha.2-20210830-d7e31ee8",
"version": "4.0.0-alpha.20-20211202-7f48f5ea",
"engines": {

@@ -8,6 +8,6 @@ "node": ">=12.0.0"

"dependencies": {
"@alcalzone/jsonl-db": "^2.1.0",
"@iobroker/db-base": "4.0.0-alpha.2-20210830-d7e31ee8",
"@iobroker/db-objects-file": "4.0.0-alpha.2-20210830-d7e31ee8",
"@iobroker/db-objects-redis": "4.0.0-alpha.2-20210830-d7e31ee8",
"@alcalzone/jsonl-db": "^2.2.0",
"@iobroker/db-base": "4.0.0-alpha.20-20211202-7f48f5ea",
"@iobroker/db-objects-file": "4.0.0-alpha.20-20211202-7f48f5ea",
"@iobroker/db-objects-redis": "4.0.0-alpha.20-20211202-7f48f5ea",
"deep-clone": "^3.0.3",

@@ -38,3 +38,7 @@ "fs-extra": "^10.0.0",

},
"gitHead": "8d222d1c77eb9647893d26267d899cc0e9571bf9"
"files": [
"lib/",
"index.js"
],
"gitHead": "c83735f4ad024f449335f45897c1aa68b88e372d"
}
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