Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

casbin

Package Overview
Dependencies
Maintainers
6
Versions
135
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.19.1 to 5.19.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [5.19.2](https://github.com/casbin/node-casbin/compare/v5.19.1...v5.19.2) (2022-11-12)
### Bug Fixes
* Revert "fix: escape assertion bug ([#394](https://github.com/casbin/node-casbin/issues/394))" ([#398](https://github.com/casbin/node-casbin/issues/398)) ([6127584](https://github.com/casbin/node-casbin/commit/61275848007386550dc211e3ed0b13388e654a29))
## [5.19.1](https://github.com/casbin/node-casbin/compare/v5.19.0...v5.19.1) (2022-10-04)

@@ -2,0 +9,0 @@

6

lib/cjs/util/util.js

@@ -40,6 +40,4 @@ "use strict";

function escapeAssertion(s) {
s = ' ' + s;
s = s.replace(/(?<=[\(| ])r\./g, 'r_');
s = s.replace(/(?<=[\(| ])p\./g, 'p_');
s = s.trim();
s = s.replace(/r\./g, 'r_');
s = s.replace(/p\./g, 'p_');
return s;

@@ -46,0 +44,0 @@ }

@@ -18,6 +18,4 @@ // Copyright 2017 The casbin Authors. All Rights Reserved.

function escapeAssertion(s) {
s = ' ' + s;
s = s.replace(/(?<=[\(| ])r\./g, 'r_');
s = s.replace(/(?<=[\(| ])p\./g, 'p_');
s = s.trim();
s = s.replace(/r\./g, 'r_');
s = s.replace(/p\./g, 'p_');
return s;

@@ -24,0 +22,0 @@ }

{
"name": "casbin",
"version": "5.19.1",
"version": "5.19.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