@emeryld/rrroutes-client 2.3.0 → 2.3.2
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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -55,7 +55,8 @@ var defaultFetcher = async (req) => {
|
|
|
55
55
|
import {
|
|
56
56
|
buildCacheKey,
|
|
57
57
|
compilePath,
|
|
58
|
-
lowProfileParse
|
|
58
|
+
lowProfileParse,
|
|
59
|
+
routeSchemaParse
|
|
59
60
|
} from "@emeryld/rrroutes-contract";
|
|
60
61
|
import {
|
|
61
62
|
keepPreviousData,
|
|
@@ -250,8 +251,12 @@ function createRouteClient(opts) {
|
|
|
250
251
|
const rawLeafCfg = leaf.cfg;
|
|
251
252
|
const leafCfg = isFeed ? {
|
|
252
253
|
...rawLeafCfg,
|
|
253
|
-
querySchema: augmentFeedQuerySchema(
|
|
254
|
-
|
|
254
|
+
querySchema: augmentFeedQuerySchema(
|
|
255
|
+
rawLeafCfg.querySchema ? routeSchemaParse(rawLeafCfg.querySchema) : void 0
|
|
256
|
+
),
|
|
257
|
+
outputSchema: augmentFeedOutputSchema(
|
|
258
|
+
rawLeafCfg.outputSchema ? routeSchemaParse(rawLeafCfg.outputSchema) : void 0
|
|
259
|
+
)
|
|
255
260
|
} : rawLeafCfg;
|
|
256
261
|
const method = toUpper(leaf.method);
|
|
257
262
|
const expectsArgs = Boolean(leafCfg.paramsSchema || leafCfg.querySchema);
|