@libp2p/multistream-select 6.0.23 → 6.0.24
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/dist/index.min.js +7 -7
- package/dist/index.min.js.map +4 -4
- package/dist/src/multistream.d.ts +1 -1
- package/dist/src/multistream.d.ts.map +1 -1
- package/dist/src/multistream.js +0 -1
- package/dist/src/multistream.js.map +1 -1
- package/dist/typedoc-urls.json +8 -8
- package/package.json +9 -16
- package/src/multistream.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type Uint8ArrayList } from 'uint8arraylist';
|
|
2
1
|
import type { AbortOptions, LoggerOptions } from '@libp2p/interface';
|
|
3
2
|
import type { LengthPrefixedStream } from 'it-length-prefixed-stream';
|
|
4
3
|
import type { Duplex, Source } from 'it-stream-types';
|
|
4
|
+
import type { Uint8ArrayList } from 'uint8arraylist';
|
|
5
5
|
/**
|
|
6
6
|
* `write` encodes and writes a single buffer
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multistream.d.ts","sourceRoot":"","sources":["../../src/multistream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multistream.d.ts","sourceRoot":"","sources":["../../src/multistream.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAIpD;;GAEG;AACH,wBAAsB,KAAK,CAAE,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,GAAG,cAAc,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9M;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAE,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnM;AAED;;GAEG;AACH,wBAAsB,IAAI,CAAE,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CASjM;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAE,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAI/L"}
|
package/dist/src/multistream.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InvalidMessageError } from '@libp2p/interface';
|
|
2
|
-
import {} from 'uint8arraylist';
|
|
3
2
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
4
3
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
|
|
5
4
|
const NewLine = uint8ArrayFromString('\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multistream.js","sourceRoot":"","sources":["../../src/multistream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,
|
|
1
|
+
{"version":3,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AE,OAAqC;IAC5K,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEvC,OAAO,kBAAkB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;AAC3C,CAAC"}
|
package/dist/typedoc-urls.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"MultistreamSelectInit": "https://libp2p.github.io/js-libp2p/interfaces/
|
|
3
|
-
".:MultistreamSelectInit": "https://libp2p.github.io/js-libp2p/interfaces/
|
|
4
|
-
"ProtocolStream": "https://libp2p.github.io/js-libp2p/interfaces/
|
|
5
|
-
".:ProtocolStream": "https://libp2p.github.io/js-libp2p/interfaces/
|
|
6
|
-
"SelectStream": "https://libp2p.github.io/js-libp2p/interfaces/
|
|
7
|
-
"PROTOCOL_ID": "https://libp2p.github.io/js-libp2p/variables/
|
|
8
|
-
"handle": "https://libp2p.github.io/js-libp2p/functions/
|
|
9
|
-
"select": "https://libp2p.github.io/js-libp2p/functions/
|
|
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
|
+
"SelectStream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_multistream-select.SelectStream.html",
|
|
7
|
+
"PROTOCOL_ID": "https://libp2p.github.io/js-libp2p/variables/_libp2p_multistream-select.PROTOCOL_ID.html",
|
|
8
|
+
"handle": "https://libp2p.github.io/js-libp2p/functions/_libp2p_multistream-select.handle.html",
|
|
9
|
+
"select": "https://libp2p.github.io/js-libp2p/functions/_libp2p_multistream-select.select.html"
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/multistream-select",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.24",
|
|
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",
|
|
@@ -36,13 +36,6 @@
|
|
|
36
36
|
"import": "./dist/src/index.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"eslintConfig": {
|
|
40
|
-
"extends": "ipfs",
|
|
41
|
-
"parserOptions": {
|
|
42
|
-
"project": true,
|
|
43
|
-
"sourceType": "module"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
39
|
"scripts": {
|
|
47
40
|
"clean": "aegir clean",
|
|
48
41
|
"lint": "aegir lint",
|
|
@@ -58,25 +51,25 @@
|
|
|
58
51
|
"test:electron-main": "aegir test -t electron-main"
|
|
59
52
|
},
|
|
60
53
|
"dependencies": {
|
|
61
|
-
"@libp2p/interface": "^2.10.
|
|
54
|
+
"@libp2p/interface": "^2.10.1",
|
|
62
55
|
"it-length-prefixed": "^10.0.1",
|
|
63
|
-
"it-length-prefixed-stream": "^2.0.
|
|
56
|
+
"it-length-prefixed-stream": "^2.0.2",
|
|
64
57
|
"it-stream-types": "^2.0.2",
|
|
65
58
|
"p-defer": "^4.0.1",
|
|
66
|
-
"race-signal": "^1.1.
|
|
59
|
+
"race-signal": "^1.1.3",
|
|
67
60
|
"uint8-varint": "^2.0.4",
|
|
68
61
|
"uint8arraylist": "^2.4.8",
|
|
69
62
|
"uint8arrays": "^5.1.0"
|
|
70
63
|
},
|
|
71
64
|
"devDependencies": {
|
|
72
|
-
"@libp2p/logger": "^5.1.
|
|
73
|
-
"aegir": "^
|
|
65
|
+
"@libp2p/logger": "^5.1.17",
|
|
66
|
+
"aegir": "^47.0.6",
|
|
74
67
|
"iso-random-stream": "^2.0.2",
|
|
75
|
-
"it-all": "^3.0.
|
|
76
|
-
"it-drain": "^3.0.
|
|
68
|
+
"it-all": "^3.0.8",
|
|
69
|
+
"it-drain": "^3.0.9",
|
|
77
70
|
"it-pair": "^2.0.6",
|
|
78
71
|
"it-pipe": "^3.0.1",
|
|
79
|
-
"p-timeout": "^6.1.
|
|
72
|
+
"p-timeout": "^6.1.4"
|
|
80
73
|
},
|
|
81
74
|
"sideEffects": false
|
|
82
75
|
}
|
package/src/multistream.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InvalidMessageError } from '@libp2p/interface'
|
|
2
|
-
import { type Uint8ArrayList } from 'uint8arraylist'
|
|
3
2
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
3
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
|
|
5
4
|
import type { AbortOptions, LoggerOptions } from '@libp2p/interface'
|
|
6
5
|
import type { LengthPrefixedStream } from 'it-length-prefixed-stream'
|
|
7
6
|
import type { Duplex, Source } from 'it-stream-types'
|
|
7
|
+
import type { Uint8ArrayList } from 'uint8arraylist'
|
|
8
8
|
|
|
9
9
|
const NewLine = uint8ArrayFromString('\n')
|
|
10
10
|
|