@dxos/network-manager 0.1.58-main.f5feb2a → 0.1.58-main.fa022ee

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.
@@ -2663,9 +2663,13 @@ var SimplePeerTransport = class {
2663
2663
  } else {
2664
2664
  this.errors.raise(new UnknownProtocolError2("unknown RTCError", err));
2665
2665
  }
2666
- } else if (err.name === "InvalidStateError") {
2667
- this.errors.raise(new ConnectionResetError2("safari WebRTC error", err));
2668
2666
  } else if ("code" in err) {
2667
+ log11.info("simple-peer error", err, {
2668
+ F: __dxlog_file12,
2669
+ L: 77,
2670
+ S: this,
2671
+ C: (f, a) => f(...a)
2672
+ });
2669
2673
  switch (err.code) {
2670
2674
  case "ERR_WEBRTC_SUPPORT":
2671
2675
  this.errors.raise(new ProtocolError2("WebRTC not supported", err));
@@ -2684,17 +2688,23 @@ var SimplePeerTransport = class {
2684
2688
  this.errors.raise(new Error("unknown simple-peer error"));
2685
2689
  }
2686
2690
  } else {
2691
+ log11.info("unknown peer connection error", err, {
2692
+ F: __dxlog_file12,
2693
+ L: 96,
2694
+ S: this,
2695
+ C: (f, a) => f(...a)
2696
+ });
2687
2697
  this.errors.raise(err);
2688
2698
  }
2689
2699
  try {
2690
- if (typeof this._peer?._pc.getStats === "function") {
2700
+ if (typeof this._peer?._pc?.getStats === "function") {
2691
2701
  this._peer._pc.getStats().then((stats) => {
2692
2702
  log11.warn("report after webrtc error", {
2693
2703
  config: this.params.webrtcConfig,
2694
2704
  stats
2695
2705
  }, {
2696
2706
  F: __dxlog_file12,
2697
- L: 106,
2707
+ L: 104,
2698
2708
  S: this,
2699
2709
  C: (f, a) => f(...a)
2700
2710
  });
@@ -2703,7 +2713,7 @@ var SimplePeerTransport = class {
2703
2713
  } catch (err2) {
2704
2714
  log11.catch(err2, void 0, {
2705
2715
  F: __dxlog_file12,
2706
- L: 113,
2716
+ L: 111,
2707
2717
  S: this,
2708
2718
  C: (f, a) => f(...a)
2709
2719
  });
@@ -2714,7 +2724,7 @@ var SimplePeerTransport = class {
2714
2724
  id: this._instanceId
2715
2725
  }), {
2716
2726
  F: __dxlog_file12,
2717
- L: 118,
2727
+ L: 116,
2718
2728
  S: this,
2719
2729
  C: (f, a) => f(...a)
2720
2730
  });
@@ -2722,7 +2732,7 @@ var SimplePeerTransport = class {
2722
2732
  async destroy() {
2723
2733
  log11("closing...", void 0, {
2724
2734
  F: __dxlog_file12,
2725
- L: 122,
2735
+ L: 120,
2726
2736
  S: this,
2727
2737
  C: (f, a) => f(...a)
2728
2738
  });
@@ -2732,7 +2742,7 @@ var SimplePeerTransport = class {
2732
2742
  this.closed.emit();
2733
2743
  log11("closed", void 0, {
2734
2744
  F: __dxlog_file12,
2735
- L: 127,
2745
+ L: 125,
2736
2746
  S: this,
2737
2747
  C: (f, a) => f(...a)
2738
2748
  });
@@ -3445,4 +3455,4 @@ export {
3445
3455
  createLibDataChannelTransportFactory,
3446
3456
  createTeleportProtocolFactory
3447
3457
  };
3448
- //# sourceMappingURL=chunk-CNQ55TFQ.mjs.map
3458
+ //# sourceMappingURL=chunk-66HPNABI.mjs.map