@contello/client 2.1.0 → 2.1.1
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 +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -648,7 +648,7 @@ function createSources(sources, subscribe) {
|
|
|
648
648
|
out[name] = {
|
|
649
649
|
fetch: (vars) => wrap(
|
|
650
650
|
`source:${name}`,
|
|
651
|
-
() =>
|
|
651
|
+
() => collectAsync(
|
|
652
652
|
mapAsync(
|
|
653
653
|
subscribe(doc, transformVariables({ ids: vars?.ids })),
|
|
654
654
|
(r) => transformResponse(r).source
|
|
@@ -662,7 +662,7 @@ function createSources(sources, subscribe) {
|
|
|
662
662
|
out[name] = {
|
|
663
663
|
fetch: () => wrap(
|
|
664
664
|
`source:${name}`,
|
|
665
|
-
() =>
|
|
665
|
+
() => collectAsync(mapAsync(subscribe(doc), (r) => transformResponse(r).source))
|
|
666
666
|
)
|
|
667
667
|
};
|
|
668
668
|
break;
|
|
@@ -670,7 +670,7 @@ function createSources(sources, subscribe) {
|
|
|
670
670
|
out[name] = {
|
|
671
671
|
fetch: (vars) => wrap(
|
|
672
672
|
`source:${name}`,
|
|
673
|
-
() =>
|
|
673
|
+
() => collectAsync(
|
|
674
674
|
mapAsync(
|
|
675
675
|
subscribe(doc, { collection: vars.collection }),
|
|
676
676
|
(r) => transformResponse(r).source
|
package/dist/index.js
CHANGED
|
@@ -602,7 +602,7 @@ function createSources(sources, subscribe) {
|
|
|
602
602
|
out[name] = {
|
|
603
603
|
fetch: (vars) => wrap(
|
|
604
604
|
`source:${name}`,
|
|
605
|
-
() =>
|
|
605
|
+
() => collectAsync(
|
|
606
606
|
mapAsync(
|
|
607
607
|
subscribe(doc, transformVariables({ ids: vars?.ids })),
|
|
608
608
|
(r) => transformResponse(r).source
|
|
@@ -616,7 +616,7 @@ function createSources(sources, subscribe) {
|
|
|
616
616
|
out[name] = {
|
|
617
617
|
fetch: () => wrap(
|
|
618
618
|
`source:${name}`,
|
|
619
|
-
() =>
|
|
619
|
+
() => collectAsync(mapAsync(subscribe(doc), (r) => transformResponse(r).source))
|
|
620
620
|
)
|
|
621
621
|
};
|
|
622
622
|
break;
|
|
@@ -624,7 +624,7 @@ function createSources(sources, subscribe) {
|
|
|
624
624
|
out[name] = {
|
|
625
625
|
fetch: (vars) => wrap(
|
|
626
626
|
`source:${name}`,
|
|
627
|
-
() =>
|
|
627
|
+
() => collectAsync(
|
|
628
628
|
mapAsync(
|
|
629
629
|
subscribe(doc, { collection: vars.collection }),
|
|
630
630
|
(r) => transformResponse(r).source
|