@sqb/builder 4.19.1 → 4.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,7 +58,7 @@ class CompOperator extends operator_js_1.Operator {
|
|
|
58
58
|
}
|
|
59
59
|
if (x instanceof param_expression_js_1.ParamExpression) {
|
|
60
60
|
let value = ctx.params ? ctx.params[x._name] : undefined;
|
|
61
|
-
if (x._isArray && value != null)
|
|
61
|
+
if (x._isArray && value != null && !Array.isArray(value))
|
|
62
62
|
value = [value];
|
|
63
63
|
result.value = value;
|
|
64
64
|
result.isArray = x._isArray || Array.isArray(value);
|
|
@@ -55,7 +55,7 @@ export class CompOperator extends Operator {
|
|
|
55
55
|
}
|
|
56
56
|
if (x instanceof ParamExpression) {
|
|
57
57
|
let value = ctx.params ? ctx.params[x._name] : undefined;
|
|
58
|
-
if (x._isArray && value != null)
|
|
58
|
+
if (x._isArray && value != null && !Array.isArray(value))
|
|
59
59
|
value = [value];
|
|
60
60
|
result.value = value;
|
|
61
61
|
result.isArray = x._isArray || Array.isArray(value);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/builder",
|
|
3
3
|
"description": "Extensible multi-dialect SQL query builder written with TypeScript",
|
|
4
|
-
"version": "4.19.
|
|
4
|
+
"version": "4.19.4",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"putil-isplainobject": "^1.1.5",
|
|
11
11
|
"putil-merge": "^3.13.0",
|
|
12
12
|
"putil-varhelpers": "^1.6.5",
|
|
13
|
-
"tslib": "^2.
|
|
13
|
+
"tslib": "^2.8.0"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|