@dxos/network-manager 0.5.3-main.37bbd91 → 0.5.3-main.3b535c7

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.
@@ -2079,7 +2079,7 @@ var gcSwarm = (swarm) => {
2079
2079
  };
2080
2080
 
2081
2081
  // packages/core/mesh/network-manager/src/network-manager.ts
2082
- import { Event as Event6, synchronized as synchronized4 } from "@dxos/async";
2082
+ import { Event as Event6 } from "@dxos/async";
2083
2083
  import { invariant as invariant6 } from "@dxos/invariant";
2084
2084
  import { PublicKey as PublicKey8 } from "@dxos/keys";
2085
2085
  import { log as log7 } from "@dxos/log";
@@ -2087,16 +2087,6 @@ import { Messenger } from "@dxos/messaging";
2087
2087
  import { trace as trace3 } from "@dxos/protocols";
2088
2088
  import { ConnectionState as ConnectionState2 } from "@dxos/protocols/proto/dxos/client/services";
2089
2089
  import { ComplexMap as ComplexMap6 } from "@dxos/util";
2090
- function _ts_decorate4(decorators, target, key, desc) {
2091
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2092
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
2093
- r = Reflect.decorate(decorators, target, key, desc);
2094
- else
2095
- for (var i = decorators.length - 1; i >= 0; i--)
2096
- if (d = decorators[i])
2097
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2098
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2099
- }
2100
2090
  var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts";
