@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 CHANGED
@@ -648,7 +648,7 @@ function createSources(sources, subscribe) {
648
648
  out[name] = {
649
649
  fetch: (vars) => wrap(
650
650
  `source:${name}`,
651
- () => firstAsync(
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
- () => firstAsync(mapAsync(subscribe(doc), (r) => transformResponse(r).source))
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
- () => firstAsync(
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
- () => firstAsync(
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
- () => firstAsync(mapAsync(subscribe(doc), (r) => transformResponse(r).source))
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
- () => firstAsync(
627
+ () => collectAsync(
628
628
  mapAsync(
629
629
  subscribe(doc, { collection: vars.collection }),
630
630
  (r) => transformResponse(r).source
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contello/client",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "GraphQL client for Contello CMS with WebSocket transport, connection pooling, and built-in codegen",
5
5
  "type": "module",
6
6
  "license": "MIT",