@stacks/blockchain-api-client 8.3.0-beta.1 → 8.3.0-beta.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.
package/lib/index.umd.js CHANGED
@@ -4445,13 +4445,12 @@
4445
4445
  var _proto = StacksApiSocketClient.prototype;
4446
4446
  _proto.handleSubscription = function handleSubscription(topic, subscribe, listener) {
4447
4447
  var _this$socket$io$opts$,
4448
- _subsQuery$split,
4449
4448
  _this = this;
4450
4449
  if (subscribe === void 0) {
4451
4450
  subscribe = false;
4452
4451
  }
4453
4452
  var subsQuery = (_this$socket$io$opts$ = this.socket.io.opts.query) == null ? void 0 : _this$socket$io$opts$.subscriptions;
4454
- var subscriptions = new Set((_subsQuery$split = subsQuery == null ? void 0 : subsQuery.split(',')) != null ? _subsQuery$split : []);
4453
+ var subscriptions = new Set(subsQuery ? subsQuery.split(',') : []);
4455
4454
  if (subscribe) {
4456
4455
  this.socket.emit('subscribe', topic, function (error) {
4457
4456
  if (error) console.error("Error subscribing: " + error);