🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

casbin

Package Overview
Dependencies
Maintainers
3
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

to
3.0.3

11

lib/model/model.js

@@ -83,2 +83,13 @@ "use strict";

}
else if (sec === 'm') {
const stringArguments = value.match(/\"(.*?)\"/g) || [];
stringArguments.forEach((n, index) => {
value = value.replace(n, `$<${index}>`);
});
value = util.removeComments(util.escapeAssertion(value));
stringArguments.forEach((n, index) => {
value = value.replace(`$<${index}>`, n);
});
ast.value = value;
}
else {

@@ -85,0 +96,0 @@ ast.value = util.removeComments(util.escapeAssertion(value));

2

package.json
{
"name": "casbin",
"version": "3.0.2",
"version": "3.0.3",
"description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS",

@@ -5,0 +5,0 @@ "main": "lib/index.js",