@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.cjs
CHANGED
|
@@ -277,7 +277,10 @@ function buildGetLeaf(leaf, rqOpts, env) {
|
|
|
277
277
|
const fetchEndpoint = async (tuple, options) => {
|
|
278
278
|
const a = extractArgs(tuple);
|
|
279
279
|
const params = a?.params;
|
|
280
|
-
const query =
|
|
280
|
+
const query = {
|
|
281
|
+
...a?.query ?? {},
|
|
282
|
+
...options?.queryOverride ?? {}
|
|
283
|
+
};
|
|
281
284
|
const { url, normalizedQuery, normalizedParams } = buildUrl(
|
|
282
285
|
{ ...leaf, cfg: leafCfg },
|
|
283
286
|
baseUrl,
|
|
@@ -537,7 +540,10 @@ function buildInfiniteGetLeaf(leaf, rqOpts, env) {
|
|
|
537
540
|
const fetchEndpoint = async (tuple, options) => {
|
|
538
541
|
const a = extractArgs(tuple);
|
|
539
542
|
const params = a?.params;
|
|
540
|
-
const query =
|
|
543
|
+
const query = {
|
|
544
|
+
...a?.query ?? {},
|
|
545
|
+
...options?.queryOverride ?? {}
|
|
546
|
+
};
|
|
541
547
|
const { url, normalizedQuery, normalizedParams } = buildUrl(
|
|
542
548
|
{ ...leaf, cfg: leafCfg },
|
|
543
549
|
baseUrl,
|
|
@@ -832,7 +838,10 @@ function buildMutationLeaf(leaf, rqOpts, env) {
|
|
|
832
838
|
const fetchEndpoint = async (tuple, options) => {
|
|
833
839
|
const a = extractArgs(tuple);
|
|
834
840
|
const params = a?.params;
|
|
835
|
-
const query =
|
|
841
|
+
const query = {
|
|
842
|
+
...a?.query ?? {},
|
|
843
|
+
...options?.queryOverride ?? {}
|
|
844
|
+
};
|
|
836
845
|
const { url, normalizedQuery, normalizedParams } = buildUrl(
|
|
837
846
|
{ ...leaf, cfg: leafCfg },
|
|
838
847
|
baseUrl,
|