zeanium-node
Advanced tools
Comparing version 0.6.42 to 0.6.43
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.42", | ||
"version": "0.6.43", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"mysql": "^2.13.0", | ||
"zeanium": "^1.1.26" | ||
"zeanium": "^1.1.28" | ||
}, | ||
@@ -39,0 +39,0 @@ "preferGlobal": "true", |
@@ -206,3 +206,3 @@ /** | ||
}, | ||
parseWhere: function (where){ | ||
parseWhere: function (where, addKeyWord){ | ||
if(zn.is(where, 'function')){ | ||
@@ -264,8 +264,32 @@ where = where.call(this._context); | ||
if(key.indexOf('&') != -1){ | ||
_values.push(key.replace('&', '') + value); | ||
switch (key.split('&')[1]) { | ||
case 'like': | ||
value = this.__like(value); | ||
break; | ||
case 'in': | ||
case 'not in': | ||
value = this.__in(value); | ||
case 'between': | ||
case 'not between': | ||
value = this.__betweenAnd(value); | ||
break; | ||
} | ||
_values.push(key.replace('&', ' ') + ' ' + value); | ||
}else if (key.indexOf('|') != -1) { | ||
_ors.push(key.replace('|', '') + value); | ||
switch (key.split('|')[1]) { | ||
case 'like': | ||
value = this.__like(value); | ||
break; | ||
case 'in': | ||
case 'not in': | ||
value = this.__in(value); | ||
case 'between': | ||
case 'not between': | ||
value = this.__betweenAnd(value); | ||
break; | ||
} | ||
_ors.push(key.replace('|', ' ') + ' ' + value); | ||
} | ||
} | ||
}); | ||
}.bind(this)); | ||
@@ -287,3 +311,3 @@ _return = _values.join(' and '); | ||
if(_return){ | ||
if(_return && addKeyWord !== false){ | ||
_return = 'where ' + _return; | ||
@@ -290,0 +314,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265998
6179
Updatedzeanium@^1.1.28