rado 0.1.47 → 0.1.48

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.
@@ -416,7 +416,9 @@ var Formatter = class {
416
416
  formatIn(ctx, expr) {
417
417
  const { stmt } = ctx;
418
418
  switch (expr.type) {
419
- case ExprType.Field:
419
+ case ExprType.Query:
420
+ return this.formatExprValue(ctx, expr);
421
+ default:
420
422
  stmt.openParenthesis();
421
423
  stmt.raw("SELECT value FROM json_each");
422
424
  stmt.openParenthesis();
@@ -424,8 +426,6 @@ var Formatter = class {
424
426
  stmt.closeParenthesis();
425
427
  stmt.closeParenthesis();
426
428
  return stmt;
427
- default:
428
- return this.formatExprValue(ctx, expr);
429
429
  }
430
430
  }
431
431
  retrieveField(expr, field) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {