@emeryld/rrroutes-client 2.3.5 → 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 +1 -1
package/dist/index.mjs
CHANGED
|
@@ -295,12 +295,29 @@ function createRouteClient(opts) {
|
|
|
295
295
|
const out = await fetcher(
|
|
296
296
|
payload === void 0 ? { url, method } : { url, method, body: payload }
|
|
297
297
|
);
|
|
298
|
+
emit(
|
|
299
|
+
decorateDebugEvent(
|
|
300
|
+
{
|
|
301
|
+
type: "fetch",
|
|
302
|
+
stage: "fetched",
|
|
303
|
+
method,
|
|
304
|
+
url,
|
|
305
|
+
leaf: leafLabel,
|
|
306
|
+
durationMs: Date.now() - startedAt
|
|
307
|
+
},
|
|
308
|
+
isVerboseDebug ? {
|
|
309
|
+
params: normalizedParams,
|
|
310
|
+
query: normalizedQuery,
|
|
311
|
+
output: out
|
|
312
|
+
} : void 0
|
|
313
|
+
)
|
|
314
|
+
);
|
|
298
315
|
const parsed = leafCfg.outputSchema ? lowProfileParse(leafCfg.outputSchema, out) : void 0;
|
|
299
316
|
emit(
|
|
300
317
|
decorateDebugEvent(
|
|
301
318
|
{
|
|
302
319
|
type: "fetch",
|
|
303
|
-
stage: "
|
|
320
|
+
stage: "parsed",
|
|
304
321
|
method,
|
|
305
322
|
url,
|
|
306
323
|
leaf: leafLabel,
|
|
@@ -544,7 +561,7 @@ function createRouteClient(opts) {
|
|
|
544
561
|
decorateDebugEvent(
|
|
545
562
|
{
|
|
546
563
|
type: "fetch",
|
|
547
|
-
stage: "
|
|
564
|
+
stage: "fetched",
|
|
548
565
|
method: methodUpper,
|
|
549
566
|
url,
|
|
550
567
|
leaf: leafLabel,
|