@libp2p/pubsub 8.0.7 → 8.0.8-346ff5a2
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 -30
- package/dist/index.min.js +9 -9
- package/dist/src/index.d.ts +16 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +20 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/peer-streams.d.ts +2 -2
- package/dist/src/peer-streams.d.ts.map +1 -1
- package/dist/src/peer-streams.js +2 -2
- package/dist/src/peer-streams.js.map +1 -1
- package/package.json +9 -9
- package/src/index.ts +22 -2
- package/src/peer-streams.ts +2 -2
- package/dist/typedoc-urls.json +0 -30
package/README.md
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# @libp2p/pubsub <!-- omit in toc -->
|
2
|
-
|
3
1
|
[](http://libp2p.io/)
|
4
2
|
[](https://discuss.libp2p.io)
|
5
3
|
[](https://codecov.io/gh/libp2p/js-libp2p)
|
@@ -7,22 +5,13 @@
|
|
7
5
|
|
8
6
|
> libp2p pubsub base class
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
- [Install](#install)
|
13
|
-
- [Browser `<script>` tag](#browser-script-tag)
|
14
|
-
- [Usage](#usage)
|
15
|
-
- [API Docs](#api-docs)
|
16
|
-
- [License](#license)
|
17
|
-
- [Contribution](#contribution)
|
18
|
-
|
19
|
-
## Install
|
8
|
+
# Install
|
20
9
|
|
21
10
|
```console
|
22
11
|
$ npm i @libp2p/pubsub
|
23
12
|
```
|
24
13
|
|
25
|
-
|
14
|
+
## Browser `<script>` tag
|
26
15
|
|
27
16
|
Loading this module through a script tag will make it's exports available as `Libp2pPubsub` in the global namespace.
|
28
17
|
|
@@ -30,31 +19,17 @@ Loading this module through a script tag will make it's exports available as `Li
|
|
30
19
|
<script src="https://unpkg.com/@libp2p/pubsub/dist/index.min.js"></script>
|
31
20
|
```
|
32
21
|
|
33
|
-
|
34
|
-
|
35
|
-
```console
|
36
|
-
npm i @libp2p/pubsub
|
37
|
-
```
|
38
|
-
|
39
|
-
```javascript
|
40
|
-
import { PubSubBaseProtocol } from '@libp2p/pubsub'
|
41
|
-
|
42
|
-
class MyPubsubImplementation extends PubSubBaseProtocol {
|
43
|
-
// .. extra methods here
|
44
|
-
}
|
45
|
-
```
|
46
|
-
|
47
|
-
## API Docs
|
22
|
+
# API Docs
|
48
23
|
|
49
24
|
- <https://libp2p.github.io/js-libp2p/modules/_libp2p_pubsub.html>
|
50
25
|
|
51
|
-
|
26
|
+
# License
|
52
27
|
|
53
28
|
Licensed under either of
|
54
29
|
|
55
30
|
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
56
31
|
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
57
32
|
|
58
|
-
|
33
|
+
# Contribution
|
59
34
|
|
60
35
|
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
|