prisma-to-zod-v4 0.5.9 → 0.6.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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -213047,7 +213047,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
213047
213047
|
});
|
|
213048
213048
|
|
|
213049
213049
|
// package.json
|
|
213050
|
-
var version = "0.
|
|
213050
|
+
var version = "0.6.0";
|
|
213051
213051
|
|
|
213052
213052
|
// src/index.ts
|
|
213053
213053
|
var import_generator_helper = require("@prisma/generator-helper");
|
|
@@ -213236,7 +213236,7 @@ var getZodConstructor = (field, getRelatedModelName = (name) => name.toString(),
|
|
|
213236
213236
|
break;
|
|
213237
213237
|
}
|
|
213238
213238
|
} else if (field.kind === "enum") {
|
|
213239
|
-
zodType = `z.
|
|
213239
|
+
zodType = `z.enum(${field.type})`;
|
|
213240
213240
|
} else if (field.kind === "object") {
|
|
213241
213241
|
zodType = getRelatedModelName(field.type);
|
|
213242
213242
|
}
|