prisma-sql 1.15.0 → 1.16.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.15.0",
59
+ version: "1.16.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",
@@ -4522,13 +4522,10 @@ function extractDynamicParams(args: any, dynamicKeys: string[]): unknown[] {
4522
4522
 
4523
4523
  for (const key of dynamicKeys) {
4524
4524
  const parts = key.split(':')
4525
- const path = parts[0].split('.')
4526
- let value: any = args
4525
+
4526
+ const lookupKey = parts.length === 2 ? parts[1] : key
4527
4527
 
4528
- for (const part of path) {
4529
- if (value === null || value === undefined) break
4530
- value = value[part]
4531
- }
4528
+ const value = args[lookupKey]
4532
4529
 
4533
4530
  if (value === undefined) {
4534
4531
  throw new Error(\`Missing required parameter: \${key}\`)