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

casbin

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

2

lib/coreEnforcer.js

@@ -242,4 +242,2 @@ "use strict";

const astMap = this.model.model.get('g');
// TODO Typescript 3.7 is not supported by prettier
// eslint-disable-next-line prettier/prettier
(_a = astMap) === null || _a === void 0 ? void 0 : _a.forEach((value, key) => {

@@ -246,0 +244,0 @@ const rm = value.rm;

@@ -163,4 +163,2 @@ "use strict";

const policy = [];
// TODO Typescript 3.7 is not supported by prettier
// eslint-disable-next-line prettier/prettier
const ast = (_a = this.model.get(sec)) === null || _a === void 0 ? void 0 : _a.get(key);

@@ -167,0 +165,0 @@ if (ast) {

4

lib/persist/helper.js

@@ -5,6 +5,6 @@ "use strict";

static loadPolicyLine(line, model) {
if (line === '' || line.charAt(0) === '#') {
if (!line || line.trim() === '' || line.charAt(0) === '#') {
return;
}
const tokens = line.split(', ').map(n => n.trim());
const tokens = line.split(',').map(n => n.trim());
const key = tokens[0];

@@ -11,0 +11,0 @@ const sec = key.substring(0, 1);

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

@@ -28,3 +28,3 @@ "main": "lib/index.js",

"lint-staged": "^8.1.7",
"prettier": "^1.18.2",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",

@@ -31,0 +31,0 @@ "rimraf": "^2.6.2",

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