@dxos/network-manager 0.1.54 → 0.1.55-main.0618d91

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.
@@ -1 +1 @@
1
- {"version":3,"file":"connection-log.d.ts","sourceRoot":"","sources":["../../../src/connection-log.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAkB,MAAM,2CAA2C,CAAC;AAGtF,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AAGjD,oBAAY,SAAS;IACnB,wBAAwB,6BAA6B;IACrD,cAAc,mBAAmB;IACjC,+BAA+B,oCAAoC;IACnE,6BAA6B,kCAAkC;IAC/D,kBAAkB,uBAAuB;CAC1C;AAED,qBAAa,aAAa;IACxB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwD;IAEhF,QAAQ,CAAC,MAAM,cAAe;IAE9B,YAAY,CAAC,OAAO,EAAE,SAAS;IAI/B,IAAI,MAAM,IAAI,SAAS,EAAE,CAExB;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;IAkExB,SAAS,CAAC,KAAK,EAAE,KAAK;CAIvB"}
1
+ {"version":3,"file":"connection-log.d.ts","sourceRoot":"","sources":["../../../src/connection-log.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAkB,MAAM,2CAA2C,CAAC;AAItF,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AAGjD,oBAAY,SAAS;IACnB,wBAAwB,6BAA6B;IACrD,cAAc,mBAAmB;IACjC,+BAA+B,oCAAoC;IACnE,6BAA6B,kCAAkC;IAC/D,kBAAkB,uBAAuB;CAC1C;AAED,qBAAa,aAAa;IACxB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwD;IAEhF,QAAQ,CAAC,MAAM,cAAe;IAE9B,YAAY,CAAC,OAAO,EAAE,SAAS;IAI/B,IAAI,MAAM,IAAI,SAAS,EAAE,CAExB;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;IAkExB,SAAS,CAAC,KAAK,EAAE,KAAK;CAIvB"}
@@ -12,7 +12,7 @@ export declare class TestWireProtocol {
12
12
  readonly factory: import("../wire-protocol").WireProtocolProvider;
13
13
  waitForConnection(peerId: PublicKey): Promise<TestExtension>;
14
14
  testConnection(peerId: PublicKey, message?: string): Promise<void>;
15
- startStream(peerId: PublicKey, streamTag: string, streamLoadInterval: number, streamLoadChunkSize: number): Promise<string>;
15
+ openStream(peerId: PublicKey, streamTag: string, streamLoadInterval: number, streamLoadChunkSize: number): Promise<string>;
16
16
  closeStream(peerId: PublicKey, streamTag: string): Promise<TestStreamStats>;
17
17
  }
18
18
  //# sourceMappingURL=test-wire-protocol.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-wire-protocol.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-wire-protocol.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,qBAAa,gBAAgB;aAOC,MAAM,EAAE,SAAS;IAN7C,SAAgB,WAAW,uCAA4D;IACvF,SAAgB,iBAAiB,kDAAuE;IAExG,SAAgB,SAAS,mBAA0B;IACnD,SAAgB,YAAY,mBAA0B;gBAE1B,MAAM,EAAE,SAAS;IAE7C,QAAQ,CAAC,OAAO,kDAmBb;IAEG,iBAAiB,CAAC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CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/network-manager",
3
- "version": "0.1.54",
3
+ "version": "0.1.55-main.0618d91",
4
4
  "description": "Network Manager",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -26,21 +26,21 @@
26
26
  "tiny-invariant": "^1.3.1",
27
27
  "ws": "^7.4.4",
28
28
  "xor-distance": "^2.0.0",
29
- "@dxos/async": "0.1.54",
30
- "@dxos/codec-protobuf": "0.1.54",
31
- "@dxos/context": "0.1.54",
32
- "@dxos/credentials": "0.1.54",
33
- "@dxos/crypto": "0.1.54",
34
- "@dxos/debug": "0.1.54",
35
- "@dxos/errors": "0.1.54",
36
- "@dxos/keys": "0.1.54",
37
- "@dxos/log": "0.1.54",
38
- "@dxos/messaging": "0.1.54",
39
- "@dxos/node-std": "0.1.54",
40
- "@dxos/protocols": "0.1.54",
41
- "@dxos/rpc": "0.1.54",
42
- "@dxos/teleport": "0.1.54",
43
- "@dxos/util": "0.1.54"
29
+ "@dxos/async": "0.1.55-main.0618d91",
30
+ "@dxos/codec-protobuf": "0.1.55-main.0618d91",
31
+ "@dxos/context": "0.1.55-main.0618d91",
32
+ "@dxos/credentials": "0.1.55-main.0618d91",
33
+ "@dxos/crypto": "0.1.55-main.0618d91",
34
+ "@dxos/debug": "0.1.55-main.0618d91",
35
+ "@dxos/errors": "0.1.55-main.0618d91",
36
+ "@dxos/keys": "0.1.55-main.0618d91",
37
+ "@dxos/log": "0.1.55-main.0618d91",
38
+ "@dxos/messaging": "0.1.55-main.0618d91",
39
+ "@dxos/node-std": "0.1.55-main.0618d91",
40
+ "@dxos/protocols": "0.1.55-main.0618d91",
41
+ "@dxos/rpc": "0.1.55-main.0618d91",
42
+ "@dxos/teleport": "0.1.55-main.0618d91",
43
+ "@dxos/util": "0.1.55-main.0618d91"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@swc-node/register": "1.5.4",
@@ -50,7 +50,7 @@
50
50
  "earljs": "~0.1.10",
51
51
  "fast-check": "~3.3.0",
52
52
  "typescript": "^5.0.4",
53
- "@dxos/signal": "0.1.54"
53
+ "@dxos/signal": "0.1.55-main.0618d91"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
@@ -6,6 +6,7 @@ import { Event } from '@dxos/async';
6
6
  import { raise } from '@dxos/debug';
7
7
  import { PublicKey } from '@dxos/keys';
8
8
  import { SwarmInfo, ConnectionInfo } from '@dxos/protocols/proto/dxos/devtools/swarm';
9
+ import { MuxerStats } from '@dxos/teleport';
9
10
  import { ComplexMap } from '@dxos/util';
10
11
 
11
12
  import { ConnectionState, Swarm } from './swarm';
@@ -68,8 +69,8 @@ export class ConnectionLog {
68
69
  this.update.emit();
69
70
  });
70
71
 
71
- (connection.protocol as WireProtocol & { stats: Event<ConnectionInfo.StreamStats[]> })?.stats?.on((stats) => {
72
- connectionInfo.streams = stats;
72
+ (connection.protocol as WireProtocol & { stats: Event<MuxerStats> })?.stats?.on((stats) => {
73
+ connectionInfo.streams = stats.channels;
73
74
  this.update.emit();
74
75
  });
75
76
 
@@ -58,7 +58,7 @@ export class TestWireProtocol {
58
58
  await connection.test(message);
59
59
  }
60
60
 
61
- async startStream(
61
+ async openStream(
62
62
  peerId: PublicKey,
63
63
  streamTag: string,
64
64
  streamLoadInterval: number,