@libp2p/multistream-select 5.1.3 → 5.1.4

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 CHANGED
@@ -1,3 +1,5 @@
1
+ # @libp2p/multistream-select
2
+
1
3
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
2
4
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
3
5
  [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](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
@@ -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
- * ```js
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'
@@ -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
- * ```js
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'
@@ -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
- * ```js
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'
@@ -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
- * ```js
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",
3
+ "version": "5.1.4",
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": "^1.1.3",
61
+ "@libp2p/interface": "^1.1.4",
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.1"
69
+ "uint8arrays": "^5.0.2"
69
70
  },
70
71
  "devDependencies": {
71
- "@libp2p/logger": "^4.0.6",
72
- "aegir": "^42.2.3",
72
+ "@libp2p/logger": "^4.0.7",
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
- * ```js
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
- * ```js
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'