typeorm-adapter
Advanced tools
Comparing version
@@ -170,7 +170,9 @@ "use strict"; | ||
astMap = model.model.get('g'); | ||
// @ts-ignore | ||
for (const [ptype, ast] of astMap) { | ||
for (const rule of ast.policy) { | ||
const line = this.savePolicyLine(ptype, rule); | ||
lines.push(line); | ||
if (astMap) { | ||
// @ts-ignore | ||
for (const [ptype, ast] of astMap) { | ||
for (const rule of ast.policy) { | ||
const line = this.savePolicyLine(ptype, rule); | ||
lines.push(line); | ||
} | ||
} | ||
@@ -177,0 +179,0 @@ } |
{ | ||
"name": "typeorm-adapter", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "TypeORM adapter for Casbin", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"build": "rimraf lib && tsc", | ||
"coverage": "jest --coverage", | ||
"coverage": "jest --coverage --runInBand", | ||
"lint": "tslint \"src/**/*.ts\"", | ||
@@ -14,0 +14,0 @@ "fix": "tslint \"src/**/*.ts\" --fix", |
@@ -8,3 +8,3 @@ TypeORM Adapter | ||
[](https://coveralls.io/github/node-casbin/typeorm-adapter?branch=master) | ||
[](https://gitter.im/casbin/lobby) | ||
[](https://discord.gg/S5UjpzGZjN) | ||
@@ -11,0 +11,0 @@ [npm-image]: https://img.shields.io/npm/v/typeorm-adapter.svg?style=flat-square |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42337
0.87%15
15.38%623
0.32%1
Infinity%