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

ee-query-builder

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-query-builder - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

23

lib/Functions.js

@@ -32,9 +32,14 @@ !function(){

, in: function(command, paramaters){
, in: function(command, paramaters) {
var values = command.values;
if (type.array(command.values) && command.values.length && type.function(command.values[0].isQuery)) values = values[0];
//if (command.values.length) {
if (type.function(command.values.isQuery)) {
return ' IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(command.values), paramaters).SQLString+')';
if (type.function(values.isQuery)) {
return ' IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(values), paramaters).SQLString+')';
}
else {
return ' IN (' +command.values.map(function(value) {
return ' IN (' +values.map(function(value) {
return this._escape(value);

@@ -48,7 +53,11 @@ }.bind(this)).join(', ') +')';

, notIn: function(command, paramaters) {
if (type.function(command.values.isQuery)) {
return ' NOT IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(command.values), paramaters).SQLString+')';
var values = command.values;
if (type.array(command.values) && command.values.length && type.function(command.values[0].isQuery)) values = values[0];
if (type.function(values.isQuery)) {
return ' NOT IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(values), paramaters).SQLString+')';
}
else {
return ' NOT IN (' +command.values.map(function(value){
return ' NOT IN (' +values.map(function(value){
return this._escape(value);

@@ -55,0 +64,0 @@ }.bind(this)).join(', ') +')';

{
"name" : "ee-query-builder"
, "description" : "query builder for ee-orm"
, "version" : "0.1.24"
, "version" : "0.1.25"
, "homepage" : "https://github.com/eventEmitter/ee-query-builder"

@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)"

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