@libp2p/pubsub 4.0.1 → 5.0.1
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 +17 -3
- package/dist/index.min.js +16 -0
- package/dist/src/index.d.ts +9 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +10 -14
- package/dist/src/index.js.map +1 -1
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/typedoc-urls.json +16 -0
- package/package.json +9 -9
- package/src/index.ts +18 -17
package/README.md
CHANGED
@@ -3,16 +3,18 @@
|
|
3
3
|
[](http://libp2p.io/)
|
4
4
|
[](https://discuss.libp2p.io)
|
5
5
|
[](https://codecov.io/gh/libp2p/js-libp2p-pubsub)
|
6
|
-
[](https://github.com/libp2p/js-libp2p-pubsub/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
|
7
7
|
|
8
8
|
> libp2p pubsub base class
|
9
9
|
|
10
10
|
## Table of contents <!-- omit in toc -->
|
11
11
|
|
12
12
|
- [Install](#install)
|
13
|
+
- [Browser `<script>` tag](#browser-script-tag)
|
13
14
|
- [Usage](#usage)
|
15
|
+
- [API Docs](#api-docs)
|
14
16
|
- [License](#license)
|
15
|
-
- [
|
17
|
+
- [Contribution](#contribution)
|
16
18
|
|
17
19
|
## Install
|
18
20
|
|
@@ -20,6 +22,14 @@
|
|
20
22
|
$ npm i @libp2p/pubsub
|
21
23
|
```
|
22
24
|
|
25
|
+
### Browser `<script>` tag
|
26
|
+
|
27
|
+
Loading this module through a script tag will make it's exports available as `Libp2pPubsub` in the global namespace.
|
28
|
+
|
29
|
+
```html
|
30
|
+
<script src="https://unpkg.com/@libp2p/pubsub/dist/index.min.js"></script>
|
31
|
+
```
|
32
|
+
|
23
33
|
## Usage
|
24
34
|
|
25
35
|
```console
|
@@ -34,6 +44,10 @@ class MyPubsubImplementation extends PubSubBaseProtocol {
|
|
34
44
|
}
|
35
45
|
```
|
36
46
|
|
47
|
+
## API Docs
|
48
|
+
|
49
|
+
- <https://libp2p.github.io/js-libp2p-pubsub>
|
50
|
+
|
37
51
|
## License
|
38
52
|
|
39
53
|
Licensed under either of
|
@@ -41,6 +55,6 @@ Licensed under either of
|
|
41
55
|
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
42
56
|
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
43
57
|
|
44
|
-
##
|
58
|
+
## Contribution
|
45
59
|
|
46
60
|
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.
|