@restroom-mw/db
Advanced tools
Comparing version 0.12.3-d624e4f.0 to 0.12.3-e016561.13
import { Request, Response, NextFunction } from "express"; | ||
declare const _default: (req: Request, res: Response, next: NextFunction) => void; | ||
export default _default; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@restroom-mw/db", | ||
"version": "0.12.3-d624e4f.0+d624e4f", | ||
"version": "0.12.3-e016561.13+e016561", | ||
"description": "Database utilities middleware for Restroom", | ||
@@ -41,3 +41,3 @@ "author": "Puria Nafisi Azizi <puria@dyne.org>", | ||
}, | ||
"gitHead": "d624e4f957c02afccc835b6d400b3fa959c950f4" | ||
"gitHead": "e01656122cb948f315e6706b538af7c664aef12c" | ||
} |
import { DataTypes, Model, Sequelize } from "sequelize"; | ||
import { Restroom } from "@restroom-mw/core"; | ||
import { Request, Response, NextFunction } from "express"; | ||
import { ObjectLiteral } from "@restroom-mw/types"; | ||
@@ -26,6 +27,2 @@ class Result extends Model { | ||
interface ObjectLiteral { | ||
[key: string]: any; | ||
} | ||
interface QueryGetRecord { | ||
@@ -66,4 +63,4 @@ id: string; | ||
: keys && typeof keys === "object" | ||
? keys | ||
: parse(keys); | ||
? keys | ||
: parse(keys); | ||
dataContent = | ||
@@ -73,4 +70,4 @@ typeof data === "undefined" | ||
: data && typeof data === "object" | ||
? data | ||
: parse(data); | ||
? data | ||
: parse(data); | ||
content = { ...dataContent, ...keysContent }; | ||
@@ -77,0 +74,0 @@ contentKeys = Object.keys(content); |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
56394
6
507