@iobroker/db-objects-redis
Advanced tools
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
196252
11
4135
+ Added@alcalzone/pak@0.7.0(transitive)
+ Added@iobroker/db-base@4.0.0-alpha.20-20211202-7f48f5ea(transitive)
+ Added@iobroker/js-controller-common@4.0.0-alpha.20-20211202-7f48f5ea(transitive)
+ Addedci-info@3.9.0(transitive)
- Removed@alcalzone/pak@0.6.0(transitive)
- Removed@iobroker/db-base@4.0.0-alpha.2-20210830-d7e31ee8(transitive)
- Removed@iobroker/js-controller-common@4.0.0-alpha.2-20210830-d7e31ee8(transitive)
Updatedioredis@^4.28.2