@libp2p/interface-compliance-tests 7.0.16-f60bd85b0 → 7.0.18
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/stream-muxer/close-test.js +1 -1
- package/dist/src/stream-muxer/index.js +4 -4
- package/dist/src/transport/index.js +1 -1
- package/dist/typedoc-urls.json +13 -0
- package/package.json +21 -16
- package/src/stream-muxer/close-test.ts +1 -1
- package/src/stream-muxer/index.ts +4 -4
- package/src/transport/index.ts +1 -1
|
@@ -7,7 +7,7 @@ import map from 'it-map';
|
|
|
7
7
|
import { pEvent } from 'p-event';
|
|
8
8
|
import { Uint8ArrayList } from 'uint8arraylist';
|
|
9
9
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
10
|
-
import { Message } from
|
|
10
|
+
import { Message } from "./fixtures/pb/message.js";
|
|
11
11
|
function randomBuffer() {
|
|
12
12
|
return uint8ArrayFromString(Math.random().toString());
|
|
13
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import baseTest from
|
|
2
|
-
import closeTest from
|
|
3
|
-
import steamTest from
|
|
4
|
-
import stressTest from
|
|
1
|
+
import baseTest from "./base-test.js";
|
|
2
|
+
import closeTest from "./close-test.js";
|
|
3
|
+
import steamTest from "./stream-test.js";
|
|
4
|
+
import stressTest from "./stress-test.js";
|
|
5
5
|
export default (common) => {
|
|
6
6
|
describe('interface-stream-muxer', () => {
|
|
7
7
|
baseTest(common);
|
|
@@ -11,7 +11,7 @@ import pWaitFor from 'p-wait-for';
|
|
|
11
11
|
import { raceSignal } from 'race-signal';
|
|
12
12
|
import { Uint8ArrayList } from 'uint8arraylist';
|
|
13
13
|
import { isValidTick } from '../is-valid-tick.js';
|
|
14
|
-
import { createPeer, getTransportManager, getUpgrader } from
|
|
14
|
+
import { createPeer, getTransportManager, getUpgrader } from "./utils.js";
|
|
15
15
|
async function getSetup(common) {
|
|
16
16
|
const setup = await common.setup();
|
|
17
17
|
const dialer = await createPeer({
|
|
@@ -0,0 +1,13 @@
|
|
|
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/variables/_libp2p_interface-compliance-tests.connection-encryption.default.html",
|
|
5
|
+
"./connection-encryption:default": "https://libp2p.github.io/js-libp2p/variables/_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
|
+
"./peer-discovery:default": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface-compliance-tests.peer-discovery.default.html",
|
|
9
|
+
"./stream-muxer:default": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface-compliance-tests.stream-muxer.default.html",
|
|
10
|
+
"TransportTestFixtures": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-compliance-tests.transport.TransportTestFixtures.html",
|
|
11
|
+
"./transport:TransportTestFixtures": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-compliance-tests.transport.TransportTestFixtures.html",
|
|
12
|
+
"./transport:default": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface-compliance-tests.transport.default.html"
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-compliance-tests",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.18",
|
|
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",
|
|
@@ -46,23 +46,28 @@
|
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|
|
48
48
|
"types": "./dist/src/index.d.ts",
|
|
49
|
-
"import": "./dist/src/index.js"
|
|
49
|
+
"import": "./dist/src/index.js",
|
|
50
|
+
"module-sync": "./dist/src/index.js"
|
|
50
51
|
},
|
|
51
52
|
"./connection-encryption": {
|
|
52
53
|
"types": "./dist/src/connection-encryption/index.d.ts",
|
|
53
|
-
"import": "./dist/src/connection-encryption/index.js"
|
|
54
|
+
"import": "./dist/src/connection-encryption/index.js",
|
|
55
|
+
"module-sync": "./dist/src/connection-encryption/index.js"
|
|
54
56
|
},
|
|
55
57
|
"./peer-discovery": {
|
|
56
58
|
"types": "./dist/src/peer-discovery/index.d.ts",
|
|
57
|
-
"import": "./dist/src/peer-discovery/index.js"
|
|
59
|
+
"import": "./dist/src/peer-discovery/index.js",
|
|
60
|
+
"module-sync": "./dist/src/peer-discovery/index.js"
|
|
58
61
|
},
|
|
59
62
|
"./stream-muxer": {
|
|
60
63
|
"types": "./dist/src/stream-muxer/index.d.ts",
|
|
61
|
-
"import": "./dist/src/stream-muxer/index.js"
|
|
64
|
+
"import": "./dist/src/stream-muxer/index.js",
|
|
65
|
+
"module-sync": "./dist/src/stream-muxer/index.js"
|
|
62
66
|
},
|
|
63
67
|
"./transport": {
|
|
64
68
|
"types": "./dist/src/transport/index.d.ts",
|
|
65
|
-
"import": "./dist/src/transport/index.js"
|
|
69
|
+
"import": "./dist/src/transport/index.js",
|
|
70
|
+
"module-sync": "./dist/src/transport/index.js"
|
|
66
71
|
}
|
|
67
72
|
},
|
|
68
73
|
"scripts": {
|
|
@@ -81,15 +86,15 @@
|
|
|
81
86
|
"test:electron-main": "aegir test -t electron-main"
|
|
82
87
|
},
|
|
83
88
|
"dependencies": {
|
|
84
|
-
"@libp2p/crypto": "5.1.
|
|
85
|
-
"@libp2p/echo": "3.1.
|
|
86
|
-
"@libp2p/interface": "3.2.
|
|
87
|
-
"@libp2p/interface-internal": "3.1.
|
|
88
|
-
"@libp2p/logger": "6.2.
|
|
89
|
-
"@libp2p/memory": "2.0.
|
|
90
|
-
"@libp2p/peer-id": "6.0.
|
|
91
|
-
"@libp2p/plaintext": "3.0.
|
|
92
|
-
"@libp2p/utils": "7.0.
|
|
89
|
+
"@libp2p/crypto": "^5.1.17",
|
|
90
|
+
"@libp2p/echo": "^3.1.2",
|
|
91
|
+
"@libp2p/interface": "^3.2.2",
|
|
92
|
+
"@libp2p/interface-internal": "^3.1.2",
|
|
93
|
+
"@libp2p/logger": "^6.2.6",
|
|
94
|
+
"@libp2p/memory": "^2.0.17",
|
|
95
|
+
"@libp2p/peer-id": "^6.0.8",
|
|
96
|
+
"@libp2p/plaintext": "^3.0.17",
|
|
97
|
+
"@libp2p/utils": "^7.0.17",
|
|
93
98
|
"@multiformats/multiaddr": "^13.0.1",
|
|
94
99
|
"@multiformats/multiaddr-matcher": "^3.0.1",
|
|
95
100
|
"aegir": "^47.0.22",
|
|
@@ -99,7 +104,7 @@
|
|
|
99
104
|
"it-map": "^3.1.4",
|
|
100
105
|
"it-pushable": "^3.2.3",
|
|
101
106
|
"it-to-buffer": "^4.0.10",
|
|
102
|
-
"libp2p": "3.2.
|
|
107
|
+
"libp2p": "^3.2.2",
|
|
103
108
|
"p-defer": "^4.0.1",
|
|
104
109
|
"p-event": "^7.0.0",
|
|
105
110
|
"p-retry": "^8.0.0",
|
|
@@ -7,7 +7,7 @@ import map from 'it-map'
|
|
|
7
7
|
import { pEvent } from 'p-event'
|
|
8
8
|
import { Uint8ArrayList } from 'uint8arraylist'
|
|
9
9
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
10
|
-
import { Message } from './fixtures/pb/message.
|
|
10
|
+
import { Message } from './fixtures/pb/message.ts'
|
|
11
11
|
import type { TestSetup } from '../index.js'
|
|
12
12
|
import type { MultiaddrConnection, Stream, StreamCloseEvent, StreamMuxer, StreamMuxerFactory } from '@libp2p/interface'
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import baseTest from './base-test.
|
|
2
|
-
import closeTest from './close-test.
|
|
3
|
-
import steamTest from './stream-test.
|
|
4
|
-
import stressTest from './stress-test.
|
|
1
|
+
import baseTest from './base-test.ts'
|
|
2
|
+
import closeTest from './close-test.ts'
|
|
3
|
+
import steamTest from './stream-test.ts'
|
|
4
|
+
import stressTest from './stress-test.ts'
|
|
5
5
|
import type { TestSetup } from '../index.js'
|
|
6
6
|
import type { StreamMuxerFactory } from '@libp2p/interface'
|
|
7
7
|
|
package/src/transport/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import pWaitFor from 'p-wait-for'
|
|
|
11
11
|
import { raceSignal } from 'race-signal'
|
|
12
12
|
import { Uint8ArrayList } from 'uint8arraylist'
|
|
13
13
|
import { isValidTick } from '../is-valid-tick.js'
|
|
14
|
-
import { createPeer, getTransportManager, getUpgrader } from './utils.
|
|
14
|
+
import { createPeer, getTransportManager, getUpgrader } from './utils.ts'
|
|
15
15
|
import type { TestSetup } from '../index.js'
|
|
16
16
|
import type { Echo } from '@libp2p/echo'
|
|
17
17
|
import type { Connection, Libp2p, Stream, StreamHandler } from '@libp2p/interface'
|