zeanium-node
Advanced tools
Comparing version 0.6.9 to 0.6.10
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -44,3 +44,4 @@ /** | ||
var _key = null, | ||
_value = ''; | ||
_value = '', | ||
_data = {}; | ||
zn.each(data || {}, function (value, key){ | ||
@@ -52,7 +53,7 @@ key = key.toLowerCase(); | ||
if(_value){ | ||
data[key] = " " + _value + " "; | ||
_data[key] = " " + _value + " "; | ||
} | ||
}.bind(this)); | ||
return zn.overwrite(data, DEFAULTS); | ||
return zn.overwrite(_data, DEFAULTS); | ||
}, | ||
@@ -59,0 +60,0 @@ parseIfRights: function (value){ |
@@ -62,4 +62,4 @@ /** | ||
__format: function (sql, data){ | ||
data.fields = data.fields || '*'; | ||
return sql.format(SchemaSqlParser.parse(data)).replace(/\s+/g, ' '); | ||
var _data = zn.overwrite({ fields: '*' }, data); | ||
return sql.format(SchemaSqlParser.parse(_data)).replace(/\s+/g, ' '); | ||
//return sql.format(SchemaSqlParser.parse(data)).replace(/\s+/g, ' ').replace(/(^s*)|(s*$)/g, ''); | ||
@@ -66,0 +66,0 @@ } |
250644
5948