Comparing version 3.0.6 to 3.0.7
@@ -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) { |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179578
4071