Comparing version 0.2.6 to 0.2.7
@@ -16,3 +16,4 @@ (function() { | ||
last: '', | ||
columns: null | ||
columns: null, | ||
itr: 0 | ||
}; | ||
@@ -354,5 +355,5 @@ | ||
format: function( v, k, s ) { | ||
// strip out non-alpha characters (makes parsers choke) | ||
var push = v.toString().replace( rx, "" ); | ||
var r = "mono_" + push; | ||
// using an iterator for field names to avoid collisions | ||
++global.itr; | ||
var r = "mono_" + global.itr; | ||
@@ -359,0 +360,0 @@ // add value to the param stack |
{ | ||
"name": "monologue", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Streamlined MySQL query building", | ||
@@ -5,0 +5,0 @@ "main": "./monologue.js", |
Monologue - Streamlined query building | ||
====================================== | ||
* Breaking Change - it has become obvious that in some cases, multiple instances of monologue may be used in a single script. To accommodate this, the constructor is now deployed through a wrapper. See examples below for correct usage. | ||
**Install** | ||
@@ -7,0 +5,0 @@ |
290
12581
106