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

casbin

Package Overview
Dependencies
Maintainers
5
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.11.0 to 5.11.1

CHANGELOG.md

4

lib/cjs/coreEnforcer.js

@@ -41,5 +41,3 @@ "use strict";

expression_eval_1.addBinaryOp('in', 1, (a, b) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return (a in b);
return b.includes(a);
});

@@ -46,0 +44,0 @@ let expression = this.matcherMap.get(matcherKey);

@@ -38,5 +38,3 @@ // Copyright 2018 The Casbin Authors. All Rights Reserved.

addBinaryOp('in', 1, (a, b) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return (a in b);
return b.includes(a);
});

@@ -43,0 +41,0 @@ let expression = this.matcherMap.get(matcherKey);

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

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

"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.0",
"@semantic-release/npm": "^7.0.10",
"@semantic-release/release-notes-generator": "^9.0.2",
"@semantic-release/github": "^7.2.3",
"@semantic-release/npm": "^7.1.3",
"@semantic-release/release-notes-generator": "^9.0.3",
"@types/jest": "^26.0.20",

@@ -48,3 +48,3 @@ "@types/lodash": "^4.14.168",

"rimraf": "^3.0.2",
"semantic-release": "^17.4.2",
"semantic-release": "^17.4.4",
"ts-jest": "^26.5.3",

@@ -51,0 +51,0 @@ "tslint": "^5.11.0",

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