@stryke/prisma-trpc-generator 0.4.1 → 0.4.2

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.
@@ -10734,7 +10734,7 @@ ${this.generateExportSchemaStatement(`${name}`, `z.enum(${JSON.stringify(values)
10734
10734
  const arr = inputType.isList ? ".array()" : "";
10735
10735
  const opt = !field.isRequired ? ".optional()" : "";
10736
10736
  const nullable = field.inputTypes.length > 1 && field.inputTypes[1]?.type === "Null" ? ".nullable()" : "";
10737
- return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10737
+ return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}${nullable}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10738
10738
  }
10739
10739
  generateFieldValidators(zodStringWithMainType, field) {
10740
10740
  const { isRequired, isNullable } = field;
package/dist/generator.js CHANGED
@@ -10739,7 +10739,7 @@ ${this.generateExportSchemaStatement(`${name}`, `z.enum(${JSON.stringify(values)
10739
10739
  const arr = inputType.isList ? ".array()" : "";
10740
10740
  const opt = !field.isRequired ? ".optional()" : "";
10741
10741
  const nullable = field.inputTypes.length > 1 && field.inputTypes[1]?.type === "Null" ? ".nullable()" : "";
10742
- return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10742
+ return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}${nullable}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10743
10743
  }
10744
10744
  generateFieldValidators(zodStringWithMainType, field) {
10745
10745
  const { isRequired, isNullable } = field;
package/dist/index.cjs CHANGED
@@ -10730,7 +10730,7 @@ ${this.generateExportSchemaStatement(`${name}`, `z.enum(${JSON.stringify(values)
10730
10730
  const arr = inputType.isList ? ".array()" : "";
10731
10731
  const opt = !field.isRequired ? ".optional()" : "";
10732
10732
  const nullable = field.inputTypes.length > 1 && field.inputTypes[1]?.type === "Null" ? ".nullable()" : "";
10733
- return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10733
+ return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}${nullable}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10734
10734
  }
10735
10735
  generateFieldValidators(zodStringWithMainType, field) {
10736
10736
  const { isRequired, isNullable } = field;
package/dist/index.js CHANGED
@@ -10735,7 +10735,7 @@ ${this.generateExportSchemaStatement(`${name}`, `z.enum(${JSON.stringify(values)
10735
10735
  const arr = inputType.isList ? ".array()" : "";
10736
10736
  const opt = !field.isRequired ? ".optional()" : "";
10737
10737
  const nullable = field.inputTypes.length > 1 && field.inputTypes[1]?.type === "Null" ? ".nullable()" : "";
10738
- return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10738
+ return inputsLength === 1 ? ` ${field.name}: z.lazy(() => ${schema})${arr}${opt}${nullable}` : `z.lazy(() => ${schema})${arr}${opt}${nullable}`;
10739
10739
  }
10740
10740
  generateFieldValidators(zodStringWithMainType, field) {
10741
10741
  const { isRequired, isNullable } = field;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/prisma-trpc-generator",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "A fork of the prisma-trpc-generator code to work in ESM with Prisma v6.",
6
6
  "repository": {