@libp2p/interface-internal 1.1.1-90cfd25e2 → 1.1.1-998fcaf94
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/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/random-walk/index.d.ts +13 -0
- package/dist/src/random-walk/index.d.ts.map +1 -0
- package/dist/src/random-walk/index.js +2 -0
- package/dist/src/random-walk/index.js.map +1 -0
- package/package.json +3 -3
- package/src/index.ts +1 -0
- package/src/random-walk/index.ts +13 -0
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
package/dist/src/index.js
CHANGED
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AbortOptions, PeerInfo } from '@libp2p/interface';
|
|
2
|
+
/**
|
|
3
|
+
* RandomWalk finds random peers on the network and dials them. Use this after
|
|
4
|
+
* registering a Topology if you need to discover common network services.
|
|
5
|
+
*/
|
|
6
|
+
export interface RandomWalk {
|
|
7
|
+
/**
|
|
8
|
+
* Begin or join an existing walk. Abort the passed signal if you wish to
|
|
9
|
+
* abort the walk early.
|
|
10
|
+
*/
|
|
11
|
+
walk(options?: AbortOptions): AsyncGenerator<PeerInfo>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/random-walk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE/D;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;CACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/random-walk/index.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-internal",
|
|
3
|
-
"version": "1.1.1-
|
|
3
|
+
"version": "1.1.1-998fcaf94",
|
|
4
4
|
"description": "Interfaces implemented by internal libp2p components",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-internal#readme",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"build": "aegir build"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@libp2p/interface": "1.3.0-
|
|
52
|
-
"@libp2p/peer-collections": "5.1.11-
|
|
51
|
+
"@libp2p/interface": "1.3.0-998fcaf94",
|
|
52
|
+
"@libp2p/peer-collections": "5.1.11-998fcaf94",
|
|
53
53
|
"@multiformats/multiaddr": "^12.2.1",
|
|
54
54
|
"uint8arraylist": "^2.4.8"
|
|
55
55
|
},
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AbortOptions, PeerInfo } from '@libp2p/interface'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* RandomWalk finds random peers on the network and dials them. Use this after
|
|
5
|
+
* registering a Topology if you need to discover common network services.
|
|
6
|
+
*/
|
|
7
|
+
export interface RandomWalk {
|
|
8
|
+
/**
|
|
9
|
+
* Begin or join an existing walk. Abort the passed signal if you wish to
|
|
10
|
+
* abort the walk early.
|
|
11
|
+
*/
|
|
12
|
+
walk(options?: AbortOptions): AsyncGenerator<PeerInfo>
|
|
13
|
+
}
|