Comparing version 5.11.4 to 5.11.5
@@ -0,1 +1,8 @@ | ||
## [5.11.5](https://github.com/casbin/node-casbin/compare/v5.11.4...v5.11.5) (2021-08-18) | ||
### Bug Fixes | ||
* fix error overloading for role manager ([#319](https://github.com/casbin/node-casbin/issues/319)) ([e69450b](https://github.com/casbin/node-casbin/commit/e69450b53a06be4abda9b1669d578ef1e27dc19d)) | ||
## [5.11.4](https://github.com/casbin/node-casbin/compare/v5.11.3...v5.11.4) (2021-08-17) | ||
@@ -2,0 +9,0 @@ |
@@ -32,3 +32,2 @@ "use strict"; | ||
this.watcher = null; | ||
this.rmMap = new Map([['g', new rbac_1.DefaultRoleManager(10)]]); | ||
this.enabled = true; | ||
@@ -164,3 +163,2 @@ this.autoSave = true; | ||
this.sortPolicies(); | ||
this.initRmMap(); | ||
if (this.autoBuildRoleLinks) { | ||
@@ -194,3 +192,2 @@ await this.buildRoleLinksInternal(); | ||
this.sortPolicies(); | ||
this.initRmMap(); | ||
if (this.autoBuildRoleLinks) { | ||
@@ -197,0 +194,0 @@ await this.buildRoleLinksInternal(); |
@@ -69,2 +69,3 @@ "use strict"; | ||
this.model.printModel(); | ||
this.initRmMap(); | ||
if (!lazyLoad && this.adapter) { | ||
@@ -71,0 +72,0 @@ await this.loadPolicy(); |
@@ -29,3 +29,2 @@ // Copyright 2018 The Casbin Authors. All Rights Reserved. | ||
this.watcher = null; | ||
this.rmMap = new Map([['g', new DefaultRoleManager(10)]]); | ||
this.enabled = true; | ||
@@ -161,3 +160,2 @@ this.autoSave = true; | ||
this.sortPolicies(); | ||
this.initRmMap(); | ||
if (this.autoBuildRoleLinks) { | ||
@@ -191,3 +189,2 @@ await this.buildRoleLinksInternal(); | ||
this.sortPolicies(); | ||
this.initRmMap(); | ||
if (this.autoBuildRoleLinks) { | ||
@@ -194,0 +191,0 @@ await this.buildRoleLinksInternal(); |
@@ -66,2 +66,3 @@ // Copyright 2018 The Casbin Authors. All Rights Reserved. | ||
this.model.printModel(); | ||
this.initRmMap(); | ||
if (!lazyLoad && this.adapter) { | ||
@@ -68,0 +69,0 @@ await this.loadPolicy(); |
{ | ||
"name": "casbin", | ||
"version": "5.11.4", | ||
"version": "5.11.5", | ||
"description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS", | ||
@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js", |
530487
12644