@libp2p/interface-compliance-tests 5.4.5 → 5.4.6-863b3de03
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/dist/src/transport/dial-test.d.ts.map +1 -1
- package/dist/src/transport/dial-test.js +15 -14
- package/dist/src/transport/dial-test.js.map +1 -1
- package/dist/src/transport/filter-test.d.ts.map +1 -1
- package/dist/src/transport/filter-test.js +5 -4
- package/dist/src/transport/filter-test.js.map +1 -1
- package/dist/src/transport/index.d.ts +2 -1
- package/dist/src/transport/index.d.ts.map +1 -1
- package/dist/src/transport/index.js.map +1 -1
- package/dist/src/transport/listen-test.d.ts.map +1 -1
- package/dist/src/transport/listen-test.js +32 -31
- package/dist/src/transport/listen-test.js.map +1 -1
- package/package.json +10 -10
- package/src/transport/dial-test.ts +15 -14
- package/src/transport/filter-test.ts +5 -4
- package/src/transport/index.ts +2 -1
- package/src/transport/listen-test.ts +32 -31
- package/dist/typedoc-urls.json +0 -42
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dial-test.d.ts","sourceRoot":"","sources":["../../../src/transport/dial-test.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAa,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;iCAKpB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,
|
|
1
|
+
{"version":3,"file":"dial-test.d.ts","sourceRoot":"","sources":["../../../src/transport/dial-test.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAa,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;iCAKpB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,wBA6GC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypedEventEmitter } from '@libp2p/interface';
|
|
2
2
|
import { expect } from 'aegir/chai';
|
|
3
3
|
import all from 'it-all';
|
|
4
4
|
import drain from 'it-drain';
|
|
@@ -13,30 +13,31 @@ export default (common) => {
|
|
|
13
13
|
let registrar;
|
|
14
14
|
let listenAddrs;
|
|
15
15
|
let dialAddrs;
|
|
16
|
-
let
|
|
17
|
-
let connector;
|
|
16
|
+
let dialer;
|
|
18
17
|
let listener;
|
|
18
|
+
let connector;
|
|
19
|
+
let listen;
|
|
19
20
|
before(async () => {
|
|
20
21
|
registrar = mockRegistrar();
|
|
21
22
|
upgrader = mockUpgrader({
|
|
22
23
|
registrar,
|
|
23
24
|
events: new TypedEventEmitter()
|
|
24
25
|
});
|
|
25
|
-
({ listenAddrs, dialAddrs,
|
|
26
|
+
({ listenAddrs, dialAddrs, dialer, listener, connector } = await common.setup());
|
|
26
27
|
});
|
|
27
28
|
after(async () => {
|
|
28
29
|
await common.teardown();
|
|
29
30
|
});
|
|
30
31
|
beforeEach(async () => {
|
|
31
|
-
|
|
32
|
+
listen = listener.createListener({
|
|
32
33
|
upgrader
|
|
33
34
|
});
|
|
34
|
-
await
|
|
35
|
+
await listen.listen(listenAddrs[0]);
|
|
35
36
|
});
|
|
36
37
|
afterEach(async () => {
|
|
37
38
|
sinon.restore();
|
|
38
39
|
connector.restore();
|
|
39
|
-
await
|
|
40
|
+
await listen.close();
|
|
40
41
|
});
|
|
41
42
|
it('simple', async () => {
|
|
42
43
|
const protocol = '/hello/1.0.0';
|
|
@@ -46,7 +47,7 @@ export default (common) => {
|
|
|
46
47
|
], data.stream, drain);
|
|
47
48
|
});
|
|
48
49
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound');
|
|
49
|
-
const conn = await
|
|
50
|
+
const conn = await dialer.dial(dialAddrs[0], {
|
|
50
51
|
upgrader
|
|
51
52
|
});
|
|
52
53
|
const stream = await conn.newStream([protocol]);
|
|
@@ -59,7 +60,7 @@ export default (common) => {
|
|
|
59
60
|
});
|
|
60
61
|
it('can close connections', async () => {
|
|
61
62
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound');
|
|
62
|
-
const conn = await
|
|
63
|
+
const conn = await dialer.dial(dialAddrs[0], {
|
|
63
64
|
upgrader
|
|
64
65
|
});
|
|
65
66
|
expect(upgradeSpy.callCount).to.equal(1);
|
|
@@ -69,7 +70,7 @@ export default (common) => {
|
|
|
69
70
|
});
|
|
70
71
|
it('to non existent listener', async () => {
|
|
71
72
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound');
|
|
72
|
-
await expect(
|
|
73
|
+
await expect(dialer.dial(dialAddrs[1], {
|
|
73
74
|
upgrader
|
|
74
75
|
})).to.eventually.be.rejected();
|
|
75
76
|
expect(upgradeSpy.callCount).to.equal(0);
|
|
@@ -78,8 +79,8 @@ export default (common) => {
|
|
|
78
79
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound');
|
|
79
80
|
const controller = new AbortController();
|
|
80
81
|
controller.abort();
|
|
81
|
-
const conn =
|
|
82
|
-
await expect(conn).to.eventually.be.rejected().with.property('
|
|
82
|
+
const conn = dialer.dial(dialAddrs[0], { signal: controller.signal, upgrader });
|
|
83
|
+
await expect(conn).to.eventually.be.rejected().with.property('name', 'AbortError');
|
|
83
84
|
expect(upgradeSpy.callCount).to.equal(0);
|
|
84
85
|
});
|
|
85
86
|
it('abort while dialing throws AbortError', async () => {
|
|
@@ -88,9 +89,9 @@ export default (common) => {
|
|
|
88
89
|
// progress
|
|
89
90
|
connector.delay(100);
|
|
90
91
|
const controller = new AbortController();
|
|
91
|
-
const conn =
|
|
92
|
+
const conn = dialer.dial(dialAddrs[0], { signal: controller.signal, upgrader });
|
|
92
93
|
setTimeout(() => { controller.abort(); }, 50);
|
|
93
|
-
await expect(conn).to.eventually.be.rejected().with.property('
|
|
94
|
+
await expect(conn).to.eventually.be.rejected().with.property('name', 'AbortError');
|
|
94
95
|
expect(upgradeSpy.callCount).to.equal(0);
|
|
95
96
|
});
|
|
96
97
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dial-test.js","sourceRoot":"","sources":["../../../src/transport/dial-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dial-test.js","sourceRoot":"","sources":["../../../src/transport/dial-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,GAAG,MAAM,QAAQ,CAAA;AACxB,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAO/D,eAAe,CAAC,MAAwC,EAAQ,EAAE;IAChE,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;QACpB,IAAI,QAAkB,CAAA;QACtB,IAAI,SAAoB,CAAA;QACxB,IAAI,WAAwB,CAAA;QAC5B,IAAI,SAAsB,CAAA;QAC1B,IAAI,MAAiB,CAAA;QACrB,IAAI,QAAmB,CAAA;QACvB,IAAI,SAAoB,CAAA;QACxB,IAAI,MAAgB,CAAA;QAEpB,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,SAAS,GAAG,aAAa,EAAE,CAAA;YAC3B,QAAQ,GAAG,YAAY,CAAC;gBACtB,SAAS;gBACT,MAAM,EAAE,IAAI,iBAAiB,EAAE;aAChC,CAAC,CAAC;YAEH,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;QAClF,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,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC/E,UAAU,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,KAAK,EAAE,CAAA,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;YAE5C,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;YAClF,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAC1C,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-test.d.ts","sourceRoot":"","sources":["../../../src/transport/filter-test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;iCAIpB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,
|
|
1
|
+
{"version":3,"file":"filter-test.d.ts","sourceRoot":"","sources":["../../../src/transport/filter-test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;iCAIpB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,wBAyBC"}
|
|
@@ -3,19 +3,20 @@ export default (common) => {
|
|
|
3
3
|
describe('filter', () => {
|
|
4
4
|
let listenAddrs;
|
|
5
5
|
let dialAddrs;
|
|
6
|
-
let
|
|
6
|
+
let dialer;
|
|
7
|
+
let listener;
|
|
7
8
|
before(async () => {
|
|
8
|
-
({ listenAddrs, dialAddrs,
|
|
9
|
+
({ listenAddrs, dialAddrs, dialer, listener } = await common.setup());
|
|
9
10
|
});
|
|
10
11
|
after(async () => {
|
|
11
12
|
await common.teardown();
|
|
12
13
|
});
|
|
13
14
|
it('filters listen addresses', () => {
|
|
14
|
-
const filteredAddrs =
|
|
15
|
+
const filteredAddrs = listener.listenFilter(listenAddrs);
|
|
15
16
|
expect(filteredAddrs).to.eql(listenAddrs);
|
|
16
17
|
});
|
|
17
18
|
it('filters dial addresses', () => {
|
|
18
|
-
const filteredAddrs =
|
|
19
|
+
const filteredAddrs = dialer.dialFilter(dialAddrs);
|
|
19
20
|
expect(filteredAddrs).to.eql(dialAddrs);
|
|
20
21
|
});
|
|
21
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-test.js","sourceRoot":"","sources":["../../../src/transport/filter-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAMnC,eAAe,CAAC,MAAwC,EAAQ,EAAE;IAChE,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACtB,IAAI,WAAwB,CAAA;QAC5B,IAAI,SAAsB,CAAA;QAC1B,IAAI,
|
|
1
|
+
{"version":3,"file":"filter-test.js","sourceRoot":"","sources":["../../../src/transport/filter-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAMnC,eAAe,CAAC,MAAwC,EAAQ,EAAE;IAChE,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACtB,IAAI,WAAwB,CAAA;QAC5B,IAAI,SAAsB,CAAA;QAC1B,IAAI,MAAiB,CAAA;QACrB,IAAI,QAAmB,CAAA;QAEvB,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;QACvE,CAAC,CAAC,CAAA;QAEF,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAA;QACzB,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;YAClC,MAAM,aAAa,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,CAAC,CAAA;YACxD,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;QAC3C,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;YAChC,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;YAClD,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;QACzC,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -8,7 +8,8 @@ export interface Connector {
|
|
|
8
8
|
export interface TransportTestFixtures {
|
|
9
9
|
listenAddrs: Multiaddr[];
|
|
10
10
|
dialAddrs: Multiaddr[];
|
|
11
|
-
|
|
11
|
+
dialer: Transport;
|
|
12
|
+
listener: Transport;
|
|
12
13
|
connector: Connector;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: (common: TestSetup<TransportTestFixtures>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,SAAS,EAAE,CAAA;IACxB,SAAS,EAAE,SAAS,EAAE,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,SAAS,EAAE,CAAA;IACxB,SAAS,EAAE,SAAS,EAAE,CAAA;IACtB,MAAM,EAAE,SAAS,CAAA;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,EAAE,SAAS,CAAA;CACrB;iCAEuB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,wBAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAA;AACjC,OAAO,MAAM,MAAM,kBAAkB,CAAA;AACrC,OAAO,MAAM,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAA;AACjC,OAAO,MAAM,MAAM,kBAAkB,CAAA;AACrC,OAAO,MAAM,MAAM,kBAAkB,CAAA;AAkBrC,eAAe,CAAC,MAAwC,EAAQ,EAAE;IAChE,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;QACnC,IAAI,CAAC,MAAM,CAAC,CAAA;QACZ,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,MAAM,CAAC,MAAM,CAAC,CAAA;IAChB,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listen-test.d.ts","sourceRoot":"","sources":["../../../src/transport/listen-test.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;iCAKpB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,
|
|
1
|
+
{"version":3,"file":"listen-test.d.ts","sourceRoot":"","sources":["../../../src/transport/listen-test.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;iCAKpB,UAAU,qBAAqB,CAAC,KAAG,IAAI;AAA/D,wBA8KC"}
|
|
@@ -14,7 +14,8 @@ export default (common) => {
|
|
|
14
14
|
let upgrader;
|
|
15
15
|
let listenAddrs;
|
|
16
16
|
let dialAddrs;
|
|
17
|
-
let
|
|
17
|
+
let dialer;
|
|
18
|
+
let listener;
|
|
18
19
|
let registrar;
|
|
19
20
|
before(async () => {
|
|
20
21
|
registrar = mockRegistrar();
|
|
@@ -22,7 +23,7 @@ export default (common) => {
|
|
|
22
23
|
registrar,
|
|
23
24
|
events: new TypedEventEmitter()
|
|
24
25
|
});
|
|
25
|
-
({
|
|
26
|
+
({ dialer, listener, listenAddrs, dialAddrs } = await common.setup());
|
|
26
27
|
});
|
|
27
28
|
after(async () => {
|
|
28
29
|
await common.teardown();
|
|
@@ -31,11 +32,11 @@ export default (common) => {
|
|
|
31
32
|
sinon.restore();
|
|
32
33
|
});
|
|
33
34
|
it('simple', async () => {
|
|
34
|
-
const
|
|
35
|
+
const listen = listener.createListener({
|
|
35
36
|
upgrader
|
|
36
37
|
});
|
|
37
|
-
await
|
|
38
|
-
await
|
|
38
|
+
await listen.listen(listenAddrs[0]);
|
|
39
|
+
await listen.close();
|
|
39
40
|
});
|
|
40
41
|
it('close listener with connections, through timeout', async () => {
|
|
41
42
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeInbound');
|
|
@@ -44,20 +45,20 @@ export default (common) => {
|
|
|
44
45
|
void registrar.handle(protocol, (data) => {
|
|
45
46
|
void drain(data.stream.source);
|
|
46
47
|
});
|
|
47
|
-
const
|
|
48
|
+
const listen = listener.createListener({
|
|
48
49
|
upgrader,
|
|
49
50
|
handler: (conn) => {
|
|
50
51
|
listenerConns.push(conn);
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
// Listen
|
|
54
|
-
await
|
|
55
|
+
await listen.listen(listenAddrs[0]);
|
|
55
56
|
// Create two connections to the listener
|
|
56
57
|
const [conn1] = await Promise.all([
|
|
57
|
-
|
|
58
|
+
dialer.dial(dialAddrs[0], {
|
|
58
59
|
upgrader
|
|
59
60
|
}),
|
|
60
|
-
|
|
61
|
+
dialer.dial(dialAddrs[0], {
|
|
61
62
|
upgrader
|
|
62
63
|
})
|
|
63
64
|
]);
|
|
@@ -68,7 +69,7 @@ export default (common) => {
|
|
|
68
69
|
await Promise.all([
|
|
69
70
|
pipe([uint8ArrayFromString('Some data that is never handled')], stream1),
|
|
70
71
|
// Closer the listener (will take a couple of seconds to time out)
|
|
71
|
-
|
|
72
|
+
listen.close()
|
|
72
73
|
]);
|
|
73
74
|
await stream1.close();
|
|
74
75
|
await conn1.close();
|
|
@@ -81,70 +82,70 @@ export default (common) => {
|
|
|
81
82
|
});
|
|
82
83
|
it('should not handle connection if upgradeInbound throws', async () => {
|
|
83
84
|
sinon.stub(upgrader, 'upgradeInbound').throws();
|
|
84
|
-
const
|
|
85
|
+
const listen = listener.createListener({
|
|
85
86
|
upgrader
|
|
86
87
|
});
|
|
87
88
|
// Listen
|
|
88
|
-
await
|
|
89
|
+
await listen.listen(listenAddrs[0]);
|
|
89
90
|
// Create a connection to the listener
|
|
90
|
-
const conn = await
|
|
91
|
+
const conn = await dialer.dial(dialAddrs[0], {
|
|
91
92
|
upgrader
|
|
92
93
|
});
|
|
93
94
|
await pWaitFor(() => typeof conn.timeline.close === 'number');
|
|
94
|
-
await
|
|
95
|
+
await listen.close();
|
|
95
96
|
});
|
|
96
97
|
describe('events', () => {
|
|
97
98
|
it('connection', async () => {
|
|
98
99
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeInbound');
|
|
99
|
-
const
|
|
100
|
+
const listen = listener.createListener({
|
|
100
101
|
upgrader
|
|
101
102
|
});
|
|
102
103
|
const deferred = defer();
|
|
103
104
|
let conn;
|
|
104
|
-
|
|
105
|
+
listen.addEventListener('connection', (evt) => {
|
|
105
106
|
conn = evt.detail;
|
|
106
107
|
deferred.resolve();
|
|
107
108
|
});
|
|
108
109
|
void (async () => {
|
|
109
|
-
await
|
|
110
|
-
await
|
|
110
|
+
await listen.listen(listenAddrs[0]);
|
|
111
|
+
await dialer.dial(dialAddrs[0], {
|
|
111
112
|
upgrader
|
|
112
113
|
});
|
|
113
114
|
})();
|
|
114
115
|
await deferred.promise;
|
|
115
116
|
await expect(upgradeSpy.getCall(0).returnValue).to.eventually.equal(conn);
|
|
116
117
|
expect(upgradeSpy.callCount).to.equal(1);
|
|
117
|
-
await
|
|
118
|
+
await listen.close();
|
|
118
119
|
});
|
|
119
120
|
it('listening', (done) => {
|
|
120
|
-
const
|
|
121
|
+
const listen = listener.createListener({
|
|
121
122
|
upgrader
|
|
122
123
|
});
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
listen.addEventListener('listening', () => {
|
|
125
|
+
listen.close().then(done, done);
|
|
125
126
|
});
|
|
126
|
-
void
|
|
127
|
+
void listen.listen(listenAddrs[0]);
|
|
127
128
|
});
|
|
128
129
|
it('error', (done) => {
|
|
129
|
-
const
|
|
130
|
+
const listen = listener.createListener({
|
|
130
131
|
upgrader
|
|
131
132
|
});
|
|
132
|
-
|
|
133
|
+
listen.addEventListener('error', (evt) => {
|
|
133
134
|
expect(evt.detail).to.be.an.instanceOf(Error);
|
|
134
|
-
|
|
135
|
+
listen.close().then(done, done);
|
|
135
136
|
});
|
|
136
|
-
|
|
137
|
+
listen.dispatchEvent(new CustomEvent('error', {
|
|
137
138
|
detail: new Error('my err')
|
|
138
139
|
}));
|
|
139
140
|
});
|
|
140
141
|
it('close', (done) => {
|
|
141
|
-
const
|
|
142
|
+
const listen = listener.createListener({
|
|
142
143
|
upgrader
|
|
143
144
|
});
|
|
144
|
-
|
|
145
|
+
listen.addEventListener('close', () => { done(); });
|
|
145
146
|
void (async () => {
|
|
146
|
-
await
|
|
147
|
-
await
|
|
147
|
+
await listen.listen(listenAddrs[0]);
|
|
148
|
+
await listen.close();
|
|
148
149
|
})();
|
|
149
150
|
});
|
|
150
151
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listen-test.js","sourceRoot":"","sources":["../../../src/transport/listen-test.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAO/D,eAAe,CAAC,MAAwC,EA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AAE,IAAI,KAAK,CAAC,QAAQ,CAAC;iBAC5B,CAAC,CAAC,CAAA;YACL,CAAC,CAAC,CAAA;YAEF,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBACnB,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC;oBACrC,QAAQ;iBACT,CAAC,CAAA;gBACF,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,CAAA,CAAC,CAAC,CAAC,CAAA;gBAElD,KAAK,CAAC,KAAK,IAAI,EAAE;oBACf,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;oBACnC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;gBACtB,CAAC,CAAC,EAAE,CAAA;YACN,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-compliance-tests",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6-863b3de03",
|
|
4
4
|
"description": "Compliance tests for JS libp2p interfaces",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-compliance-tests#readme",
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
"test:electron-main": "aegir test -t electron-main"
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@libp2p/interface": "
|
|
116
|
-
"@libp2p/interface-internal": "
|
|
117
|
-
"@libp2p/logger": "
|
|
118
|
-
"@libp2p/multistream-select": "
|
|
119
|
-
"@libp2p/peer-collections": "
|
|
120
|
-
"@libp2p/peer-id": "
|
|
121
|
-
"@libp2p/peer-id-factory": "
|
|
122
|
-
"@libp2p/utils": "
|
|
115
|
+
"@libp2p/interface": "1.4.1-863b3de03",
|
|
116
|
+
"@libp2p/interface-internal": "1.2.3-863b3de03",
|
|
117
|
+
"@libp2p/logger": "4.0.14-863b3de03",
|
|
118
|
+
"@libp2p/multistream-select": "5.1.11-863b3de03",
|
|
119
|
+
"@libp2p/peer-collections": "5.2.3-863b3de03",
|
|
120
|
+
"@libp2p/peer-id": "4.1.3-863b3de03",
|
|
121
|
+
"@libp2p/peer-id-factory": "4.1.3-863b3de03",
|
|
122
|
+
"@libp2p/utils": "5.4.3-863b3de03",
|
|
123
123
|
"@multiformats/multiaddr": "^12.2.3",
|
|
124
124
|
"abortable-iterator": "^5.0.1",
|
|
125
|
-
"aegir": "^
|
|
125
|
+
"aegir": "^43.0.1",
|
|
126
126
|
"delay": "^6.0.0",
|
|
127
127
|
"it-all": "^3.0.6",
|
|
128
128
|
"it-byte-stream": "^1.0.10",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypedEventEmitter } from '@libp2p/interface'
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
3
|
import all from 'it-all'
|
|
4
4
|
import drain from 'it-drain'
|
|
@@ -19,9 +19,10 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
19
19
|
let registrar: Registrar
|
|
20
20
|
let listenAddrs: Multiaddr[]
|
|
21
21
|
let dialAddrs: Multiaddr[]
|
|
22
|
-
let
|
|
22
|
+
let dialer: Transport
|
|
23
|
+
let listener: Transport
|
|
23
24
|
let connector: Connector
|
|
24
|
-
let
|
|
25
|
+
let listen: Listener
|
|
25
26
|
|
|
26
27
|
before(async () => {
|
|
27
28
|
registrar = mockRegistrar()
|
|
@@ -30,7 +31,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
30
31
|
events: new TypedEventEmitter()
|
|
31
32
|
});
|
|
32
33
|
|
|
33
|
-
({ listenAddrs, dialAddrs,
|
|
34
|
+
({ listenAddrs, dialAddrs, dialer, listener, connector } = await common.setup())
|
|
34
35
|
})
|
|
35
36
|
|
|
36
37
|
after(async () => {
|
|
@@ -38,16 +39,16 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
38
39
|
})
|
|
39
40
|
|
|
40
41
|
beforeEach(async () => {
|
|
41
|
-
|
|
42
|
+
listen = listener.createListener({
|
|
42
43
|
upgrader
|
|
43
44
|
})
|
|
44
|
-
await
|
|
45
|
+
await listen.listen(listenAddrs[0])
|
|
45
46
|
})
|
|
46
47
|
|
|
47
48
|
afterEach(async () => {
|
|
48
49
|
sinon.restore()
|
|
49
50
|
connector.restore()
|
|
50
|
-
await
|
|
51
|
+
await listen.close()
|
|
51
52
|
})
|
|
52
53
|
|
|
53
54
|
it('simple', async () => {
|
|
@@ -62,7 +63,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
62
63
|
})
|
|
63
64
|
|
|
64
65
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound')
|
|
65
|
-
const conn = await
|
|
66
|
+
const conn = await dialer.dial(dialAddrs[0], {
|
|
66
67
|
upgrader
|
|
67
68
|
})
|
|
68
69
|
|
|
@@ -78,7 +79,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
78
79
|
|
|
79
80
|
it('can close connections', async () => {
|
|
80
81
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound')
|
|
81
|
-
const conn = await
|
|
82
|
+
const conn = await dialer.dial(dialAddrs[0], {
|
|
82
83
|
upgrader
|
|
83
84
|
})
|
|
84
85
|
|
|
@@ -91,7 +92,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
91
92
|
it('to non existent listener', async () => {
|
|
92
93
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound')
|
|
93
94
|
|
|
94
|
-
await expect(
|
|
95
|
+
await expect(dialer.dial(dialAddrs[1], {
|
|
95
96
|
upgrader
|
|
96
97
|
})).to.eventually.be.rejected()
|
|
97
98
|
expect(upgradeSpy.callCount).to.equal(0)
|
|
@@ -101,9 +102,9 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
101
102
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeOutbound')
|
|
102
103
|
const controller = new AbortController()
|
|
103
104
|
controller.abort()
|
|
104
|
-
const conn =
|
|
105
|
+
const conn = dialer.dial(dialAddrs[0], { signal: controller.signal, upgrader })
|
|
105
106
|
|
|
106
|
-
await expect(conn).to.eventually.be.rejected().with.property('
|
|
107
|
+
await expect(conn).to.eventually.be.rejected().with.property('name', 'AbortError')
|
|
107
108
|
expect(upgradeSpy.callCount).to.equal(0)
|
|
108
109
|
})
|
|
109
110
|
|
|
@@ -114,10 +115,10 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
114
115
|
connector.delay(100)
|
|
115
116
|
|
|
116
117
|
const controller = new AbortController()
|
|
117
|
-
const conn =
|
|
118
|
+
const conn = dialer.dial(dialAddrs[0], { signal: controller.signal, upgrader })
|
|
118
119
|
setTimeout(() => { controller.abort() }, 50)
|
|
119
120
|
|
|
120
|
-
await expect(conn).to.eventually.be.rejected().with.property('
|
|
121
|
+
await expect(conn).to.eventually.be.rejected().with.property('name', 'AbortError')
|
|
121
122
|
expect(upgradeSpy.callCount).to.equal(0)
|
|
122
123
|
})
|
|
123
124
|
})
|
|
@@ -8,10 +8,11 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
8
8
|
describe('filter', () => {
|
|
9
9
|
let listenAddrs: Multiaddr[]
|
|
10
10
|
let dialAddrs: Multiaddr[]
|
|
11
|
-
let
|
|
11
|
+
let dialer: Transport
|
|
12
|
+
let listener: Transport
|
|
12
13
|
|
|
13
14
|
before(async () => {
|
|
14
|
-
({ listenAddrs, dialAddrs,
|
|
15
|
+
({ listenAddrs, dialAddrs, dialer, listener } = await common.setup())
|
|
15
16
|
})
|
|
16
17
|
|
|
17
18
|
after(async () => {
|
|
@@ -19,12 +20,12 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
19
20
|
})
|
|
20
21
|
|
|
21
22
|
it('filters listen addresses', () => {
|
|
22
|
-
const filteredAddrs =
|
|
23
|
+
const filteredAddrs = listener.listenFilter(listenAddrs)
|
|
23
24
|
expect(filteredAddrs).to.eql(listenAddrs)
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
it('filters dial addresses', () => {
|
|
27
|
-
const filteredAddrs =
|
|
28
|
+
const filteredAddrs = dialer.dialFilter(dialAddrs)
|
|
28
29
|
expect(filteredAddrs).to.eql(dialAddrs)
|
|
29
30
|
})
|
|
30
31
|
})
|
package/src/transport/index.ts
CHANGED
|
@@ -20,7 +20,8 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
20
20
|
let upgrader: Upgrader
|
|
21
21
|
let listenAddrs: Multiaddr[]
|
|
22
22
|
let dialAddrs: Multiaddr[]
|
|
23
|
-
let
|
|
23
|
+
let dialer: Transport
|
|
24
|
+
let listener: Transport
|
|
24
25
|
let registrar: Registrar
|
|
25
26
|
|
|
26
27
|
before(async () => {
|
|
@@ -30,7 +31,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
30
31
|
events: new TypedEventEmitter()
|
|
31
32
|
});
|
|
32
33
|
|
|
33
|
-
({
|
|
34
|
+
({ dialer, listener, listenAddrs, dialAddrs } = await common.setup())
|
|
34
35
|
})
|
|
35
36
|
|
|
36
37
|
after(async () => {
|
|
@@ -42,11 +43,11 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
42
43
|
})
|
|
43
44
|
|
|
44
45
|
it('simple', async () => {
|
|
45
|
-
const
|
|
46
|
+
const listen = listener.createListener({
|
|
46
47
|
upgrader
|
|
47
48
|
})
|
|
48
|
-
await
|
|
49
|
-
await
|
|
49
|
+
await listen.listen(listenAddrs[0])
|
|
50
|
+
await listen.close()
|
|
50
51
|
})
|
|
51
52
|
|
|
52
53
|
it('close listener with connections, through timeout', async () => {
|
|
@@ -58,7 +59,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
58
59
|
void drain(data.stream.source)
|
|
59
60
|
})
|
|
60
61
|
|
|
61
|
-
const
|
|
62
|
+
const listen = listener.createListener({
|
|
62
63
|
upgrader,
|
|
63
64
|
handler: (conn) => {
|
|
64
65
|
listenerConns.push(conn)
|
|
@@ -66,14 +67,14 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
66
67
|
})
|
|
67
68
|
|
|
68
69
|
// Listen
|
|
69
|
-
await
|
|
70
|
+
await listen.listen(listenAddrs[0])
|
|
70
71
|
|
|
71
72
|
// Create two connections to the listener
|
|
72
73
|
const [conn1] = await Promise.all([
|
|
73
|
-
|
|
74
|
+
dialer.dial(dialAddrs[0], {
|
|
74
75
|
upgrader
|
|
75
76
|
}),
|
|
76
|
-
|
|
77
|
+
dialer.dial(dialAddrs[0], {
|
|
77
78
|
upgrader
|
|
78
79
|
})
|
|
79
80
|
])
|
|
@@ -90,7 +91,7 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
90
91
|
stream1
|
|
91
92
|
),
|
|
92
93
|
// Closer the listener (will take a couple of seconds to time out)
|
|
93
|
-
|
|
94
|
+
listen.close()
|
|
94
95
|
])
|
|
95
96
|
|
|
96
97
|
await stream1.close()
|
|
@@ -108,39 +109,39 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
108
109
|
it('should not handle connection if upgradeInbound throws', async () => {
|
|
109
110
|
sinon.stub(upgrader, 'upgradeInbound').throws()
|
|
110
111
|
|
|
111
|
-
const
|
|
112
|
+
const listen = listener.createListener({
|
|
112
113
|
upgrader
|
|
113
114
|
})
|
|
114
115
|
|
|
115
116
|
// Listen
|
|
116
|
-
await
|
|
117
|
+
await listen.listen(listenAddrs[0])
|
|
117
118
|
|
|
118
119
|
// Create a connection to the listener
|
|
119
|
-
const conn = await
|
|
120
|
+
const conn = await dialer.dial(dialAddrs[0], {
|
|
120
121
|
upgrader
|
|
121
122
|
})
|
|
122
123
|
|
|
123
124
|
await pWaitFor(() => typeof conn.timeline.close === 'number')
|
|
124
|
-
await
|
|
125
|
+
await listen.close()
|
|
125
126
|
})
|
|
126
127
|
|
|
127
128
|
describe('events', () => {
|
|
128
129
|
it('connection', async () => {
|
|
129
130
|
const upgradeSpy = sinon.spy(upgrader, 'upgradeInbound')
|
|
130
|
-
const
|
|
131
|
+
const listen = listener.createListener({
|
|
131
132
|
upgrader
|
|
132
133
|
})
|
|
133
134
|
const deferred = defer()
|
|
134
135
|
let conn
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
listen.addEventListener('connection', (evt) => {
|
|
137
138
|
conn = evt.detail
|
|
138
139
|
deferred.resolve()
|
|
139
140
|
})
|
|
140
141
|
|
|
141
142
|
void (async () => {
|
|
142
|
-
await
|
|
143
|
-
await
|
|
143
|
+
await listen.listen(listenAddrs[0])
|
|
144
|
+
await dialer.dial(dialAddrs[0], {
|
|
144
145
|
upgrader
|
|
145
146
|
})
|
|
146
147
|
})()
|
|
@@ -149,41 +150,41 @@ export default (common: TestSetup<TransportTestFixtures>): void => {
|
|
|
149
150
|
|
|
150
151
|
await expect(upgradeSpy.getCall(0).returnValue).to.eventually.equal(conn)
|
|
151
152
|
expect(upgradeSpy.callCount).to.equal(1)
|
|
152
|
-
await
|
|
153
|
+
await listen.close()
|
|
153
154
|
})
|
|
154
155
|
|
|
155
156
|
it('listening', (done) => {
|
|
156
|
-
const
|
|
157
|
+
const listen = listener.createListener({
|
|
157
158
|
upgrader
|
|
158
159
|
})
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
listen.addEventListener('listening', () => {
|
|
161
|
+
listen.close().then(done, done)
|
|
161
162
|
})
|
|
162
|
-
void
|
|
163
|
+
void listen.listen(listenAddrs[0])
|
|
163
164
|
})
|
|
164
165
|
|
|
165
166
|
it('error', (done) => {
|
|
166
|
-
const
|
|
167
|
+
const listen = listener.createListener({
|
|
167
168
|
upgrader
|
|
168
169
|
})
|
|
169
|
-
|
|
170
|
+
listen.addEventListener('error', (evt) => {
|
|
170
171
|
expect(evt.detail).to.be.an.instanceOf(Error)
|
|
171
|
-
|
|
172
|
+
listen.close().then(done, done)
|
|
172
173
|
})
|
|
173
|
-
|
|
174
|
+
listen.dispatchEvent(new CustomEvent('error', {
|
|
174
175
|
detail: new Error('my err')
|
|
175
176
|
}))
|
|
176
177
|
})
|
|
177
178
|
|
|
178
179
|
it('close', (done) => {
|
|
179
|
-
const
|
|
180
|
+
const listen = listener.createListener({
|
|
180
181
|
upgrader
|
|
181
182
|
})
|
|
182
|
-
|
|
183
|
+
listen.addEventListener('close', () => { done() })
|
|
183
184
|
|
|
184
185
|
void (async () => {
|
|
185
|
-
await
|
|
186
|
-
await
|
|
186
|
+
await listen.listen(listenAddrs[0])
|
|
187
|
+
await listen.close()
|
|
187
188
|
})()
|
|
188
189
|
})
|
|
189
190
|
})
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.connection.default.html",
|
|
3
|
-
"./connection:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.connection.default.html",
|
|
4
|
-
"./connection-encryption:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.connection_encryption.default.html",
|
|
5
|
-
"TestSetup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.index.TestSetup.html",
|
|
6
|
-
".:TestSetup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.index.TestSetup.html",
|
|
7
|
-
"isValidTick": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.is_valid_tick.isValidTick.html",
|
|
8
|
-
"./is-valid-tick:isValidTick": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.is_valid_tick.isValidTick.html",
|
|
9
|
-
"matchMultiaddr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchMultiaddr.html",
|
|
10
|
-
"./matchers:matchMultiaddr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchMultiaddr.html",
|
|
11
|
-
"matchPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchPeerId.html",
|
|
12
|
-
"./matchers:matchPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchPeerId.html",
|
|
13
|
-
"MockNetworkComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockNetworkComponents.html",
|
|
14
|
-
"MockUpgraderInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockUpgraderInit.html",
|
|
15
|
-
"mockNetwork": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface_compliance_tests.mocks.mockNetwork.html",
|
|
16
|
-
"connectionPair": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.connectionPair.html",
|
|
17
|
-
"mockConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockConnection.html",
|
|
18
|
-
"mockConnectionGater": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockConnectionGater.html",
|
|
19
|
-
"mockConnectionManager": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockConnectionManager.html",
|
|
20
|
-
"mockDuplex": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockDuplex.html",
|
|
21
|
-
"mockMetrics": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMetrics.html",
|
|
22
|
-
"mockMultiaddrConnPair": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMultiaddrConnPair.html",
|
|
23
|
-
"mockMultiaddrConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMultiaddrConnection.html",
|
|
24
|
-
"mockMuxer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMuxer.html",
|
|
25
|
-
"mockRegistrar": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockRegistrar.html",
|
|
26
|
-
"mockStream": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockStream.html",
|
|
27
|
-
"mockUpgrader": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockUpgrader.html",
|
|
28
|
-
"streamPair": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.streamPair.html",
|
|
29
|
-
"./peer-discovery:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.peer_discovery.default.html",
|
|
30
|
-
"./peers:default": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface_compliance_tests.peers.default.html",
|
|
31
|
-
"PubSubArgs": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubArgs.html",
|
|
32
|
-
"./pubsub:PubSubArgs": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubArgs.html",
|
|
33
|
-
"PubSubComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubComponents.html",
|
|
34
|
-
"./pubsub:PubSubComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubComponents.html",
|
|
35
|
-
"./pubsub:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.pubsub.default.html",
|
|
36
|
-
"./stream-muxer:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.stream_muxer.default.html",
|
|
37
|
-
"Connector": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.transport.Connector.html",
|
|
38
|
-
"./transport:Connector": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.transport.Connector.html",
|
|
39
|
-
"TransportTestFixtures": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.transport.TransportTestFixtures.html",
|
|
40
|
-
"./transport:TransportTestFixtures": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.transport.TransportTestFixtures.html",
|
|
41
|
-
"./transport:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.transport.default.html"
|
|
42
|
-
}
|