@dxos/messaging 0.3.3-main.f990aad → 0.3.3-main.ff5734a

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/messaging",
3
- "version": "0.3.3-main.f990aad",
3
+ "version": "0.3.3-main.ff5734a",
4
4
  "description": "Messaging",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -19,23 +19,23 @@
19
19
  "dependencies": {
20
20
  "isomorphic-ws": "^4.0.1",
21
21
  "ws": "^7.4.4",
22
- "@dxos/async": "0.3.3-main.f990aad",
23
- "@dxos/codec-protobuf": "0.3.3-main.f990aad",
24
- "@dxos/context": "0.3.3-main.f990aad",
25
- "@dxos/invariant": "0.3.3-main.f990aad",
26
- "@dxos/keys": "0.3.3-main.f990aad",
27
- "@dxos/log": "0.3.3-main.f990aad",
28
- "@dxos/node-std": "0.3.3-main.f990aad",
29
- "@dxos/protocols": "0.3.3-main.f990aad",
30
- "@dxos/rpc": "0.3.3-main.f990aad",
31
- "@dxos/util": "0.3.3-main.f990aad"
22
+ "@dxos/async": "0.3.3-main.ff5734a",
23
+ "@dxos/codec-protobuf": "0.3.3-main.ff5734a",
24
+ "@dxos/context": "0.3.3-main.ff5734a",
25
+ "@dxos/invariant": "0.3.3-main.ff5734a",
26
+ "@dxos/keys": "0.3.3-main.ff5734a",
27
+ "@dxos/log": "0.3.3-main.ff5734a",
28
+ "@dxos/node-std": "0.3.3-main.ff5734a",
29
+ "@dxos/protocols": "0.3.3-main.ff5734a",
30
+ "@dxos/rpc": "0.3.3-main.ff5734a",
31
+ "@dxos/util": "0.3.3-main.ff5734a"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^18.11.9",
35
35
  "earljs": "~0.1.10",
36
36
  "typescript": "^5.2.2",
37
37
  "wait-for-expect": "^3.0.2",
38
- "@dxos/signal": "0.3.3-main.f990aad"
38
+ "@dxos/signal": "0.3.3-main.ff5734a"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -14,11 +14,19 @@ describe('WebSocketSignalManager', () => {
14
14
  let broker2: SignalServerRunner;
15
15
 
16
16
  beforeAll(async () => {
17
+ if (!mochaExecutor.tags.includes('e2e')) {
18
+ return;
19
+ }
20
+
17
21
  broker1 = await runTestSignalServer({ port: 5001 });
18
22
  broker2 = await runTestSignalServer({ port: 5002 });
19
23
  });
20
24
 
21
25
  afterAll(() => {
26
+ if (!mochaExecutor.tags.includes('e2e')) {
27
+ return;
28
+ }
29
+
22
30
  void broker1.stop();
23
31
  void broker2.stop();
24
32
  });
@@ -58,7 +66,8 @@ describe('WebSocketSignalManager', () => {
58
66
  await Promise.all([joined12, joined13, joined21, joined31]);
59
67
  })
60
68
  .timeout(1_000)
61
- .retries(2);
69
+ .retries(2)
70
+ .tag('e2e');
62
71
 
63
72
  test('join single swarm with doubled brokers', async () => {
64
73
  const client1 = new WebsocketSignalManager([{ server: broker1.url() }, { server: broker2.url() }]);
@@ -89,7 +98,8 @@ describe('WebSocketSignalManager', () => {
89
98
  await asyncTimeout(received, 1_000);
90
99
  })
91
100
  .timeout(1_000)
92
- .retries(2);
101
+ .retries(2)
102
+ .tag('e2e');
93
103
 
94
104
  test('works with one broken server', async () => {
95
105
  const client1 = new WebsocketSignalManager([{ server: 'ws://broken.server/signal' }, { server: broker1.url() }]);
@@ -107,7 +117,8 @@ describe('WebSocketSignalManager', () => {
107
117
  await Promise.all([joined12, joined21]);
108
118
  })
109
119
  .timeout(1_000)
110
- .retries(2);
120
+ .retries(2)
121
+ .tag('e2e');
111
122
 
112
123
  test('join two swarms with a broken signal server', async () => {
113
124
  const client1 = new WebsocketSignalManager([{ server: 'ws://broken.server/signal' }, { server: broker1.url() }]);
@@ -131,5 +142,6 @@ describe('WebSocketSignalManager', () => {
131
142
  await Promise.all([joined212, joined221]);
132
143
  })
133
144
  .timeout(1_000)
134
- .retries(2);
145
+ .retries(2)
146
+ .tag('e2e');
135
147
  });