@libp2p/gossipsub 15.0.23-d59c165ac → 15.0.23-ed1ad1f26
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 +5 -6
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +2 -2
- package/dist/src/gossipsub.d.ts +1 -1
- package/dist/src/gossipsub.d.ts.map +1 -1
- package/dist/src/gossipsub.js +1 -1
- package/dist/src/gossipsub.js.map +1 -1
- package/package.json +9 -9
- package/src/gossipsub.ts +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @libp2p/gossipsub
|
|
2
2
|
|
|
3
|
-
[](https://chainsafe.io/)
|
|
4
3
|

|
|
5
4
|

|
|
6
5
|
|
|
7
6
|
## Table of Contents
|
|
8
7
|
|
|
9
|
-
- [
|
|
8
|
+
- [@libp2p/gossipsub](#libp2pgossipsub)
|
|
10
9
|
- [Lead Maintainer](#lead-maintainer)
|
|
11
10
|
- [Table of Contents](#table-of-contents)
|
|
12
11
|
- [Specs](#specs)
|
|
@@ -21,16 +20,16 @@
|
|
|
21
20
|
|
|
22
21
|
Gossipsub is an implementation of pubsub based on meshsub and floodsub. You can read the specification [here](https://github.com/libp2p/specs/tree/master/pubsub/gossipsub).
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
`@libp2p/gossipsub` currently implements the [`v1.1`](https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md) of the spec.
|
|
25
24
|
|
|
26
25
|
## Install
|
|
27
26
|
|
|
28
|
-
`npm install @
|
|
27
|
+
`npm install @libp2p/gossipsub`
|
|
29
28
|
|
|
30
29
|
## Usage
|
|
31
30
|
|
|
32
31
|
```javascript
|
|
33
|
-
import { gossipsub } from '@
|
|
32
|
+
import { gossipsub } from '@libp2p/gossipsub'
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
const libp2p = await createLibp2p({
|