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.
@@ -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
- if (formatAsDefault || formatAsJson) {
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: false }, v);
504
+ this.formatValue({ ...ctx, formatAsJson: asJson }, v);
505
505
  stmt.closeParenthesis();
506
506
  return stmt;
507
507
  case (typeof rawValue === "string" || typeof rawValue === "number"):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",