@libp2p/multistream-select 5.1.3 → 5.1.4-f71bc49bd
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 -0
- package/dist/src/handle.d.ts +1 -1
- package/dist/src/handle.js +1 -1
- package/dist/src/select.d.ts +1 -1
- package/dist/src/select.js +1 -1
- package/package.json +6 -5
- package/src/handle.ts +1 -1
- package/src/select.ts +1 -1
- package/dist/typedoc-urls.json +0 -9
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# @libp2p/multistream-select
|
|
2
|
+
|
|
1
3
|
[](http://libp2p.io/)
|
|
2
4
|
[](https://discuss.libp2p.io)
|
|
3
5
|
[](https://codecov.io/gh/libp2p/js-libp2p)
|
|
@@ -7,6 +9,21 @@
|
|
|
7
9
|
|
|
8
10
|
# About
|
|
9
11
|
|
|
12
|
+
<!--
|
|
13
|
+
|
|
14
|
+
!IMPORTANT!
|
|
15
|
+
|
|
16
|
+
Everything in this README between "# About" and "# Install" is automatically
|
|
17
|
+
generated and will be overwritten the next time the doc generator is run.
|
|
18
|
+
|
|
19
|
+
To make changes to this section, please update the @packageDocumentation section
|
|
20
|
+
of src/index.js or src/index.ts
|
|
21
|
+
|
|
22
|
+
To experiment with formatting, please run "npm run docs" from the root of this
|
|
23
|
+
repo and examine the changes made.
|
|
24
|
+
|
|
25
|
+
-->
|
|
26
|
+
|
|
10
27
|
multistream-select is protocol multiplexing per connection/stream. [Full spec here](https://github.com/multiformats/multistream-select)
|
|
11
28
|
|
|
12
29
|
## Select a protocol flow
|
package/dist/src/handle.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { Duplex } from 'it-stream-types';
|
|
|
11
11
|
* @returns A stream for the selected protocol and the protocol that was selected from the list of protocols provided to `select`
|
|
12
12
|
* @example
|
|
13
13
|
*
|
|
14
|
-
* ```
|
|
14
|
+
* ```TypeScript
|
|
15
15
|
* import { pipe } from 'it-pipe'
|
|
16
16
|
* import * as mss from '@libp2p/multistream-select'
|
|
17
17
|
* import { Mplex } from '@libp2p/mplex'
|
package/dist/src/handle.js
CHANGED
|
@@ -15,7 +15,7 @@ import * as multistream from './multistream.js';
|
|
|
15
15
|
* @returns A stream for the selected protocol and the protocol that was selected from the list of protocols provided to `select`
|
|
16
16
|
* @example
|
|
17
17
|
*
|
|
18
|
-
* ```
|
|
18
|
+
* ```TypeScript
|
|
19
19
|
* import { pipe } from 'it-pipe'
|
|
20
20
|
* import * as mss from '@libp2p/multistream-select'
|
|
21
21
|
* import { Mplex } from '@libp2p/mplex'
|
package/dist/src/select.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface SelectStream extends Duplex<any, any, any> {
|
|
|
16
16
|
* @returns A stream for the selected protocol and the protocol that was selected from the list of protocols provided to `select`.
|
|
17
17
|
* @example
|
|
18
18
|
*
|
|
19
|
-
* ```
|
|
19
|
+
* ```TypeScript
|
|
20
20
|
* import { pipe } from 'it-pipe'
|
|
21
21
|
* import * as mss from '@libp2p/multistream-select'
|
|
22
22
|
* import { Mplex } from '@libp2p/mplex'
|
package/dist/src/select.js
CHANGED
|
@@ -17,7 +17,7 @@ import { PROTOCOL_ID } from './index.js';
|
|
|
17
17
|
* @returns A stream for the selected protocol and the protocol that was selected from the list of protocols provided to `select`.
|
|
18
18
|
* @example
|
|
19
19
|
*
|
|
20
|
-
* ```
|
|
20
|
+
* ```TypeScript
|
|
21
21
|
* import { pipe } from 'it-pipe'
|
|
22
22
|
* import * as mss from '@libp2p/multistream-select'
|
|
23
23
|
* import { Mplex } from '@libp2p/mplex'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/multistream-select",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4-f71bc49bd",
|
|
4
4
|
"description": "JavaScript implementation of multistream-select",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/multistream-select#readme",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"clean": "aegir clean",
|
|
48
48
|
"lint": "aegir lint",
|
|
49
49
|
"dep-check": "aegir dep-check",
|
|
50
|
+
"doc-check": "aegir doc-check",
|
|
50
51
|
"build": "aegir build",
|
|
51
52
|
"test": "aegir test",
|
|
52
53
|
"test:chrome": "aegir test -t browser --cov",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"test:electron-main": "aegir test -t electron-main"
|
|
58
59
|
},
|
|
59
60
|
"dependencies": {
|
|
60
|
-
"@libp2p/interface": "
|
|
61
|
+
"@libp2p/interface": "1.1.4-f71bc49bd",
|
|
61
62
|
"it-length-prefixed": "^9.0.4",
|
|
62
63
|
"it-length-prefixed-stream": "^1.1.6",
|
|
63
64
|
"it-stream-types": "^2.0.1",
|
|
@@ -65,11 +66,11 @@
|
|
|
65
66
|
"race-signal": "^1.0.2",
|
|
66
67
|
"uint8-varint": "^2.0.4",
|
|
67
68
|
"uint8arraylist": "^2.4.8",
|
|
68
|
-
"uint8arrays": "^5.0.
|
|
69
|
+
"uint8arrays": "^5.0.2"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@libp2p/logger": "
|
|
72
|
-
"aegir": "^42.2.
|
|
72
|
+
"@libp2p/logger": "4.0.7-f71bc49bd",
|
|
73
|
+
"aegir": "^42.2.4",
|
|
73
74
|
"iso-random-stream": "^2.0.2",
|
|
74
75
|
"it-all": "^3.0.4",
|
|
75
76
|
"it-drain": "^3.0.5",
|
package/src/handle.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type { Duplex } from 'it-stream-types'
|
|
|
18
18
|
* @returns A stream for the selected protocol and the protocol that was selected from the list of protocols provided to `select`
|
|
19
19
|
* @example
|
|
20
20
|
*
|
|
21
|
-
* ```
|
|
21
|
+
* ```TypeScript
|
|
22
22
|
* import { pipe } from 'it-pipe'
|
|
23
23
|
* import * as mss from '@libp2p/multistream-select'
|
|
24
24
|
* import { Mplex } from '@libp2p/mplex'
|
package/src/select.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface SelectStream extends Duplex<any, any, any> {
|
|
|
28
28
|
* @returns A stream for the selected protocol and the protocol that was selected from the list of protocols provided to `select`.
|
|
29
29
|
* @example
|
|
30
30
|
*
|
|
31
|
-
* ```
|
|
31
|
+
* ```TypeScript
|
|
32
32
|
* import { pipe } from 'it-pipe'
|
|
33
33
|
* import * as mss from '@libp2p/multistream-select'
|
|
34
34
|
* import { Mplex } from '@libp2p/mplex'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"MultistreamSelectInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_multistream_select.MultistreamSelectInit.html",
|
|
3
|
-
".:MultistreamSelectInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_multistream_select.MultistreamSelectInit.html",
|
|
4
|
-
"ProtocolStream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_multistream_select.ProtocolStream.html",
|
|
5
|
-
".:ProtocolStream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_multistream_select.ProtocolStream.html",
|
|
6
|
-
"PROTOCOL_ID": "https://libp2p.github.io/js-libp2p/variables/_libp2p_multistream_select.PROTOCOL_ID.html",
|
|
7
|
-
"handle": "https://libp2p.github.io/js-libp2p/functions/_libp2p_multistream_select.handle.html",
|
|
8
|
-
"select": "https://libp2p.github.io/js-libp2p/functions/_libp2p_multistream_select.select.html"
|
|
9
|
-
}
|