@emeryld/rrroutes-client 2.4.6 → 2.4.7
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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -108,6 +108,15 @@ function toArgsTuple(args) {
|
|
|
108
108
|
function buildUrl(leaf, baseUrl, params, query) {
|
|
109
109
|
const normalizedParams = leaf.cfg.paramsSchema ? lowProfileParse(leaf.cfg.paramsSchema, params) : {};
|
|
110
110
|
const normalizedQuery = leaf.cfg.querySchema ? lowProfileParse(leaf.cfg.querySchema, query) : {};
|
|
111
|
+
try {
|
|
112
|
+
console.log(
|
|
113
|
+
lowProfileParse(leaf.cfg.querySchema, {
|
|
114
|
+
methodsInclude: ["get", "post"],
|
|
115
|
+
endpointKeysExclude: ["endpoint1", "endpoint2"]
|
|
116
|
+
})
|
|
117
|
+
);
|
|
118
|
+
} catch (e) {
|
|
119
|
+
}
|
|
111
120
|
console.log("buildUrl", { query, normalizedQuery });
|
|
112
121
|
const path = compilePath(
|
|
113
122
|
leaf.path,
|