@sanity/client 6.18.0 → 6.18.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
@@ -904,7 +904,7 @@ function _listen(query, params, opts = {}) {
904
904
  }
905
905
  function open() {
906
906
  getEventSource().then((eventSource) => {
907
- eventSource && (es = eventSource);
907
+ eventSource && (es = eventSource, unsubscribed && unsubscribe());
908
908
  }).catch((reason) => {
909
909
  observer.error(reason), stop();
910
910
  });
@@ -1502,7 +1502,7 @@ function defineDeprecatedCreateClient(createClient2) {
1502
1502
  return printNoDefaultExport(), createClient2(config);
1503
1503
  };
1504
1504
  }
1505
- var name = "@sanity/client", version = "6.18.0";
1505
+ var name = "@sanity/client", version = "6.18.1";
1506
1506
  const middleware = [
1507
1507
  middleware$1.debug({ verbose: !0, namespace: "sanity:client" }),
1508
1508
  middleware$1.headers({ "User-Agent": `${name} ${version}` }),