cross-tab-worker-databus 0.21.1 → 0.21.3

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.
@@ -2474,7 +2474,7 @@ var DedupManager = class {
2474
2474
  };
2475
2475
 
2476
2476
  // src/core/version.ts
2477
- var SDK_VERSION = true ? "0.21.1" : "";
2477
+ var SDK_VERSION = true ? "0.21.3" : "";
2478
2478
 
2479
2479
  // src/core/data-bus.ts
2480
2480
  var DEFAULT_REPLAY_MAX_PER_TOPIC = 100;
@@ -2783,7 +2783,7 @@ var CrossTabDataBus = class {
2783
2783
  if (this.queuedStart) return this.queuedStart;
2784
2784
  const stop = this.stopPromise ?? Promise.resolve();
2785
2785
  const token = ++this.queuedStartToken;
2786
- const queued = stop.catch(() => void 0).then(() => {
2786
+ const queued = stop.then(() => {
2787
2787
  if (this.queuedStart === queued) this.queuedStart = null;
2788
2788
  if (token <= this.canceledQueuedStartToken) return;
2789
2789
  return this.start(config);
@@ -2865,7 +2865,7 @@ var CrossTabDataBus = class {
2865
2865
  const chainedPendingStop = this.pendingStop;
2866
2866
  const isCurrentLifecycle = () => lifecycleEpoch === this.lifecycleEpoch;
2867
2867
  let startupInProgress = true;
2868
- return before.catch(() => void 0).then(() => {
2868
+ return before.then(() => {
2869
2869
  if (!isCurrentLifecycle() || this.stopping || this.suspended) return;
2870
2870
  if (this.pendingStop === chainedPendingStop) this.pendingStop = null;
2871
2871
  this.transportHasConnected = false;
@@ -3235,7 +3235,7 @@ var CrossTabDataBus = class {
3235
3235
  try {
3236
3236
  await this.startPromise?.catch(() => void 0);
3237
3237
  const pendingStop = this.pendingStop;
3238
- if (pendingStop) await pendingStop.catch(() => void 0);
3238
+ if (pendingStop) await pendingStop;
3239
3239
  else await this.transport.stop();
3240
3240
  } catch (error) {
3241
3241
  this.reportError(error);