@emeryld/rrroutes-client 2.3.4 → 2.3.6
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 +19 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +19 -2
- package/dist/index.mjs.map +1 -1
- package/dist/routesV3.client.types.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -330,12 +330,29 @@ function createRouteClient(opts) {
|
|
|
330
330
|
const out = await fetcher(
|
|
331
331
|
payload === void 0 ? { url, method } : { url, method, body: payload }
|
|
332
332
|
);
|
|
333
|
+
emit(
|
|
334
|
+
decorateDebugEvent(
|
|
335
|
+
{
|
|
336
|
+
type: "fetch",
|
|
337
|
+
stage: "fetched",
|
|
338
|
+
method,
|
|
339
|
+
url,
|
|
340
|
+
leaf: leafLabel,
|
|
341
|
+
durationMs: Date.now() - startedAt
|
|
342
|
+
},
|
|
343
|
+
isVerboseDebug ? {
|
|
344
|
+
params: normalizedParams,
|
|
345
|
+
query: normalizedQuery,
|
|
346
|
+
output: out
|
|
347
|
+
} : void 0
|
|
348
|
+
)
|
|
349
|
+
);
|
|
333
350
|
const parsed = leafCfg.outputSchema ? (0, import_rrroutes_contract.lowProfileParse)(leafCfg.outputSchema, out) : void 0;
|
|
334
351
|
emit(
|
|
335
352
|
decorateDebugEvent(
|
|
336
353
|
{
|
|
337
354
|
type: "fetch",
|
|
338
|
-
stage: "
|
|
355
|
+
stage: "parsed",
|
|
339
356
|
method,
|
|
340
357
|
url,
|
|
341
358
|
leaf: leafLabel,
|
|
@@ -579,7 +596,7 @@ function createRouteClient(opts) {
|
|
|
579
596
|
decorateDebugEvent(
|
|
580
597
|
{
|
|
581
598
|
type: "fetch",
|
|
582
|
-
stage: "
|
|
599
|
+
stage: "fetched",
|
|
583
600
|
method: methodUpper,
|
|
584
601
|
url,
|
|
585
602
|
leaf: leafLabel,
|