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

@iobroker/db-objects-redis

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

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

@@ -19,4 +19,4 @@ /**

const regUser = /^system\.user\./;
const regGroup = /^system\.group\./;
const userStartsWith = 'system.user.';
const groupStartsWith = 'system.group.';
const regCheckId = /[*?[\]]|\$%\$/;

@@ -336,3 +336,3 @@

function getUserGroup(objects, user, callback) {
if (!user || typeof user !== 'string' || !user.match(regUser)) {
if (!user || typeof user !== 'string' || !user.startsWith(userStartsWith)) {
console.log(`invalid user name: ${user}`);

@@ -585,3 +585,3 @@ user = JSON.stringify(user);

// if user or group objects
if (regUser.test(id) || regGroup.test(id)) {
if (typeof id === 'string' && (id.startsWith(userStartsWith) || id.startsWith(groupStartsWith))) {
// If user may write

@@ -588,0 +588,0 @@ if (flag === ACCESS_WRITE && !options.acl.users.write) {// write

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

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

"dependencies": {
"@iobroker/db-base": "4.0.0-alpha.2-20210830-d7e31ee8",
"@iobroker/db-base": "4.0.0-alpha.20-20211202-7f48f5ea",
"deep-clone": "^3.0.3",
"ioredis": "^4.27.6",
"ioredis": "^4.28.2",
"node.extend": "^2.0.2"

@@ -35,3 +35,7 @@ },

},
"gitHead": "8d222d1c77eb9647893d26267d899cc0e9571bf9"
"files": [
"lib/",
"index.js"
],
"gitHead": "c83735f4ad024f449335f45897c1aa68b88e372d"
}

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

Sorry, the diff of this file is too big to display