Socket
Socket
Sign inDemoInstall

zeanium-node

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeanium-node - npm Package Compare versions

Comparing version 0.6.42 to 0.6.43

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc