prisma-sql 1.78.0 → 1.79.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.
- package/dist/generator.cjs +3 -3
- package/dist/generator.cjs.map +1 -1
- package/dist/generator.js +3 -3
- package/dist/generator.js.map +1 -1
- package/package.json +1 -1
package/dist/generator.js
CHANGED
|
@@ -68,7 +68,7 @@ var require_package = __commonJS({
|
|
|
68
68
|
"package.json"(exports$1, module) {
|
|
69
69
|
module.exports = {
|
|
70
70
|
name: "prisma-sql",
|
|
71
|
-
version: "1.
|
|
71
|
+
version: "1.79.0",
|
|
72
72
|
description: "Convert Prisma queries to optimized SQL with type safety. 2-7x faster than Prisma Client.",
|
|
73
73
|
main: "dist/index.cjs",
|
|
74
74
|
module: "dist/index.js",
|
|
@@ -8180,7 +8180,7 @@ function generateExtension(runtimeImportPath) {
|
|
|
8180
8180
|
$parent?: any
|
|
8181
8181
|
}
|
|
8182
8182
|
|
|
8183
|
-
|
|
8183
|
+
async function handleMethod(
|
|
8184
8184
|
this: ModelContext,
|
|
8185
8185
|
method: PrismaMethod,
|
|
8186
8186
|
args: unknown
|
|
@@ -8192,6 +8192,7 @@ function generateExtension(runtimeImportPath) {
|
|
|
8192
8192
|
}
|
|
8193
8193
|
|
|
8194
8194
|
const startTime = Date.now()
|
|
8195
|
+
let sql: string | undefined
|
|
8195
8196
|
|
|
8196
8197
|
try {
|
|
8197
8198
|
if (args !== undefined && args !== null && typeof args !== 'object') {
|
|
@@ -8227,7 +8228,6 @@ function generateExtension(runtimeImportPath) {
|
|
|
8227
8228
|
|
|
8228
8229
|
const queryKey = normalizeQuery(plan.filteredArgs)
|
|
8229
8230
|
const prebakedQuery = QUERIES[modelName]?.[method]?.[queryKey]
|
|
8230
|
-
let sql: string
|
|
8231
8231
|
let params: unknown[]
|
|
8232
8232
|
let prebaked = false
|
|
8233
8233
|
let requiresReduction = false
|