rado 0.1.55 → 0.1.56
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.
- package/dist/lib/Formatter.js +3 -3
- package/package.json +1 -1
package/dist/lib/Formatter.js
CHANGED
|
@@ -496,12 +496,12 @@ var Formatter = class {
|
|
|
496
496
|
case ((formatAsDefault || !formatAsJson) && typeof rawValue === "boolean"):
|
|
497
497
|
return rawValue ? stmt.raw("1") : stmt.raw("0");
|
|
498
498
|
case Array.isArray(rawValue):
|
|
499
|
-
|
|
499
|
+
const asJson = formatAsJson || formatAsDefault;
|
|
500
|
+
if (asJson)
|
|
500
501
|
stmt.raw("json_array");
|
|
501
|
-
}
|
|
502
502
|
stmt.openParenthesis();
|
|
503
503
|
for (const v of stmt.separate(rawValue))
|
|
504
|
-
this.formatValue({ ...ctx, formatAsJson:
|
|
504
|
+
this.formatValue({ ...ctx, formatAsJson: asJson }, v);
|
|
505
505
|
stmt.closeParenthesis();
|
|
506
506
|
return stmt;
|
|
507
507
|
case (typeof rawValue === "string" || typeof rawValue === "number"):
|