Comparing version 5.13.1 to 5.13.2
@@ -0,1 +1,8 @@ | ||
## [5.13.2](https://github.com/casbin/node-casbin/compare/v5.13.1...v5.13.2) (2022-03-02) | ||
### Bug Fixes | ||
* *matcher result should be boolean or number* for KeyGet2 ([#347](https://github.com/casbin/node-casbin/issues/347)) ([0257078](https://github.com/casbin/node-casbin/commit/0257078e1302f5ef081ec143afe5c470f4f862e9)) | ||
## [5.13.1](https://github.com/casbin/node-casbin/compare/v5.13.0...v5.13.1) (2022-02-22) | ||
@@ -2,0 +9,0 @@ |
@@ -390,4 +390,12 @@ "use strict"; | ||
break; | ||
case 'string': | ||
if (result === '') { | ||
eftRes = effect_1.Effect.Indeterminate; | ||
} | ||
else { | ||
eftRes = effect_1.Effect.Allow; | ||
} | ||
break; | ||
default: | ||
throw new Error('matcher result should be boolean or number'); | ||
throw new Error('matcher result should only be of type boolean, number, or string'); | ||
} | ||
@@ -394,0 +402,0 @@ const eft = parameters['p_eft']; |
@@ -387,4 +387,12 @@ // Copyright 2018 The Casbin Authors. All Rights Reserved. | ||
break; | ||
case 'string': | ||
if (result === '') { | ||
eftRes = Effect.Indeterminate; | ||
} | ||
else { | ||
eftRes = Effect.Allow; | ||
} | ||
break; | ||
default: | ||
throw new Error('matcher result should be boolean or number'); | ||
throw new Error('matcher result should only be of type boolean, number, or string'); | ||
} | ||
@@ -391,0 +399,0 @@ const eft = parameters['p_eft']; |
{ | ||
"name": "casbin", | ||
"version": "5.13.1", | ||
"version": "5.13.2", | ||
"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", |
537522
216
12770