@libp2p/interop 14.0.17 → 14.0.19-7cea7b9a5
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/dht/index.js +3 -3
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.js +5 -5
- package/dist/src/pubsub/floodsub.js +1 -1
- package/dist/src/pubsub/gossipsub.js +1 -1
- package/dist/src/pubsub/hybrid.js +1 -1
- package/dist/src/pubsub/index.js +3 -3
- package/dist/src/relay/index.js +2 -2
- package/dist/src/relay/util.d.ts +1 -1
- package/dist/src/relay/util.js +1 -1
- package/dist/src/streams/index.js +1 -1
- package/package.json +7 -6
- package/src/dht/index.ts +3 -3
- package/src/index.ts +5 -5
- package/src/pubsub/floodsub.ts +1 -1
- package/src/pubsub/gossipsub.ts +1 -1
- package/src/pubsub/hybrid.ts +1 -1
- package/src/pubsub/index.ts +3 -3
- package/src/relay/index.ts +2 -2
- package/src/relay/util.ts +1 -1
- package/src/streams/index.ts +1 -1
- package/dist/typedoc-urls.json +0 -29
package/dist/src/dht/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { contentFetchingTests } from
|
|
2
|
-
import { contentRoutingTests } from
|
|
3
|
-
import { peerRoutingTests } from
|
|
1
|
+
import { contentFetchingTests } from "./content-fetching.js";
|
|
2
|
+
import { contentRoutingTests } from "./content-routing.js";
|
|
3
|
+
import { peerRoutingTests } from "./peer-routing.js";
|
|
4
4
|
export async function dhtTests(factory) {
|
|
5
5
|
contentFetchingTests(factory);
|
|
6
6
|
contentRoutingTests(factory);
|
package/dist/src/index.d.ts
CHANGED
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
*
|
|
42
42
|
* For an example, see the js-libp2p interop test runner.
|
|
43
43
|
*/
|
|
44
|
-
import { connectTests } from './connect/index.
|
|
45
|
-
import { dhtTests } from './dht/index.
|
|
46
|
-
import { pubsubTests } from './pubsub/index.
|
|
47
|
-
import { relayTests } from './relay/index.
|
|
48
|
-
import { streamTests } from './streams/index.
|
|
44
|
+
import { connectTests } from './connect/index.ts';
|
|
45
|
+
import { dhtTests } from './dht/index.ts';
|
|
46
|
+
import { pubsubTests } from './pubsub/index.ts';
|
|
47
|
+
import { relayTests } from './relay/index.ts';
|
|
48
|
+
import { streamTests } from './streams/index.ts';
|
|
49
49
|
import type { DaemonClient } from '@libp2p/daemon-client';
|
|
50
50
|
export interface Daemon {
|
|
51
51
|
stop(): Promise<void>;
|
package/dist/src/index.js
CHANGED
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
*
|
|
42
42
|
* For an example, see the js-libp2p interop test runner.
|
|
43
43
|
*/
|
|
44
|
-
import { connectTests } from
|
|
45
|
-
import { dhtTests } from
|
|
46
|
-
import { pubsubTests } from
|
|
47
|
-
import { relayTests } from
|
|
48
|
-
import { streamTests } from
|
|
44
|
+
import { connectTests } from "./connect/index.js";
|
|
45
|
+
import { dhtTests } from "./dht/index.js";
|
|
46
|
+
import { pubsubTests } from "./pubsub/index.js";
|
|
47
|
+
import { relayTests } from "./relay/index.js";
|
|
48
|
+
import { streamTests } from "./streams/index.js";
|
|
49
49
|
export async function interopTests(factory) {
|
|
50
50
|
connectTests(factory);
|
|
51
51
|
relayTests(factory);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai';
|
|
2
2
|
import first from 'it-first';
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
4
|
-
import { waitForSubscribed } from
|
|
4
|
+
import { waitForSubscribed } from "./utils.js";
|
|
5
5
|
export function floodsubTests(factory) {
|
|
6
6
|
const nodeTypes = ['js', 'go'];
|
|
7
7
|
for (const typeA of nodeTypes) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai';
|
|
2
2
|
import first from 'it-first';
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
4
|
-
import { waitForSubscribed } from
|
|
4
|
+
import { waitForSubscribed } from "./utils.js";
|
|
5
5
|
export function gossipsubTests(factory) {
|
|
6
6
|
const nodeTypes = ['js', 'go'];
|
|
7
7
|
for (const typeA of nodeTypes) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai';
|
|
2
2
|
import first from 'it-first';
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
4
|
-
import { waitForSubscribed } from
|
|
4
|
+
import { waitForSubscribed } from "./utils.js";
|
|
5
5
|
export function hybridTests(factory) {
|
|
6
6
|
const nodeTypes = ['js', 'go'];
|
|
7
7
|
for (const typeA of nodeTypes) {
|
package/dist/src/pubsub/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { floodsubTests } from
|
|
2
|
-
import { gossipsubTests } from
|
|
3
|
-
import { hybridTests } from
|
|
1
|
+
import { floodsubTests } from "./floodsub.js";
|
|
2
|
+
import { gossipsubTests } from "./gossipsub.js";
|
|
3
|
+
import { hybridTests } from "./hybrid.js";
|
|
4
4
|
export async function pubsubTests(factory) {
|
|
5
5
|
floodsubTests(factory);
|
|
6
6
|
gossipsubTests(factory);
|
package/dist/src/relay/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { lpStream } from '@libp2p/utils';
|
|
|
2
2
|
import { multiaddr } from '@multiformats/multiaddr';
|
|
3
3
|
import { expect } from 'aegir/chai';
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
5
|
-
import { Status } from
|
|
6
|
-
import { echoHandler, reserve } from
|
|
5
|
+
import { Status } from "./pb/index.js";
|
|
6
|
+
import { echoHandler, reserve } from "./util.js";
|
|
7
7
|
export function relayTests(factory) {
|
|
8
8
|
const t = ['go', 'js'];
|
|
9
9
|
t.forEach(a => { t.forEach(b => { t.forEach(r => { relayTest(factory, a, b, r); }); }); });
|
package/dist/src/relay/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HopMessage } from './pb/index.
|
|
1
|
+
import { HopMessage } from './pb/index.ts';
|
|
2
2
|
import type { Daemon } from '../index.js';
|
|
3
3
|
import type { PeerId, Stream } from '@libp2p/interface';
|
|
4
4
|
export declare const reserve: (d: Daemon, peerID: PeerId, message?: Partial<HopMessage>) => Promise<HopMessage>;
|
package/dist/src/relay/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pbStream, echo } from '@libp2p/utils';
|
|
2
|
-
import { HopMessage } from
|
|
2
|
+
import { HopMessage } from "./pb/index.js";
|
|
3
3
|
const RELAY_V2_HOP = '/libp2p/circuit/relay/0.2.0/hop';
|
|
4
4
|
export const reserve = async (d, peerID, message) => {
|
|
5
5
|
const stream = await d.client.openStream(peerID, RELAY_V2_HOP);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interop",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.19-7cea7b9a5",
|
|
4
4
|
"description": "Interoperability Tests for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interop#readme",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./src/index.d.ts",
|
|
32
|
-
"import": "./dist/src/index.js"
|
|
32
|
+
"import": "./dist/src/index.js",
|
|
33
|
+
"module-sync": "./dist/src/index.js"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
@@ -42,15 +43,15 @@
|
|
|
42
43
|
"docs": "aegir docs"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@libp2p/daemon-client": "
|
|
46
|
-
"@libp2p/interface": "
|
|
47
|
-
"@libp2p/utils": "
|
|
46
|
+
"@libp2p/daemon-client": "10.0.19-7cea7b9a5",
|
|
47
|
+
"@libp2p/interface": "3.2.2-7cea7b9a5",
|
|
48
|
+
"@libp2p/utils": "7.0.17-7cea7b9a5",
|
|
48
49
|
"@multiformats/multiaddr": "^13.0.1",
|
|
49
50
|
"delay": "^7.0.0",
|
|
50
51
|
"it-all": "^3.0.9",
|
|
51
52
|
"it-first": "^3.0.9",
|
|
52
53
|
"multiformats": "^13.4.0",
|
|
53
|
-
"p-retry": "^
|
|
54
|
+
"p-retry": "^8.0.0",
|
|
54
55
|
"p-wait-for": "^6.0.0",
|
|
55
56
|
"protons-runtime": "^6.0.1",
|
|
56
57
|
"uint8arraylist": "^2.4.8",
|
package/src/dht/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { contentFetchingTests } from './content-fetching.
|
|
2
|
-
import { contentRoutingTests } from './content-routing.
|
|
3
|
-
import { peerRoutingTests } from './peer-routing.
|
|
1
|
+
import { contentFetchingTests } from './content-fetching.ts'
|
|
2
|
+
import { contentRoutingTests } from './content-routing.ts'
|
|
3
|
+
import { peerRoutingTests } from './peer-routing.ts'
|
|
4
4
|
import type { DaemonFactory } from '../index.js'
|
|
5
5
|
|
|
6
6
|
export async function dhtTests (factory: DaemonFactory): Promise<void> {
|
package/src/index.ts
CHANGED
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
* For an example, see the js-libp2p interop test runner.
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
-
import { connectTests } from './connect/index.
|
|
46
|
-
import { dhtTests } from './dht/index.
|
|
47
|
-
import { pubsubTests } from './pubsub/index.
|
|
48
|
-
import { relayTests } from './relay/index.
|
|
49
|
-
import { streamTests } from './streams/index.
|
|
45
|
+
import { connectTests } from './connect/index.ts'
|
|
46
|
+
import { dhtTests } from './dht/index.ts'
|
|
47
|
+
import { pubsubTests } from './pubsub/index.ts'
|
|
48
|
+
import { relayTests } from './relay/index.ts'
|
|
49
|
+
import { streamTests } from './streams/index.ts'
|
|
50
50
|
import type { DaemonClient } from '@libp2p/daemon-client'
|
|
51
51
|
|
|
52
52
|
export interface Daemon {
|
package/src/pubsub/floodsub.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai'
|
|
2
2
|
import first from 'it-first'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
|
-
import { waitForSubscribed } from './utils.
|
|
4
|
+
import { waitForSubscribed } from './utils.ts'
|
|
5
5
|
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
|
|
6
6
|
|
|
7
7
|
export function floodsubTests (factory: DaemonFactory): void {
|
package/src/pubsub/gossipsub.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai'
|
|
2
2
|
import first from 'it-first'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
|
-
import { waitForSubscribed } from './utils.
|
|
4
|
+
import { waitForSubscribed } from './utils.ts'
|
|
5
5
|
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
|
|
6
6
|
|
|
7
7
|
export function gossipsubTests (factory: DaemonFactory): void {
|
package/src/pubsub/hybrid.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai'
|
|
2
2
|
import first from 'it-first'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
|
-
import { waitForSubscribed } from './utils.
|
|
4
|
+
import { waitForSubscribed } from './utils.ts'
|
|
5
5
|
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
|
|
6
6
|
|
|
7
7
|
export function hybridTests (factory: DaemonFactory): void {
|
package/src/pubsub/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { floodsubTests } from './floodsub.
|
|
2
|
-
import { gossipsubTests } from './gossipsub.
|
|
3
|
-
import { hybridTests } from './hybrid.
|
|
1
|
+
import { floodsubTests } from './floodsub.ts'
|
|
2
|
+
import { gossipsubTests } from './gossipsub.ts'
|
|
3
|
+
import { hybridTests } from './hybrid.ts'
|
|
4
4
|
import type { DaemonFactory } from '../index.js'
|
|
5
5
|
|
|
6
6
|
export async function pubsubTests (factory: DaemonFactory): Promise<void> {
|
package/src/relay/index.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { lpStream } from '@libp2p/utils'
|
|
|
2
2
|
import { multiaddr } from '@multiformats/multiaddr'
|
|
3
3
|
import { expect } from 'aegir/chai'
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
5
|
-
import { Status } from './pb/index.
|
|
6
|
-
import { echoHandler, reserve } from './util.
|
|
5
|
+
import { Status } from './pb/index.ts'
|
|
6
|
+
import { echoHandler, reserve } from './util.ts'
|
|
7
7
|
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
|
|
8
8
|
import type { IdentifyResult } from '@libp2p/daemon-client'
|
|
9
9
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
package/src/relay/util.ts
CHANGED
package/src/streams/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { runTests } from '../utils/test-matrix.js'
|
|
2
|
-
import { echoStreamTests } from './echo.
|
|
2
|
+
import { echoStreamTests } from './echo.ts'
|
|
3
3
|
import type { DaemonFactory } from '../index.js'
|
|
4
4
|
|
|
5
5
|
export async function streamTests (factory: DaemonFactory): Promise<void> {
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"UnsupportedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interop.UnsupportedError.html",
|
|
3
|
-
".:UnsupportedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interop.UnsupportedError.html",
|
|
4
|
-
"Daemon": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interop.Daemon.html",
|
|
5
|
-
".:Daemon": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interop.Daemon.html",
|
|
6
|
-
"DaemonFactory": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interop.DaemonFactory.html",
|
|
7
|
-
".:DaemonFactory": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interop.DaemonFactory.html",
|
|
8
|
-
"SpawnOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interop.SpawnOptions.html",
|
|
9
|
-
".:SpawnOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interop.SpawnOptions.html",
|
|
10
|
-
"Encryption": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.Encryption.html",
|
|
11
|
-
".:Encryption": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.Encryption.html",
|
|
12
|
-
"Muxer": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.Muxer.html",
|
|
13
|
-
".:Muxer": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.Muxer.html",
|
|
14
|
-
"NodeType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.NodeType.html",
|
|
15
|
-
".:NodeType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.NodeType.html",
|
|
16
|
-
"PeerIdType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.PeerIdType.html",
|
|
17
|
-
".:PeerIdType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.PeerIdType.html",
|
|
18
|
-
"PubSubRouter": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.PubSubRouter.html",
|
|
19
|
-
".:PubSubRouter": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.PubSubRouter.html",
|
|
20
|
-
"TransportType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.TransportType.html",
|
|
21
|
-
".:TransportType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interop.TransportType.html",
|
|
22
|
-
"connectInteropTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.connectInteropTests.html",
|
|
23
|
-
"dhtInteropTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.dhtInteropTests.html",
|
|
24
|
-
"interopTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.interopTests.html",
|
|
25
|
-
".:interopTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.interopTests.html",
|
|
26
|
-
"pubsubInteropTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.pubsubInteropTests.html",
|
|
27
|
-
"relayInteropTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.relayInteropTests.html",
|
|
28
|
-
"streamInteropTests": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interop.streamInteropTests.html"
|
|
29
|
-
}
|