🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

typeorm-adapter

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeorm-adapter - npm Package Compare versions

Comparing version

to
1.5.4

@@ -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

[![Coverage Status](https://coveralls.io/repos/github/node-casbin/typeorm-adapter/badge.svg?branch=master)](https://coveralls.io/github/node-casbin/typeorm-adapter?branch=master)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/casbin/lobby)
[![Discord](https://img.shields.io/discord/1022748306096537660?logo=discord&label=discord&color=5865F2)](https://discord.gg/S5UjpzGZjN)

@@ -11,0 +11,0 @@ [npm-image]: https://img.shields.io/npm/v/typeorm-adapter.svg?style=flat-square