@sanity/client 5.3.0 → 5.3.2

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.
@@ -1145,10 +1145,10 @@ function _listen(query, params) {
1145
1145
  observer.complete();
1146
1146
  }
1147
1147
  function unsubscribe() {
1148
- es.removeEventListener("error", onError, false);
1149
- es.removeEventListener("channelError", onChannelError, false);
1150
- es.removeEventListener("disconnect", onDisconnect, false);
1151
- listenFor.forEach(type => es.removeEventListener(type, onMessage, false));
1148
+ es.removeEventListener("error", onError);
1149
+ es.removeEventListener("channelError", onChannelError);
1150
+ es.removeEventListener("disconnect", onDisconnect);
1151
+ listenFor.forEach(type => es.removeEventListener(type, onMessage));
1152
1152
  es.close();
1153
1153
  }
1154
1154
  function emitReconnect() {
@@ -1160,10 +1160,10 @@ function _listen(query, params) {
1160
1160
  }
1161
1161
  function getEventSource() {
1162
1162
  const evs = new EventSource(uri, esOptions);
1163
- evs.addEventListener("error", onError, false);
1164
- evs.addEventListener("channelError", onChannelError, false);
1165
- evs.addEventListener("disconnect", onDisconnect, false);
1166
- listenFor.forEach(type => evs.addEventListener(type, onMessage, false));
1163
+ evs.addEventListener("error", onError);
1164
+ evs.addEventListener("channelError", onChannelError);
1165
+ evs.addEventListener("disconnect", onDisconnect);
1166
+ listenFor.forEach(type => evs.addEventListener(type, onMessage));
1167
1167
  return evs;
1168
1168
  }
1169
1169
  function open() {