@avantf/dsh-mem 0.2.0 → 0.3.1

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/lib/client.js CHANGED
@@ -5380,7 +5380,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5380
5380
  package: PACKAGE,
5381
5381
  descriptors
5382
5382
  };
5383
- /** Declare one registered wire schema: the factory 0.1.6 calls, plus the schema 0.1.5 reads. */
5383
+ /** The zod schema a strict codec carries, whichever generation's codec type is in play. */
5384
+ function codecSchema(codec) {
5385
+ return codec.schema;
5386
+ }
5387
+ /** Declare one registered wire schema: the factory 0.1.6+ calls, plus the schema 0.1.5 reads. */
5384
5388
  function declared(name, schema) {
5385
5389
  return {
5386
5390
  name,
@@ -5388,7 +5392,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5388
5392
  create: () => schema
5389
5393
  };
5390
5394
  }
5391
- descriptors.flatMap((descriptor) => [...descriptor.parameters.map((parameter) => declared(`${descriptor.method}${parameter.name}`, parameter.codec.schema)), declared(`${descriptor.method}Result`, descriptor.result.schema)]), descriptors.map((descriptor) => ({
5395
+ descriptors.flatMap((descriptor) => [...descriptor.parameters.map((parameter) => declared(`${descriptor.method}${parameter.name}`, codecSchema(parameter.codec))), declared(`${descriptor.method}Result`, codecSchema(descriptor.result))]), descriptors.map((descriptor) => ({
5392
5396
  kind: "method",
5393
5397
  name: descriptor.method,
5394
5398
  signature: "(args: object) => Promise<unknown>"