New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

casbin

Package Overview
Dependencies
Maintainers
6
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casbin - npm Package Compare versions

Comparing version 5.13.1 to 5.13.2

examples/basic_keyget2_model.conf

7

CHANGELOG.md

@@ -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 @@

10

lib/cjs/coreEnforcer.js

@@ -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'];

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc