pqb 0.23.0 → 0.23.2

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/index.mjs CHANGED
@@ -3346,12 +3346,7 @@ const text = __spreadProps$6(__spreadValues$a({}, base), {
3346
3346
  });
3347
3347
  const json = __spreadProps$6(__spreadValues$a({}, base), {
3348
3348
  jsonPath: make(
3349
- (key, [path, op, value], ctx, quotedAs) => `jsonb_path_query_first(${key}, '${path}') #>> '{}' ${op} ${quoteValue(
3350
- value,
3351
- ctx,
3352
- quotedAs,
3353
- true
3354
- )}`
3349
+ (key, [path, op, value], ctx, quotedAs) => `jsonb_path_query_first(${key}, '${path}') #>> '{}' ${op} ${value === null ? "null" : quoteValue(value, ctx, quotedAs, true)}`
3355
3350
  ),
3356
3351
  jsonSupersetOf: make(
3357
3352
  (key, value, ctx, quotedAs) => `${key} @> ${quoteValue(value, ctx, quotedAs, true)}`