@seam-rpc/server 4.3.10 → 4.3.12

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -121,7 +121,7 @@ export class SeamRouter {
121
121
  }
122
122
  // Validate output
123
123
  try {
124
- validatedOutput = this.validateOutput(output, z.object({ ok: true, data: procedure.output }).or(z.object({ ok: false, error: z.any() })));
124
+ validatedOutput = this.validateOutput(output, z.object({ ok: z.literal(true), data: procedure.output }).or(z.object({ ok: z.literal(false), error: z.any() })));
125
125
  }
126
126
  catch (err) {
127
127
  seamSpace.emit("outputValidationError", err, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seam-rpc/server",
3
- "version": "4.3.10",
3
+ "version": "4.3.12",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "bin": {