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

@coding-blocks/express-jsonapi-controller

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coding-blocks/express-jsonapi-controller - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

lib/baseController.js

@@ -137,7 +137,7 @@ const JSONAPISerializer = require('jsonapi-serializer').Serializer

generateRelationshipWhereClause (req, modelName) {
if (!req) return {}
if (!req) return null
const { filterRelationships } = req.query
if (filterRelationships && filterRelationships[modelName]) return filterRelationships[modelName]
return {}
return null
}

@@ -144,0 +144,0 @@

{
"name": "@coding-blocks/express-jsonapi-controller",
"version": "1.1.1",
"version": "1.1.2",
"description": "Generic Base Controller for express to generate JSON API response",

@@ -5,0 +5,0 @@ "main": "index.js",

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