@dxos/hypercore 0.3.11-next.e28df4f → 0.3.11-next.f4c1077
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/hypercore",
|
|
3
|
-
"version": "0.3.11-next.
|
|
3
|
+
"version": "0.3.11-next.f4c1077",
|
|
4
4
|
"description": "Hypercore wrapper and utils.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -20,28 +20,28 @@
|
|
|
20
20
|
"sodium-native": "^3.2.0",
|
|
21
21
|
"sodium-universal": "^3.0.2",
|
|
22
22
|
"streamx": "^2.12.5",
|
|
23
|
-
"@dxos/async": "0.3.11-next.
|
|
24
|
-
"@dxos/
|
|
25
|
-
"@dxos/
|
|
26
|
-
"@dxos/
|
|
27
|
-
"@dxos/
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/node-std": "0.3.11-next.
|
|
30
|
-
"@dxos/random-access-storage": "0.3.11-next.
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/
|
|
23
|
+
"@dxos/async": "0.3.11-next.f4c1077",
|
|
24
|
+
"@dxos/crypto": "0.3.11-next.f4c1077",
|
|
25
|
+
"@dxos/keys": "0.3.11-next.f4c1077",
|
|
26
|
+
"@dxos/debug": "0.3.11-next.f4c1077",
|
|
27
|
+
"@dxos/codec-protobuf": "0.3.11-next.f4c1077",
|
|
28
|
+
"@dxos/invariant": "0.3.11-next.f4c1077",
|
|
29
|
+
"@dxos/node-std": "0.3.11-next.f4c1077",
|
|
30
|
+
"@dxos/random-access-storage": "0.3.11-next.f4c1077",
|
|
31
|
+
"@dxos/typings": "0.3.11-next.f4c1077",
|
|
32
|
+
"@dxos/util": "0.3.11-next.f4c1077"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@faker-js/faker": "^8.3.1",
|
|
36
35
|
"@types/randombytes": "^2.0.0",
|
|
37
36
|
"@types/readable-stream": "^2.3.9",
|
|
38
37
|
"hypercore": "^9.12.0",
|
|
39
38
|
"hypercore-protocol": "^8.0.7",
|
|
40
39
|
"noise-protocol": "3.0.1",
|
|
41
40
|
"random-access-memory": "^4.1.0",
|
|
42
|
-
"@dxos/log": "0.3.11-next.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
41
|
+
"@dxos/log": "0.3.11-next.f4c1077",
|
|
42
|
+
"@dxos/tracing": "0.3.11-next.f4c1077",
|
|
43
|
+
"@dxos/random": "0.3.11-next.f4c1077",
|
|
44
|
+
"@dxos/util": "0.3.11-next.f4c1077"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Copyright 2019 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { faker } from '@faker-js/faker';
|
|
6
5
|
import { expect } from 'chai';
|
|
7
6
|
|
|
8
7
|
import { createKeyPair } from '@dxos/crypto';
|
|
8
|
+
import { faker } from '@dxos/random';
|
|
9
9
|
import { describe, test } from '@dxos/test';
|
|
10
10
|
|
|
11
11
|
import { HypercoreFactory } from './hypercore-factory';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Copyright 2020 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { faker } from '@faker-js/faker';
|
|
6
5
|
import { expect } from 'chai';
|
|
7
6
|
import ProtocolStream from 'hypercore-protocol';
|
|
8
7
|
|
|
@@ -10,6 +9,7 @@ import { latch } from '@dxos/async';
|
|
|
10
9
|
import { createKeyPair } from '@dxos/crypto';
|
|
11
10
|
import { PublicKey } from '@dxos/keys';
|
|
12
11
|
import { log } from '@dxos/log';
|
|
12
|
+
import { faker } from '@dxos/random';
|
|
13
13
|
import { describe, test } from '@dxos/test';
|
|
14
14
|
|
|
15
15
|
import { HypercoreFactory } from './hypercore-factory';
|
package/src/replicate.test.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2019 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { faker } from '@faker-js/faker';
|
|
6
5
|
import { expect } from 'chai';
|
|
7
6
|
|
|
8
7
|
import { latch, sleep, Trigger } from '@dxos/async';
|
|
9
8
|
import { createKeyPair } from '@dxos/crypto';
|
|
10
9
|
import { log } from '@dxos/log';
|
|
10
|
+
import { faker } from '@dxos/random';
|
|
11
11
|
import { createStorage, StorageType } from '@dxos/random-access-storage';
|
|
12
12
|
import { describe, test } from '@dxos/test';
|
|
13
13
|
import { TRACE_PROCESSOR } from '@dxos/tracing';
|
|
@@ -176,9 +176,12 @@ describe('Replication', () => {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
// Random delay.
|
|
179
|
-
setTimeout(
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
setTimeout(
|
|
180
|
+
() => {
|
|
181
|
+
next(size);
|
|
182
|
+
},
|
|
183
|
+
faker.number.int({ min: 0, max: 100 }),
|
|
184
|
+
);
|
|
182
185
|
}, numBlocks);
|
|
183
186
|
|
|
184
187
|
// Done.
|