ee-query-builder
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -406,5 +406,10 @@ !function(){ | ||
}.bind(this)); | ||
return items.length ? ('(' + items.join(filter.mode === 'and' ? ' AND ' : ' OR ') + ')' ) : undefined; | ||
if (items.length) { | ||
if (items.length === 1) return items[0]; | ||
else return '(' + items.join(filter.mode === 'and' ? ' AND ' : ' OR ') + ')'; | ||
} | ||
else return undefined | ||
case 'object': | ||
@@ -421,3 +426,8 @@ if (type.function(filter.isQuery) && filter.isQuery()) { | ||
}.bind(this)); | ||
return items.length ? ('(' + items.join(' AND ') + ')'): undefined; | ||
if (items.length) { | ||
if (items.length === 1) return items[0]; | ||
else return '(' + items.join(' AND ') + ')'; | ||
} | ||
else return undefined | ||
} | ||
@@ -424,0 +434,0 @@ break; |
{ | ||
"name" : "ee-query-builder" | ||
, "description" : "query builder for ee-orm" | ||
, "version" : "0.2.8" | ||
, "version" : "0.2.9" | ||
, "homepage" : "https://github.com/eventEmitter/ee-query-builder" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
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
22889
527
14