Comparing version 4.0.0 to 4.1.0
@@ -122,6 +122,6 @@ import { Effector } from './effect'; | ||
/** | ||
* buildRoleLinks manually rebuild the | ||
* role inheritance relations. | ||
* buildRoleLinks manually rebuild the role inheritance relations. | ||
*/ | ||
buildRoleLinks(): Promise<void>; | ||
protected buildRoleLinksInternal(): Promise<void>; | ||
private privateEnforce; | ||
@@ -128,0 +128,0 @@ /** |
@@ -131,3 +131,3 @@ "use strict"; | ||
if (this.autoBuildRoleLinks) { | ||
yield this.buildRoleLinks(); | ||
yield this.buildRoleLinksInternal(); | ||
} | ||
@@ -152,3 +152,3 @@ }); | ||
if (this.autoBuildRoleLinks) { | ||
yield this.buildRoleLinks(); | ||
yield this.buildRoleLinksInternal(); | ||
} | ||
@@ -224,7 +224,11 @@ return true; | ||
/** | ||
* buildRoleLinks manually rebuild the | ||
* role inheritance relations. | ||
* buildRoleLinks manually rebuild the role inheritance relations. | ||
*/ | ||
buildRoleLinks() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.buildRoleLinksInternal(); | ||
}); | ||
} | ||
buildRoleLinksInternal() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.rm.clear(); | ||
@@ -231,0 +235,0 @@ yield this.model.buildRoleLinks(this.rm); |
@@ -5,2 +5,3 @@ import * as Util from './util'; | ||
export * from './cachedEnforcer'; | ||
export * from './syncedEnforcer'; | ||
export * from './effect'; | ||
@@ -7,0 +8,0 @@ export * from './model'; |
@@ -24,2 +24,3 @@ "use strict"; | ||
__export(require("./cachedEnforcer")); | ||
__export(require("./syncedEnforcer")); | ||
__export(require("./effect")); | ||
@@ -26,0 +27,0 @@ __export(require("./model")); |
@@ -381,3 +381,3 @@ "use strict"; | ||
if (this.autoBuildRoleLinks) { | ||
yield this.buildRoleLinks(); | ||
yield this.buildRoleLinksInternal(); | ||
} | ||
@@ -422,3 +422,3 @@ return ruleadded; | ||
if (this.autoBuildRoleLinks) { | ||
yield this.buildRoleLinks(); | ||
yield this.buildRoleLinksInternal(); | ||
} | ||
@@ -441,3 +441,3 @@ return ruleRemoved; | ||
if (this.autoBuildRoleLinks) { | ||
yield this.buildRoleLinks(); | ||
yield this.buildRoleLinksInternal(); | ||
} | ||
@@ -444,0 +444,0 @@ return ruleRemoved; |
{ | ||
"name": "casbin", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS", | ||
@@ -42,2 +42,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"await-lock": "^2.0.1", | ||
"expression-eval": "^2.0.0", | ||
@@ -44,0 +45,0 @@ "ip": "^1.1.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228158
101
5201
4
+ Addedawait-lock@^2.0.1
+ Addedawait-lock@2.2.2(transitive)