@libp2p/interface-compliance-tests 6.3.6 → 6.3.7-dd71d8a86
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":"upgrader.d.ts","sourceRoot":"","sources":["../../../src/mocks/upgrader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmC,gBAAgB,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"upgrader.d.ts","sourceRoot":"","sources":["../../../src/mocks/upgrader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmC,gBAAgB,EAAE,QAAQ,EAA6E,MAAM,mBAAmB,CAAA;AAC7L,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;CACxC;AAoDD,wBAAgB,YAAY,CAAE,IAAI,GAAE,gBAAqB,GAAG,QAAQ,CAEnE"}
|
|
@@ -33,6 +33,12 @@ class MockUpgrader {
|
|
|
33
33
|
setMaxListeners(Infinity, output);
|
|
34
34
|
return output;
|
|
35
35
|
}
|
|
36
|
+
getConnectionEncrypters() {
|
|
37
|
+
return new Map();
|
|
38
|
+
}
|
|
39
|
+
getStreamMuxers() {
|
|
40
|
+
return new Map();
|
|
41
|
+
}
|
|
36
42
|
}
|
|
37
43
|
export function mockUpgrader(init = {}) {
|
|
38
44
|
return new MockUpgrader(init);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrader.js","sourceRoot":"","sources":["../../../src/mocks/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OA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,CAAA;QAEjC,OAAO,MAAM,CAAA;IACf,CAAC;IAED,uBAAuB;QACrB,OAAO,IAAI,GAAG,EAAE,CAAA;IAClB,CAAC;IAED,eAAe;QACb,OAAO,IAAI,GAAG,EAAE,CAAA;IAClB,CAAC;CACF;AAED,MAAM,UAAU,YAAY,CAAE,OAAyB,EAAE;IACvD,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-compliance-tests",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.7-dd71d8a86",
|
|
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",
|
|
@@ -104,17 +104,17 @@
|
|
|
104
104
|
"test:electron-main": "aegir test -t electron-main"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@libp2p/crypto": "
|
|
108
|
-
"@libp2p/echo": "
|
|
109
|
-
"@libp2p/interface": "
|
|
110
|
-
"@libp2p/interface-internal": "
|
|
111
|
-
"@libp2p/logger": "
|
|
112
|
-
"@libp2p/memory": "
|
|
113
|
-
"@libp2p/multistream-select": "
|
|
114
|
-
"@libp2p/peer-collections": "
|
|
115
|
-
"@libp2p/peer-id": "
|
|
116
|
-
"@libp2p/plaintext": "
|
|
117
|
-
"@libp2p/utils": "
|
|
107
|
+
"@libp2p/crypto": "5.0.14-dd71d8a86",
|
|
108
|
+
"@libp2p/echo": "2.1.15-dd71d8a86",
|
|
109
|
+
"@libp2p/interface": "2.6.1-dd71d8a86",
|
|
110
|
+
"@libp2p/interface-internal": "2.3.6-dd71d8a86",
|
|
111
|
+
"@libp2p/logger": "5.1.11-dd71d8a86",
|
|
112
|
+
"@libp2p/memory": "1.1.2-dd71d8a86",
|
|
113
|
+
"@libp2p/multistream-select": "6.0.18-dd71d8a86",
|
|
114
|
+
"@libp2p/peer-collections": "6.0.22-dd71d8a86",
|
|
115
|
+
"@libp2p/peer-id": "5.0.15-dd71d8a86",
|
|
116
|
+
"@libp2p/plaintext": "2.0.18-dd71d8a86",
|
|
117
|
+
"@libp2p/utils": "6.5.6-dd71d8a86",
|
|
118
118
|
"@multiformats/multiaddr": "^12.3.3",
|
|
119
119
|
"@multiformats/multiaddr-matcher": "^1.6.0",
|
|
120
120
|
"abortable-iterator": "^5.1.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"it-pushable": "^3.2.3",
|
|
133
133
|
"it-stream-types": "^2.0.2",
|
|
134
134
|
"it-to-buffer": "^4.0.7",
|
|
135
|
-
"libp2p": "
|
|
135
|
+
"libp2p": "2.7.5-dd71d8a86",
|
|
136
136
|
"merge-options": "^3.0.4",
|
|
137
137
|
"p-defer": "^4.0.1",
|
|
138
138
|
"p-event": "^6.0.1",
|
package/src/mocks/upgrader.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setMaxListeners } from '@libp2p/interface'
|
|
2
2
|
import { anySignal } from 'any-signal'
|
|
3
3
|
import { mockConnection } from './connection.js'
|
|
4
|
-
import type { Libp2pEvents, Connection, MultiaddrConnection, TypedEventTarget, Upgrader, UpgraderOptions, ClearableSignal } from '@libp2p/interface'
|
|
4
|
+
import type { Libp2pEvents, Connection, MultiaddrConnection, TypedEventTarget, Upgrader, UpgraderOptions, ClearableSignal, ConnectionEncrypter, StreamMuxerFactory } from '@libp2p/interface'
|
|
5
5
|
import type { Registrar } from '@libp2p/interface-internal'
|
|
6
6
|
|
|
7
7
|
export interface MockUpgraderInit {
|
|
@@ -49,6 +49,14 @@ class MockUpgrader implements Upgrader {
|
|
|
49
49
|
|
|
50
50
|
return output
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
getConnectionEncrypters (): Map<string, ConnectionEncrypter<unknown>> {
|
|
54
|
+
return new Map()
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
getStreamMuxers (): Map<string, StreamMuxerFactory> {
|
|
58
|
+
return new Map()
|
|
59
|
+
}
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
export function mockUpgrader (init: MockUpgraderInit = {}): Upgrader {
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ConnectionEncrypterSetupArgs": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.connection_encryption.ConnectionEncrypterSetupArgs.html",
|
|
3
|
-
"./connection-encryption:ConnectionEncrypterSetupArgs": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.connection_encryption.ConnectionEncrypterSetupArgs.html",
|
|
4
|
-
"default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.connection_encryption.default.html",
|
|
5
|
-
"./connection-encryption:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.connection_encryption.default.html",
|
|
6
|
-
"TestSetup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.index.TestSetup.html",
|
|
7
|
-
".:TestSetup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.index.TestSetup.html",
|
|
8
|
-
"isValidTick": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.is_valid_tick.isValidTick.html",
|
|
9
|
-
"./is-valid-tick:isValidTick": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.is_valid_tick.isValidTick.html",
|
|
10
|
-
"matchMultiaddr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchMultiaddr.html",
|
|
11
|
-
"./matchers:matchMultiaddr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchMultiaddr.html",
|
|
12
|
-
"matchPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchPeerId.html",
|
|
13
|
-
"./matchers:matchPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.matchers.matchPeerId.html",
|
|
14
|
-
"MockNetwork": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface_compliance_tests.mocks.MockNetwork.html",
|
|
15
|
-
"MockConnectionManagerComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockConnectionManagerComponents.html",
|
|
16
|
-
"MockConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockConnectionOptions.html",
|
|
17
|
-
"MockMultiaddrConnPairOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockMultiaddrConnPairOptions.html",
|
|
18
|
-
"MockNetworkComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockNetworkComponents.html",
|
|
19
|
-
"MockUpgraderInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.MockUpgraderInit.html",
|
|
20
|
-
"StreamInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.StreamInit.html",
|
|
21
|
-
"StreamPairInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.mocks.StreamPairInit.html",
|
|
22
|
-
"mockNetwork": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface_compliance_tests.mocks.mockNetwork-1.html",
|
|
23
|
-
"connectionPair": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.connectionPair.html",
|
|
24
|
-
"mockConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockConnection.html",
|
|
25
|
-
"mockConnectionManager": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockConnectionManager.html",
|
|
26
|
-
"mockDuplex": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockDuplex.html",
|
|
27
|
-
"mockMultiaddrConnPair": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMultiaddrConnPair.html",
|
|
28
|
-
"mockMultiaddrConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMultiaddrConnection.html",
|
|
29
|
-
"mockMuxer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockMuxer.html",
|
|
30
|
-
"mockRegistrar": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockRegistrar.html",
|
|
31
|
-
"mockStream": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockStream.html",
|
|
32
|
-
"mockUpgrader": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.mockUpgrader.html",
|
|
33
|
-
"streamPair": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.mocks.streamPair.html",
|
|
34
|
-
"./peer-discovery:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.peer_discovery.default.html",
|
|
35
|
-
"PubSubArgs": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubArgs.html",
|
|
36
|
-
"./pubsub:PubSubArgs": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubArgs.html",
|
|
37
|
-
"PubSubComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubComponents.html",
|
|
38
|
-
"./pubsub:PubSubComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.pubsub.PubSubComponents.html",
|
|
39
|
-
"./pubsub:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.pubsub.default.html",
|
|
40
|
-
"./stream-muxer:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.stream_muxer.default.html",
|
|
41
|
-
"TransportTestFixtures": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.transport.TransportTestFixtures.html",
|
|
42
|
-
"./transport:TransportTestFixtures": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_compliance_tests.transport.TransportTestFixtures.html",
|
|
43
|
-
"./transport:default": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface_compliance_tests.transport.default.html"
|
|
44
|
-
}
|