@dxos/teleport-extension-replicator 0.1.58-main.ffbb8a1 → 0.1.58-next.6d0af18

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.
Files changed (2) hide show
  1. package/package.json +15 -15
  2. package/src/stress.test.ts +16 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/teleport-extension-replicator",
3
- "version": "0.1.58-main.ffbb8a1",
3
+ "version": "0.1.58-next.6d0af18",
4
4
  "description": "Replicator extension for teleport.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -16,25 +16,25 @@
16
16
  "src"
17
17
  ],
18
18
  "dependencies": {
19
- "@dxos/async": "0.1.58-main.ffbb8a1",
20
- "@dxos/context": "0.1.58-main.ffbb8a1",
21
- "@dxos/debug": "0.1.58-main.ffbb8a1",
22
- "@dxos/feed-store": "0.1.58-main.ffbb8a1",
23
- "@dxos/invariant": "0.1.58-main.ffbb8a1",
24
- "@dxos/keys": "0.1.58-main.ffbb8a1",
25
- "@dxos/log": "0.1.58-main.ffbb8a1",
26
- "@dxos/node-std": "0.1.58-main.ffbb8a1",
27
- "@dxos/protocols": "0.1.58-main.ffbb8a1",
28
- "@dxos/rpc": "0.1.58-main.ffbb8a1",
29
- "@dxos/teleport": "0.1.58-main.ffbb8a1",
30
- "@dxos/util": "0.1.58-main.ffbb8a1"
19
+ "@dxos/async": "0.1.58-next.6d0af18",
20
+ "@dxos/context": "0.1.58-next.6d0af18",
21
+ "@dxos/debug": "0.1.58-next.6d0af18",
22
+ "@dxos/feed-store": "0.1.58-next.6d0af18",
23
+ "@dxos/invariant": "0.1.58-next.6d0af18",
24
+ "@dxos/keys": "0.1.58-next.6d0af18",
25
+ "@dxos/log": "0.1.58-next.6d0af18",
26
+ "@dxos/node-std": "0.1.58-next.6d0af18",
27
+ "@dxos/protocols": "0.1.58-next.6d0af18",
28
+ "@dxos/rpc": "0.1.58-next.6d0af18",
29
+ "@dxos/teleport": "0.1.58-next.6d0af18",
30
+ "@dxos/util": "0.1.58-next.6d0af18"
31
31
  },
32
32
  "devDependencies": {
33
33
  "add": "^2.0.6",
34
34
  "fast-check": "~3.3.0",
35
35
  "typescript": "^5.2.2",
36
- "@dxos/keyring": "0.1.58-main.ffbb8a1",
37
- "@dxos/random-access-storage": "0.1.58-main.ffbb8a1"
36
+ "@dxos/keyring": "0.1.58-next.6d0af18",
37
+ "@dxos/random-access-storage": "0.1.58-next.6d0af18"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -27,7 +27,11 @@ class TestAgent {
27
27
 
28
28
  readonly replicator = new ReplicatorExtension().setOptions({ upload: true });
29
29
 
30
- constructor(readonly keyring: Keyring, readonly peer: Teleport) {
30
+ // prettier-ignore
31
+ constructor(
32
+ readonly keyring: Keyring,
33
+ readonly peer: Teleport,
34
+ ) {
31
35
  peer.addExtension('dxos.mesh.teleport.replicator', this.replicator);
32
36
  }
33
37
 
@@ -82,7 +86,11 @@ const assertState = async (model: Model, real: Real) => {
82
86
  };
83
87
 
84
88
  class OpenFeedCommand implements fc.AsyncCommand<Model, Real> {
85
- constructor(readonly agent: AgentName, readonly feedKey: PublicKey) {}
89
+ // prettier-ignore
90
+ constructor(
91
+ readonly agent: AgentName,
92
+ readonly feedKey: PublicKey,
93
+ ) {}
86
94
 
87
95
  toString = () => `OpenFeedCommand(${this.agent}, ${this.feedKey.truncate()})`;
88
96
 
@@ -105,7 +113,12 @@ class OpenFeedCommand implements fc.AsyncCommand<Model, Real> {
105
113
  }
106
114
 
107
115
  class WriteToFeedCommand implements fc.AsyncCommand<Model, Real> {
108
- constructor(readonly agent: AgentName, readonly feedKey: PublicKey, readonly count: number) {}
116
+ // prettier-ignore
117
+ constructor(
118
+ readonly agent: AgentName,
119
+ readonly feedKey: PublicKey,
120
+ readonly count: number,
121
+ ) {}
109
122
 
110
123
  toString = () => `WriteToFeedCommand(${this.agent}, ${this.feedKey.truncate()}, ${this.count})`;
111
124