@libp2p/bootstrap 10.0.7 → 10.0.8-83dfc7dc8
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/README.md +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/package.json +5 -5
- package/src/index.ts +2 -2
- package/dist/typedoc-urls.json +0 -8
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ They will be tagged with a tag with the name `'bootstrap'` tag, the value `50` a
|
|
|
13
13
|
|
|
14
14
|
Clients that need constant connections to bootstrap nodes (e.g. browsers) can set the TTL to `Infinity`.
|
|
15
15
|
|
|
16
|
-
```
|
|
16
|
+
```TypeScript
|
|
17
17
|
import { createLibp2p } from 'libp2p'
|
|
18
18
|
import { bootstrap } from '@libp2p/bootstrap'
|
|
19
19
|
import { tcp } from 'libp2p/tcp'
|
|
@@ -48,7 +48,7 @@ let options = {
|
|
|
48
48
|
const libp2p = await createLibp2p(options)
|
|
49
49
|
|
|
50
50
|
libp2p.on('peer:discovery', function (peerId) {
|
|
51
|
-
console.
|
|
51
|
+
console.log('found peer: ', peerId.toB58String())
|
|
52
52
|
})
|
|
53
53
|
```
|
|
54
54
|
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Clients that need constant connections to bootstrap nodes (e.g. browsers) can set the TTL to `Infinity`.
|
|
9
9
|
*
|
|
10
|
-
* ```
|
|
10
|
+
* ```TypeScript
|
|
11
11
|
* import { createLibp2p } from 'libp2p'
|
|
12
12
|
* import { bootstrap } from '@libp2p/bootstrap'
|
|
13
13
|
* import { tcp } from 'libp2p/tcp'
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* const libp2p = await createLibp2p(options)
|
|
43
43
|
*
|
|
44
44
|
* libp2p.on('peer:discovery', function (peerId) {
|
|
45
|
-
* console.
|
|
45
|
+
* console.log('found peer: ', peerId.toB58String())
|
|
46
46
|
* })
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
package/dist/src/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Clients that need constant connections to bootstrap nodes (e.g. browsers) can set the TTL to `Infinity`.
|
|
9
9
|
*
|
|
10
|
-
* ```
|
|
10
|
+
* ```TypeScript
|
|
11
11
|
* import { createLibp2p } from 'libp2p'
|
|
12
12
|
* import { bootstrap } from '@libp2p/bootstrap'
|
|
13
13
|
* import { tcp } from 'libp2p/tcp'
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* const libp2p = await createLibp2p(options)
|
|
43
43
|
*
|
|
44
44
|
* libp2p.on('peer:discovery', function (peerId) {
|
|
45
|
-
* console.
|
|
45
|
+
* console.log('found peer: ', peerId.toB58String())
|
|
46
46
|
* })
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/bootstrap",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.8-83dfc7dc8",
|
|
4
4
|
"description": "Peer discovery via a list of bootstrap peers",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-bootstrap#readme",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"test:electron-main": "aegir test -t electron-main"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@libp2p/interface": "
|
|
57
|
-
"@libp2p/peer-id": "
|
|
56
|
+
"@libp2p/interface": "1.0.2-83dfc7dc8",
|
|
57
|
+
"@libp2p/peer-id": "4.0.2-83dfc7dc8",
|
|
58
58
|
"@multiformats/mafmt": "^12.1.6",
|
|
59
59
|
"@multiformats/multiaddr": "^12.1.10"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@libp2p/interface-compliance-tests": "
|
|
63
|
-
"@libp2p/logger": "
|
|
62
|
+
"@libp2p/interface-compliance-tests": "5.0.8-83dfc7dc8",
|
|
63
|
+
"@libp2p/logger": "4.0.2-83dfc7dc8",
|
|
64
64
|
"aegir": "^41.0.2",
|
|
65
65
|
"sinon-ts": "^2.0.0"
|
|
66
66
|
}
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Clients that need constant connections to bootstrap nodes (e.g. browsers) can set the TTL to `Infinity`.
|
|
9
9
|
*
|
|
10
|
-
* ```
|
|
10
|
+
* ```TypeScript
|
|
11
11
|
* import { createLibp2p } from 'libp2p'
|
|
12
12
|
* import { bootstrap } from '@libp2p/bootstrap'
|
|
13
13
|
* import { tcp } from 'libp2p/tcp'
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* const libp2p = await createLibp2p(options)
|
|
43
43
|
*
|
|
44
44
|
* libp2p.on('peer:discovery', function (peerId) {
|
|
45
|
-
* console.
|
|
45
|
+
* console.log('found peer: ', peerId.toB58String())
|
|
46
46
|
* })
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"BootstrapComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_bootstrap.BootstrapComponents.html",
|
|
3
|
-
".:BootstrapComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_bootstrap.BootstrapComponents.html",
|
|
4
|
-
"BootstrapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_bootstrap.BootstrapInit.html",
|
|
5
|
-
".:BootstrapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_bootstrap.BootstrapInit.html",
|
|
6
|
-
"bootstrap": "https://libp2p.github.io/js-libp2p/functions/_libp2p_bootstrap.bootstrap.html",
|
|
7
|
-
".:bootstrap": "https://libp2p.github.io/js-libp2p/functions/_libp2p_bootstrap.bootstrap.html"
|
|
8
|
-
}
|