Comparing version 0.7.2 to 0.7.3
@@ -224,3 +224,3 @@ (function(exports) { | ||
Monologue.prototype.where = function where( wh, sep ) { | ||
this.parts.where = this.condition(wh, sep, this.parts.where); | ||
this.parts.where = condition.call( this, wh, sep, this.parts.where ); | ||
@@ -237,3 +237,3 @@ this.last_condition = this.where; | ||
Monologue.prototype.having = function having( hav, sep ) { | ||
this.parts.having = this.condition(hav, sep, this.parts.having); | ||
this.parts.having = condition.call( this, hav, sep, this.parts.having ); | ||
@@ -246,3 +246,3 @@ this.last_condition = this.having; | ||
Monologue.prototype.condition = function condition(cond, sep, part) { | ||
function condition(cond, sep, part) { | ||
sep = ( typeof sep === "undefined" ? "AND" : sep ); | ||
@@ -415,3 +415,3 @@ sep = ( sep.length > 0 ? " " + sep + " " : sep ); | ||
//*** not sure if these 2 blocks belong. they make queries read more | ||
//*** naturally but by adding complexity... | ||
//*** naturally, but by adding complexity... | ||
@@ -418,0 +418,0 @@ //*** sample usage |
{ | ||
"name": "monologue", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Streamlined MySQL query building", | ||
@@ -5,0 +5,0 @@ "main": "./monologue.js", |
59061