rado 0.1.17 → 0.1.18

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.
@@ -324,14 +324,15 @@ var Formatter = class {
324
324
  const column = expr.target.table.columns[field];
325
325
  switch (column?.type) {
326
326
  case ColumnType.Json:
327
- return call("json", selection);
327
+ if (ctx.formatAsJson)
328
+ return call("json", selection);
328
329
  default:
329
330
  return selection;
330
331
  }
331
332
  }
332
333
  default:
333
334
  return this.formatAccess(
334
- this.formatExpr(expr, { ...ctx, formatAsJson: true }),
335
+ this.formatExpr(expr, ctx),
335
336
  field,
336
337
  ctx.formatAsJson
337
338
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {