@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 +6 -2
- package/lib/client.js.map +1 -1
- package/lib/dsh-build.json +5 -5
- package/lib/index.js +42 -53
- package/lib/types/hints.d.ts +15 -16
- package/lib/types/hints.d.ts.map +1 -1
- package/lib/types/hints.js +16 -17
- package/lib/types/hints.js.map +1 -1
- package/lib/types/index.js +24 -24
- package/lib/types/index.js.map +1 -1
- package/lib/types/remote.d.ts +7 -10
- package/lib/types/remote.d.ts.map +1 -1
- package/lib/types/remote.js +17 -13
- package/lib/types/remote.js.map +1 -1
- package/package.json +8 -8
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
|
-
/**
|
|
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
|
|
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>"
|