Comparing version 3.7.7 to 3.7.8
@@ -157,3 +157,3 @@ /* SQB | ||
* | ||
* @param {Boolean} force | ||
* @param {Boolean} [force] | ||
* @return {Promise} | ||
@@ -160,0 +160,0 @@ * @override |
@@ -111,4 +111,2 @@ /* eslint-disable */ | ||
__serialize /* istanbul ignore next : This is an abstract method */(ctx, o) { | ||
if (o.value === '()') | ||
return ''; | ||
return (Array.isArray(o.expression) ? | ||
@@ -115,0 +113,0 @@ '(' + o.expression.join(',') + ')' : o.expression) + |
@@ -15,2 +15,3 @@ /* SQB | ||
const CompOperator = require('./CompOperator'); | ||
const {ErrorEx} = require('errorex'); | ||
@@ -36,2 +37,11 @@ /** | ||
/** | ||
* @override | ||
*/ | ||
__serialize(ctx, o) { | ||
if (o.value === '()') | ||
throw new ErrorEx('"in" operator does not allow empty list'); | ||
return super.__serialize.apply(this, arguments); | ||
} | ||
} | ||
@@ -38,0 +48,0 @@ |
{ | ||
"name": "sqb", | ||
"description": "Extensible, multi-dialect SQL query builder and Database connection framework for JavaScript", | ||
"version": "3.7.7", | ||
"version": "3.7.8", | ||
"author": "Panates Ltd.", | ||
@@ -27,3 +27,3 @@ "contributors": [ | ||
"doublylinked": "^2.0.1", | ||
"errorex": "^2.3.0", | ||
"errorex": "^2.3.1", | ||
"lightning-pool": "^2.0.10", | ||
@@ -42,3 +42,3 @@ "putil-flattentext": "^2.0.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^14.0.0" | ||
"nyc": "^14.1.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "engines": { |
121624
4477
Updatederrorex@^2.3.1