Comparing version 0.2.7 to 0.2.9
@@ -157,3 +157,3 @@ (function() { | ||
// returns "this" | ||
return this.where( " IN (" + i.join( "," ) + ")", "" ); | ||
return this.where( " IN (" + i + ")", "" ); | ||
}, | ||
@@ -313,6 +313,2 @@ | ||
if( Array.isArray( p ) ) { | ||
// grab the column names from the first object | ||
global.columns = Object.keys( p[0] ).sort(); | ||
c.push( global.columns ); | ||
for( var ii = 0, l = p.length; ii < l; ++ii ) { | ||
@@ -322,2 +318,7 @@ // if parent is an array and child is an object, | ||
if( toString.call( p[ii] ) === "[object Object]" ) { | ||
if( c.length === 0 ) { | ||
// grab the column names from the first object | ||
global.columns = Object.keys( p[0] ).sort(); | ||
c.push( global.columns ); | ||
} | ||
c.push( "(" + this.stringify( p[ii], "" ) + ")"); | ||
@@ -324,0 +325,0 @@ } |
{ | ||
"name": "monologue", | ||
"version": "0.2.7", | ||
"version": "0.2.9", | ||
"description": "Streamlined MySQL query building", | ||
@@ -5,0 +5,0 @@ "main": "./monologue.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
12008
4
275