@dxos/network-manager 0.6.6-main.e1a6e1f → 0.6.6-staging.23d123d

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.
@@ -16,7 +16,7 @@ import {
16
16
 
17
17
  // packages/core/mesh/network-manager/src/swarm/connection.ts
18
18
  import { DeferredTask, Event, sleep, scheduleTask, scheduleTaskInterval, synchronized, Trigger } from "@dxos/async";
19
- import { Context, cancelWithContext } from "@dxos/context";
19
+ import { Context, cancelWithContext, ContextDisposedError } from "@dxos/context";
20
20
  import { ErrorStream } from "@dxos/debug";
21
21
  import { invariant } from "@dxos/invariant";
22
22
  import { PublicKey } from "@dxos/keys";
@@ -437,14 +437,14 @@ var Connection = class {
437
437
  }
438
438
  });
439
439
  } catch (err) {
440
- if (err instanceof CancelledError || err instanceof Error && err.message?.includes("CANCELLED")) {
440
+ if (err instanceof CancelledError || err instanceof ContextDisposedError || err instanceof Error && err.message?.includes("CANCELLED")) {
441
441
  return;
442
442
  }
443
443
  log.info("signal message failed to deliver", {
444
444
  err
445
445
  }, {
446
446
  F: __dxlog_file,
447
- L: 389,
447
+ L: 393,
448
448
  S: this,
449
449
  C: (f, a) => f(...a)
450
450
  });
@@ -457,7 +457,7 @@ var Connection = class {
457
457
  async signal(msg) {
458
458
  invariant(msg.sessionId, void 0, {
459
459
  F: __dxlog_file,
460
- L: 398,
460
+ L: 402,
461
461
  S: this,
462
462
  A: [
463
463
  "msg.sessionId",
@@ -467,7 +467,7 @@ var Connection = class {
467
467
  if (!msg.sessionId.equals(this.sessionId)) {
468
468
  log("dropping signal for incorrect session id", void 0, {
469
469
  F: __dxlog_file,
470
- L: 400,
470
+ L: 404,
471
471
  S: this,
472
472
  C: (f, a) => f(...a)
473
473
  });
@@ -475,7 +475,7 @@ var Connection = class {
475
475
  }
476
476
  invariant(msg.data.signal || msg.data.signalBatch, void 0, {
477
477
  F: __dxlog_file,
478
- L: 403,
478
+ L: 407,
479
479
  S: this,
480
480
  A: [
481
481
  "msg.data.signal || msg.data.signalBatch",
@@ -484,7 +484,7 @@ var Connection = class {
484
484
  });
485
485
  invariant(msg.author?.equals(this.remoteId), void 0, {
486
486
  F: __dxlog_file,
487
- L: 404,
487
+ L: 408,
488
488
  S: this,
489
489
  A: [
490
490
  "msg.author?.equals(this.remoteId)",
@@ -493,7 +493,7 @@ var Connection = class {
493
493
  });
494
494
  invariant(msg.recipient?.equals(this.ownId), void 0, {
495
495
  F: __dxlog_file,
496
- L: 405,
496
+ L: 409,
497
497
  S: this,
498
498
  A: [
499
499
  "msg.recipient?.equals(this.ownId)",
@@ -517,7 +517,7 @@ var Connection = class {
517
517
  msg: msg.data
518
518
  }, {
519
519
  F: __dxlog_file,
520
- L: 414,
520
+ L: 418,
521
521
  S: this,
522
522
  C: (f, a) => f(...a)
523
523
  });
@@ -525,7 +525,7 @@ var Connection = class {
525
525
  } else {
526
526
  invariant(this._transport, "Connection not ready to accept signals.", {
527
527
  F: __dxlog_file,
528
- L: 417,
528
+ L: 421,
529
529
  S: this,
530
530
  A: [
531
531
  "this._transport",
@@ -538,7 +538,7 @@ var Connection = class {
538
538
  msg: msg.data
539
539
  }, {
540
540
  F: __dxlog_file,
541
- L: 418,
541
+ L: 422,
542
542
  S: this,
543
543
  C: (f, a) => f(...a)
544
544
  });
@@ -556,13 +556,13 @@ var Connection = class {
556
556
  peerId: this.ownId
557
557
  }, {
558
558
  F: __dxlog_file,
559
- L: 429,
559
+ L: 433,
560
560
  S: this,
561
561
  C: (f, a) => f(...a)
562
562
  });
563
563
  invariant(state !== this._state, "Already in this state.", {
564
564
  F: __dxlog_file,
565
- L: 430,
565
+ L: 434,
566
566
  S: this,
567
567
  A: [
568
568
  "state !== this._state",
@@ -4146,4 +4146,4 @@ export {
4146
4146
  TcpTransport,
4147
4147
  createTeleportProtocolFactory
4148
4148
  };
4149
- //# sourceMappingURL=chunk-2KJH3U3C.mjs.map
4149
+ //# sourceMappingURL=chunk-ZT4NXID2.mjs.map