mongoose-acl
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -18,3 +18,3 @@ module.exports = function(schema, options) { | ||
schema.methods.setAccess = function(key, perms) { | ||
perms || (perms = {}); | ||
perms || (perms = []); | ||
this[options.path] || (this[options.path] = {}); | ||
@@ -21,0 +21,0 @@ this[options.path][key] = perms; |
{ | ||
"name": "mongoose-acl", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Mongoose ACL", | ||
"homepage": "http://github.com/scttnlsn/mongoose-acl", | ||
"author": "Scott Nelson <scott@scttnlsn.com>", | ||
"contributors": ["Joshua Gross <josh@spandex.io>"], | ||
"main": "./lib/index", | ||
@@ -8,0 +9,0 @@ |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
12078
0
1