@emeryld/rrroutes-client 2.3.8 → 2.3.9
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/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -348,14 +348,16 @@ function createRouteClient(opts) {
|
|
|
348
348
|
} : void 0
|
|
349
349
|
)
|
|
350
350
|
);
|
|
351
|
-
let parsed = out;
|
|
352
351
|
if (validateResponses) {
|
|
353
352
|
if (!leafCfg.outputSchema) {
|
|
354
353
|
throw new Error(
|
|
355
354
|
`No output schema defined for leaf ${leafLabel}, cannot validate response.`
|
|
356
355
|
);
|
|
357
356
|
}
|
|
358
|
-
|
|
357
|
+
out.data = (0, import_rrroutes_contract.lowProfileParse)(
|
|
358
|
+
leafCfg.outputSchema,
|
|
359
|
+
out.data
|
|
360
|
+
);
|
|
359
361
|
emit(
|
|
360
362
|
decorateDebugEvent(
|
|
361
363
|
{
|
|
@@ -369,13 +371,13 @@ function createRouteClient(opts) {
|
|
|
369
371
|
isVerboseDebug ? {
|
|
370
372
|
params: normalizedParams,
|
|
371
373
|
query: normalizedQuery,
|
|
372
|
-
output:
|
|
374
|
+
output: out
|
|
373
375
|
} : void 0
|
|
374
376
|
)
|
|
375
377
|
);
|
|
376
378
|
}
|
|
377
|
-
options?.onReceive?.(
|
|
378
|
-
return
|
|
379
|
+
options?.onReceive?.(out.data);
|
|
380
|
+
return out.data;
|
|
379
381
|
} catch (error) {
|
|
380
382
|
emit(
|
|
381
383
|
decorateDebugEvent(
|