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

bookshelf-modelbase-plus

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookshelf-modelbase-plus - npm Package Compare versions

Comparing version 2.8.2 to 2.8.3

3

lib/index.js

@@ -202,3 +202,4 @@ const _ = require('lodash');

if (_.isArray(value) && operator in searchChain) {
return searchChain[operator.replace('and', options._logic || 'and')](`${tableName}.${key}`, value);
const searchMethod = options._logic === 'or' ? operator.replace('and', 'or') : operator;
return searchChain[searchMethod](`${tableName}.${key}`, value);
}

@@ -205,0 +206,0 @@ return searchChain[options._logic === 'or' ? 'orWhere' : 'andWhere'](`${tableName}.${key}`, operator, value);

{
"name": "bookshelf-modelbase-plus",
"version": "2.8.2",
"version": "2.8.3",
"description": "Extended functionality for REST operations with validation, filtering, ordering, importing records.",

@@ -5,0 +5,0 @@ "main": "./lib",

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