@stryke/prisma-trpc-generator 0.9.1 → 0.9.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.
@@ -11530,9 +11530,9 @@ async function generate(options) {
11530
11530
  console.log("[STORM]: Running the Storm Software - Prisma tRPC generator \n");
11531
11531
  const internals = await getPrismaInternals();
11532
11532
  console.log(`[STORM]: Validating configuration options
11533
- `);
11533
+ ${JSON.stringify(options.generator.config)}`);
11534
11534
  const outputDir = internals.parseEnvValue(options.generator.output);
11535
- const results = configSchema.safeParse(options.generator.config);
11535
+ const results = await configSchema.safeParseAsync(options.generator.config);
11536
11536
  if (!results.success) {
11537
11537
  throw new Error("Invalid options passed");
11538
11538
  }
package/dist/generator.js CHANGED
@@ -11535,9 +11535,9 @@ async function generate(options) {
11535
11535
  console.log("[STORM]: Running the Storm Software - Prisma tRPC generator \n");
11536
11536
  const internals = await getPrismaInternals();
11537
11537
  console.log(`[STORM]: Validating configuration options
11538
- `);
11538
+ ${JSON.stringify(options.generator.config)}`);
11539
11539
  const outputDir = internals.parseEnvValue(options.generator.output);
11540
- const results = configSchema.safeParse(options.generator.config);
11540
+ const results = await configSchema.safeParseAsync(options.generator.config);
11541
11541
  if (!results.success) {
11542
11542
  throw new Error("Invalid options passed");
11543
11543
  }
package/dist/index.cjs CHANGED
@@ -11526,9 +11526,9 @@ async function generate(options) {
11526
11526
  console.log("[STORM]: Running the Storm Software - Prisma tRPC generator \n");
11527
11527
  const internals = await getPrismaInternals();
11528
11528
  console.log(`[STORM]: Validating configuration options
11529
- `);
11529
+ ${JSON.stringify(options.generator.config)}`);
11530
11530
  const outputDir = internals.parseEnvValue(options.generator.output);
11531
- const results = configSchema.safeParse(options.generator.config);
11531
+ const results = await configSchema.safeParseAsync(options.generator.config);
11532
11532
  if (!results.success) {
11533
11533
  throw new Error("Invalid options passed");
11534
11534
  }
package/dist/index.js CHANGED
@@ -11531,9 +11531,9 @@ async function generate(options) {
11531
11531
  console.log("[STORM]: Running the Storm Software - Prisma tRPC generator \n");
11532
11532
  const internals = await getPrismaInternals();
11533
11533
  console.log(`[STORM]: Validating configuration options
11534
- `);
11534
+ ${JSON.stringify(options.generator.config)}`);
11535
11535
  const outputDir = internals.parseEnvValue(options.generator.output);
11536
- const results = configSchema.safeParse(options.generator.config);
11536
+ const results = await configSchema.safeParseAsync(options.generator.config);
11537
11537
  if (!results.success) {
11538
11538
  throw new Error("Invalid options passed");
11539
11539
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/prisma-trpc-generator",
3
- "version": "0.9.1",
3
+ "version": "0.9.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": {