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

@restroom-mw/db

Package Overview
Dependencies
Maintainers
3
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@restroom-mw/db - npm Package Compare versions

Comparing version 0.12.3-78d63fb.1 to 0.12.3-9bc85cc.9

dist/index.d.ts.map

1

dist/index.d.ts
import { Request, Response, NextFunction } from "express";
declare const _default: (req: Request, res: Response, next: NextFunction) => void;
export default _default;
//# sourceMappingURL=index.d.ts.map

4

package.json
{
"name": "@restroom-mw/db",
"version": "0.12.3-78d63fb.1+78d63fb",
"version": "0.12.3-9bc85cc.9+9bc85cc",
"description": "Database utilities middleware for Restroom",

@@ -41,3 +41,3 @@ "author": "Puria Nafisi Azizi <puria@dyne.org>",

},
"gitHead": "78d63fb2f435a50d0ccd8f2555e7d84b01ed724e"
"gitHead": "9bc85cce0f4a0ba57a5923f51fa773b820b2c1e7"
}
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);

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