Skip to content

Commit

Permalink
Updated rbac-a dependency to latest and updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanickrochon committed Jan 6, 2016
1 parent 559cb62 commit 1dd7669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -33,7 +33,9 @@ const koa = require('koa');
const app = koa();
const rules = require('path/to/rules');
const options = {
rbac: new rbac.RBAC(new rbac.RBAC.providers.JsonProvider(rules))
rbac: new rbac.RBAC({
provider: new rbac.RBAC.providers.JsonProvider(rules)
})
// identity: function (ctx) { ... }
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "koa-rbac",
"version": "1.0.3",
"version": "1.0.4",
"description": "Role-Based Acess Control for Koa",
"author": "Yanick Rochon <yanick.rochon@gmail.com>",
"keywords": [
Expand All @@ -24,7 +24,7 @@
},
"dependencies": {
"error-factory": "0.1.6",
"rbac-a": "^0.2.3"
"rbac-a": "^0.2.4"
},
"devDependencies": {
"istanbul": "^0.4.1",
Expand Down

0 comments on commit 1dd7669

Please sign in to comment.