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.0 to 5.13.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## [5.13.1](https://github.com/casbin/node-casbin/compare/v5.13.0...v5.13.1) (2022-02-22)
### Bug Fixes
* 'eval' not detected ([86e2add](https://github.com/casbin/node-casbin/commit/86e2add7c5aaa7901d21c1c4b9cb8e6d0b8bef75))
* created two regex expressions ([de5f2f4](https://github.com/casbin/node-casbin/commit/de5f2f4f27f40941b125bf068b8f90e44ba69fb1))
# [5.13.0](https://github.com/casbin/node-casbin/compare/v5.12.0...v5.13.0) (2022-01-25)

@@ -2,0 +10,0 @@

5

lib/cjs/util/util.js

@@ -106,3 +106,4 @@ "use strict";

exports.writeFile = writeFile;
const evalReg = new RegExp(/\beval\(([^),]*)\)/g);
const evalRegG = new RegExp(/\beval\(([^),]*)\)/g);
const evalReg = new RegExp(/\beval\(([^),]*)\)/);
// hasEval determine whether matcher contains function eval

@@ -120,3 +121,3 @@ function hasEval(s) {

function getEvalValue(s) {
const subMatch = s.match(evalReg);
const subMatch = s.match(evalRegG);
const rules = [];

@@ -123,0 +124,0 @@ if (!subMatch) {

@@ -93,3 +93,4 @@ // Copyright 2017 The casbin Authors. All Rights Reserved.

}
const evalReg = new RegExp(/\beval\(([^),]*)\)/g);
const evalRegG = new RegExp(/\beval\(([^),]*)\)/g);
const evalReg = new RegExp(/\beval\(([^),]*)\)/);
// hasEval determine whether matcher contains function eval

@@ -105,3 +106,3 @@ function hasEval(s) {

function getEvalValue(s) {
const subMatch = s.match(evalReg);
const subMatch = s.match(evalRegG);
const rules = [];

@@ -108,0 +109,0 @@ if (!subMatch) {

2

package.json
{
"name": "casbin",
"version": "5.13.0",
"version": "5.13.1",
"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