@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.js CHANGED
@@ -887,7 +887,7 @@ function _listen(query, params, opts = {}) {
887
887
  }
888
888
  function open() {
889
889
  getEventSource().then((eventSource) => {
890
- eventSource && (es = eventSource);
890
+ eventSource && (es = eventSource, unsubscribed && unsubscribe());
891
891
  }).catch((reason) => {
892
892
  observer.error(reason), stop();
893
893
  });
@@ -1485,7 +1485,7 @@ function defineDeprecatedCreateClient(createClient2) {
1485
1485
  return printNoDefaultExport(), createClient2(config);
1486
1486
  };
1487
1487
  }
1488
- var name = "@sanity/client", version = "6.18.0";
1488
+ var name = "@sanity/client", version = "6.18.1";
1489
1489
  const middleware = [
1490
1490
  debug({ verbose: !0, namespace: "sanity:client" }),
1491
1491
  headers({ "User-Agent": `${name} ${version}` }),