prisma-sql 1.56.0 → 1.58.0

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.
@@ -56,7 +56,7 @@ var require_package = __commonJS({
56
56
  "package.json"(exports$1, module) {
57
57
  module.exports = {
58
58
  name: "prisma-sql",
59
- version: "1.56.0",
59
+ version: "1.58.0",
60
60
  description: "Convert Prisma queries to optimized SQL with type safety. 2-7x faster than Prisma Client.",
61
61
  main: "dist/index.cjs",
62
62
  module: "dist/index.js",
@@ -5399,7 +5399,7 @@ export function speedExtension(config: {
5399
5399
  }
5400
5400
 
5401
5401
  const startTime = Date.now()
5402
- const { sql, params, keys } = buildBatchSql(
5402
+ const { sql, params, keys, aliases } = buildBatchSql(
5403
5403
  batchQueries,
5404
5404
  MODEL_MAP,
5405
5405
  MODELS,
@@ -5415,7 +5415,7 @@ export function speedExtension(config: {
5415
5415
  const normalizedParams = normalizeParams(params)
5416
5416
  const rows = await client.unsafe(sql, normalizedParams as any[])
5417
5417
  const row = rows[0] as Record<string, unknown>
5418
- const results = parseBatchResults(row, keys, batchQueries)
5418
+ const results = parseBatchResults(row, keys, batchQueries, aliases)
5419
5419
  const duration = Date.now() - startTime
5420
5420
 
5421
5421
  onQuery?.({