@slynova/fence
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -56,2 +56,10 @@ "use strict"; | ||
/** | ||
* Creates a Bouncer with the given user. | ||
* | ||
* @param user User to test | ||
*/ | ||
can(user) { | ||
return Guard.can(user); | ||
} | ||
/** | ||
* Check the bouncer if the gate/policy denies the user. | ||
@@ -58,0 +66,0 @@ * |
{ | ||
"name": "@slynova/fence", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Flexible and Fluent way to manage ACL in Node.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -40,2 +40,8 @@ /** | ||
/** | ||
* Creates a Bouncer with the given user. | ||
* | ||
* @param user User to test | ||
*/ | ||
can(user: Function | object): Bouncer; | ||
/** | ||
* Check the bouncer if the gate/policy denies the user. | ||
@@ -42,0 +48,0 @@ * |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20273
557
0