prisma-sql 1.47.0 → 1.48.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 +6 -1
- package/dist/generator.cjs.map +1 -1
- package/dist/generator.js +6 -1
- package/dist/generator.js.map +1 -1
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -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.
|
|
59
|
+
version: "1.48.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",
|
|
@@ -4893,6 +4893,10 @@ function transformEnumValues(modelName: string, obj: any, currentPath: string[]
|
|
|
4893
4893
|
return obj.map(item => transformEnumValues(modelName, item, currentPath))
|
|
4894
4894
|
}
|
|
4895
4895
|
|
|
4896
|
+
if (obj instanceof Date) {
|
|
4897
|
+
return obj
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4896
4900
|
if (typeof obj === 'object') {
|
|
4897
4901
|
const transformed: any = {}
|
|
4898
4902
|
const modelFields = ENUM_FIELDS[modelName] || {}
|
|
@@ -4924,6 +4928,7 @@ function transformEnumValues(modelName: string, obj: any, currentPath: string[]
|
|
|
4924
4928
|
return obj
|
|
4925
4929
|
}
|
|
4926
4930
|
|
|
4931
|
+
|
|
4927
4932
|
function normalizeQuery(args: any): string {
|
|
4928
4933
|
if (!args) return '{}'
|
|
4929
4934
|
|