2101
2091
  var NetworkManager = class {
2102
2092
  constructor({ transportFactory, signalManager, log: log15 }) {
@@ -2181,7 +2171,7 @@ var NetworkManager = class {
2181
2171
  async joinSwarm({ topic, peerId, topology, protocolProvider: protocol, label }) {
2182
2172
  invariant6(PublicKey8.isPublicKey(topic), void 0, {
2183
2173
  F: __dxlog_file7,
2184
- L: 158,
2174
+ L: 157,
2185
2175
  S: this,
2186
2176
  A: [
2187
2177
  "PublicKey.isPublicKey(topic)",
@@ -2190,7 +2180,7 @@ var NetworkManager = class {
2190
2180
  });
2191
2181
  invariant6(PublicKey8.isPublicKey(peerId), void 0, {
2192
2182
  F: __dxlog_file7,
2193
- L: 159,
2183
+ L: 158,
2194
2184
  S: this,
2195
2185
  A: [
2196
2186
  "PublicKey.isPublicKey(peerId)",
@@ -2199,7 +2189,7 @@ var NetworkManager = class {
2199
2189
  });
2200
2190
  invariant6(topology, void 0, {
2201
2191
  F: __dxlog_file7,
2202
- L: 160,
2192
+ L: 159,
2203
2193
  S: this,
2204
2194
  A: [
2205
2195
  "topology",
@@ -2208,7 +2198,7 @@ var NetworkManager = class {
2208
2198
  });
2209
2199
  invariant6(typeof protocol === "function", void 0, {
2210
2200
  F: __dxlog_file7,
2211
- L: 161,
2201
+ L: 160,
2212
2202
  S: this,
2213
2203
  A: [
2214
2204
  "typeof protocol === 'function'",
@@ -2224,7 +2214,7 @@ var NetworkManager = class {
2224
2214
  topology: topology.toString()
2225
2215
  }, {
2226
2216
  F: __dxlog_file7,
2227
- L: 166,
2217
+ L: 165,
2228
2218
  S: this,
2229
2219
  C: (f, a) => f(...a)
2230
2220
  });
@@ -2234,7 +2224,7 @@ var NetworkManager = class {
2234
2224
  error
2235
2225
  }, {
2236
2226
  F: __dxlog_file7,
2237
- L: 179,
2227
+ L: 178,
2238
2228
  S: this,
2239
2229
  C: (f, a) => f(...a)
2240
2230
  });
@@ -2247,7 +2237,7 @@ var NetworkManager = class {
2247
2237
  peerId
2248
2238
  }).catch((error) => log7.catch(error, void 0, {
2249
2239
  F: __dxlog_file7,
2250
- L: 188,
2240
+ L: 187,
2251
2241
  S: this,
2252
2242
  C: (f, a) => f(...a)
2253
2243
  }));
@@ -2258,7 +2248,7 @@ var NetworkManager = class {
2258
2248
  count: this._swarms.size
2259
2249
  }, {
2260
2250
  F: __dxlog_file7,
2261
- L: 192,
2251
+ L: 191,
2262
2252
  S: this,
2263
2253
  C: (f, a) => f(...a)
2264
2254
  });
@@ -2277,7 +2267,7 @@ var NetworkManager = class {
2277
2267
  topic: PublicKey8.from(topic)
2278
2268
  }, {
2279
2269
  F: __dxlog_file7,
2280
- L: 209,
2270
+ L: 207,
2281
2271
  S: this,
2282
2272
  C: (f, a) => f(...a)
2283
2273
  });
@@ -2298,7 +2288,7 @@ var NetworkManager = class {
2298
2288
  count: this._swarms.size
2299
2289
  }, {
2300
2290
  F: __dxlog_file7,
2301
- L: 223,
2291
+ L: 221,
2302
2292
  S: this,
2303
2293
  C: (f, a) => f(...a)
2304
2294
  });
@@ -2330,12 +2320,6 @@ var NetworkManager = class {
2330
2320
  this.connectionStateChanged.emit(this._connectionState);
2331
2321
  }
2332
2322
  };
2333
- _ts_decorate4([
2334
- synchronized4
2335
- ], NetworkManager.prototype, "joinSwarm", null);
2336
- _ts_decorate4([
2337
- synchronized4
2338
- ], NetworkManager.prototype, "leaveSwarm", null);
2339
2323
 
2340
2324
  // packages/core/mesh/network-manager/src/topology/fully-connected-topology.ts
2341
2325
  import { invariant as invariant7 } from "@dxos/invariant";
@@ -2656,7 +2640,7 @@ import { invariant as invariant10 } from "@dxos/invariant";
2656
2640
  import { PublicKey as PublicKey9 } from "@dxos/keys";
2657
2641
  import { log as log10, logInfo as logInfo3 } from "@dxos/log";
2658
2642
  import { ComplexMap as ComplexMap7 } from "@dxos/util";
2659
- function _ts_decorate5(decorators, target, key, desc) {
2643
+ function _ts_decorate4(decorators, target, key, desc) {
2660
2644
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2661
2645
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
2662
2646
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2834,10 +2818,10 @@ var MemoryTransport = class _MemoryTransport {
2834
2818
  };
2835
2819
  }
2836
2820
  };
2837
- _ts_decorate5([
2821
+ _ts_decorate4([
2838
2822
  logInfo3
2839
2823
  ], MemoryTransport.prototype, "_instanceId", void 0);
2840
- _ts_decorate5([
2824
+ _ts_decorate4([
2841
2825
  logInfo3
2842
2826
  ], MemoryTransport.prototype, "_remoteInstanceId", void 0);
2843
2827
  var toError = (err) => err instanceof Error ? err : new Error(String(err));
@@ -3534,11 +3518,11 @@ var decodeError = (err) => {
3534
3518
 
3535
3519
  // packages/core/mesh/network-manager/src/transport/libdatachannel-transport.ts
3536
3520
  import { Duplex as Duplex2 } from "stream";
3537
- import { Event as Event10, Trigger as Trigger3, synchronized as synchronized5 } from "@dxos/async";
3521
+ import { Event as Event10, Trigger as Trigger3, synchronized as synchronized4 } from "@dxos/async";
3538
3522
  import { ErrorStream as ErrorStream6 } from "@dxos/debug";
3539
3523
  import { invariant as invariant14 } from "@dxos/invariant";
3540
3524
  import { log as log14 } from "@dxos/log";
3541
- function _ts_decorate6(decorators, target, key, desc) {
3525
+ function _ts_decorate5(decorators, target, key, desc) {
3542
3526
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3543
3527
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
3544
3528
  r = Reflect.decorate(decorators, target, key, desc);
@@ -3975,8 +3959,8 @@ var LibDataChannelTransport = class _LibDataChannelTransport {
3975
3959
  this._options.stream.unpipe?.(this._stream)?.unpipe?.(this._options.stream);
3976
3960
  }
3977
3961
  };
3978
- _ts_decorate6([
3979
- synchronized5
3962
+ _ts_decorate5([
3963
+ synchronized4
3980
3964
  ], LibDataChannelTransport.prototype, "_close", null);
3981
3965
  var importESM = Function("path", "return import(path)");
3982
3966
 
@@ -4063,4 +4047,4 @@ export {
4063
4047
  TcpTransport,
4064
4048
  createTeleportProtocolFactory
4065
4049
  };
4066
- //# sourceMappingURL=chunk-4L3ORJC4.mjs.map
4050
+ //# sourceMappingURL=chunk-GXBG7YVC.mjs.map