Comparing version
{ | ||
"name": "role-acl", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Role, Attribute and Condition based Access Control for Node.js", | ||
@@ -18,2 +18,3 @@ "main": "./index.js", | ||
"build": "rimraf ./lib && mkdirp ./lib && tsc", | ||
"publish": "npm run build && npm publish", | ||
"test": "ts-node ./node_modules/jasmine/bin/jasmine.js JASMINE_CONFIG_PATH=jasmine.json", | ||
@@ -20,0 +21,0 @@ "test:coverage": "./node_modules/istanbul/lib/cli.js cover -e .ts -x \"*.d.ts\" -x \"*.spec.ts\" ts-node node_modules/jasmine/bin/jasmine.js -- JASMINE_CONFIG_PATH=jasmine.json", |
@@ -24,2 +24,3 @@ [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=73QY55FZWSPRJ) [](https://travis-ci.org/tensult/role-acl) [](https://codeclimate.com/github/tensult/role-acl/test_coverage) [](https://npmjs.org/package/role-acl) [](https://github.com/tensult/role-acl/issues) | ||
- Supports AND, OR, NOT, EQUALS, NOT_EQUALS, STARTS_WITH, LIST_CONTAINS conditions. | ||
- You can specify dynamic context values in the conditions using JSON Paths. | ||
- You can define your own condition functions too but please note if you use custom functions instead of standard conditions, you won't be able to save them as json in the DB. | ||
@@ -94,3 +95,4 @@ - Policies are JSON compatible so can be stored and retrieved from database. | ||
// We can use this to prevent someone to approve their own article so that it goes to review by someone before publishing | ||
// We can use this to prevent someone to approve their own article so that it goes to review | ||
// by someone else before publishing | ||
ac.grant('user').condition( | ||
@@ -97,0 +99,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
176307
45.87%56
16.67%3820
40.18%445
0.45%1
Infinity%