convex-helpers 0.1.74 → 0.1.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "convex-helpers",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "A collection of useful code to complement the official convex package.",
5
5
  "type": "module",
6
6
  "bin": {
package/server/zod.js CHANGED
@@ -244,7 +244,7 @@ function customFnBuilder(builder, mod) {
244
244
  if (returns) {
245
245
  // We don't catch the error here. It's a developer error and we
246
246
  // don't want to risk exposing the unexpected value to the client.
247
- return returns.parse(handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }));
247
+ return returns.parse(await handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }));
248
248
  }
249
249
  return handler({ ...ctx, ...added.ctx }, { ...args, ...added.args });
250
250
  },
package/server/zod.ts CHANGED
@@ -377,7 +377,7 @@ function customFnBuilder(
377
377
  // We don't catch the error here. It's a developer error and we
378
378
  // don't want to risk exposing the unexpected value to the client.
379
379
  return returns.parse(
380
- handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }),
380
+ await handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }),
381
381
  );
382
382
  }
383
383
  return handler({ ...ctx, ...added.ctx }, { ...args, ...added.args });