@emeryld/rrroutes-client 2.4.4 → 2.4.5
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 +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -236,7 +236,10 @@ function buildGetLeaf(leaf, rqOpts, env) {
|
|
|
236
236
|
const fetchEndpoint = async (tuple, options) => {
|
|
237
237
|
const a = extractArgs(tuple);
|
|
238
238
|
const params = a?.params;
|
|
239
|
-
const query =
|
|
239
|
+
const query = {
|
|
240
|
+
...a?.query ?? {},
|
|
241
|
+
...options?.queryOverride ?? {}
|
|
242
|
+
};
|
|
240
243
|
const { url, normalizedQuery, normalizedParams } = buildUrl(
|
|
241
244
|
{ ...leaf, cfg: leafCfg },
|
|
242
245
|
baseUrl,
|
|
@@ -499,7 +502,10 @@ function buildInfiniteGetLeaf(leaf, rqOpts, env) {
|
|
|
499
502
|
const fetchEndpoint = async (tuple, options) => {
|
|
500
503
|
const a = extractArgs(tuple);
|
|
501
504
|
const params = a?.params;
|
|
502
|
-
const query =
|
|
505
|
+
const query = {
|
|
506
|
+
...a?.query ?? {},
|
|
507
|
+
...options?.queryOverride ?? {}
|
|
508
|
+
};
|
|
503
509
|
const { url, normalizedQuery, normalizedParams } = buildUrl(
|
|
504
510
|
{ ...leaf, cfg: leafCfg },
|
|
505
511
|
baseUrl,
|
|
@@ -796,7 +802,10 @@ function buildMutationLeaf(leaf, rqOpts, env) {
|
|
|
796
802
|
const fetchEndpoint = async (tuple, options) => {
|
|
797
803
|
const a = extractArgs(tuple);
|
|
798
804
|
const params = a?.params;
|
|
799
|
-
const query =
|
|
805
|
+
const query = {
|
|
806
|
+
...a?.query ?? {},
|
|
807
|
+
...options?.queryOverride ?? {}
|
|
808
|
+
};
|
|
800
809
|
const { url, normalizedQuery, normalizedParams } = buildUrl(
|
|
801
810
|
{ ...leaf, cfg: leafCfg },
|
|
802
811
|
baseUrl,
|