nerdbank-streams 2.11.79 → 2.12.74-alpha
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 +22 -22
- package/js/Channel.d.ts +0 -2
- package/js/Deferred.d.ts +2 -2
- package/js/FullDuplexStream.d.ts +0 -2
- package/js/MultiplexingStream.d.ts +0 -2
- package/js/MultiplexingStreamFormatters.d.ts +0 -2
- package/js/Utilities.d.ts +0 -2
- package/js/Utilities.js +7 -8
- package/js/Utilities.js.map +1 -1
- package/package.json +67 -67
- package/src/AcceptanceParameters.ts +4 -4
- package/src/Channel.ts +295 -295
- package/src/ChannelOptions.ts +4 -4
- package/src/ControlCode.ts +35 -35
- package/src/Deferred.ts +75 -75
- package/src/FrameHeader.ts +47 -47
- package/src/FullDuplexStream.ts +32 -32
- package/src/IChannelOfferEventArgs.ts +19 -19
- package/src/IDisposableObservable.ts +4 -4
- package/src/MultiplexingStream.ts +761 -761
- package/src/MultiplexingStreamFormatters.ts +395 -395
- package/src/MultiplexingStreamOptions.ts +21 -21
- package/src/OfferParameters.ts +7 -7
- package/src/QualifiedChannelId.ts +44 -44
- package/src/Utilities.ts +183 -183
- package/src/index.ts +8 -8
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
# Nerdbank Streams
|
|
2
|
-
|
|
3
|
-
*Enhanced streams for communication in-proc or across the Internet.*
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
1. [`FullDuplexStream`](
|
|
8
|
-
in-proc two-way communication; it also creates a single bidirectional stream from two
|
|
9
|
-
unidirectional streams.
|
|
10
|
-
1. [`MultiplexingStream`](
|
|
11
|
-
.NET Stream into many sub-streams (called channels). This allows two parties to establish
|
|
12
|
-
just one transport stream (e.g. named pipe or web socket) and use it for many independent
|
|
13
|
-
protocols. For example, one might set up JSON-RPC on one channel and use other channels for
|
|
14
|
-
efficient binary transfers.
|
|
15
|
-
1. [Substreams](
|
|
16
|
-
exported functions allow you to serialize data of
|
|
17
|
-
an unknown length as part of a larger stream, and later deserialize it such in reading the
|
|
18
|
-
substream, you cannot read more bytes than were written to it.
|
|
19
|
-
|
|
20
|
-
See our [project README][GitHubREADME] for more information.
|
|
21
|
-
|
|
22
|
-
[GitHubREADME]: https://github.com/AArnott/Nerdbank.Streams/blob/main/README.md
|
|
1
|
+
# Nerdbank Streams
|
|
2
|
+
|
|
3
|
+
*Enhanced streams for communication in-proc or across the Internet.*
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
1. [`FullDuplexStream`](https://dotnet.github.io/Nerdbank.Streams/docs/FullDuplexStream.html) creates a pair of bidirectional streams for
|
|
8
|
+
in-proc two-way communication; it also creates a single bidirectional stream from two
|
|
9
|
+
unidirectional streams.
|
|
10
|
+
1. [`MultiplexingStream`](https://dotnet.github.io/Nerdbank.Streams/docs/MultiplexingStream.html) allows you to split any bidirectional
|
|
11
|
+
.NET Stream into many sub-streams (called channels). This allows two parties to establish
|
|
12
|
+
just one transport stream (e.g. named pipe or web socket) and use it for many independent
|
|
13
|
+
protocols. For example, one might set up JSON-RPC on one channel and use other channels for
|
|
14
|
+
efficient binary transfers.
|
|
15
|
+
1. [Substreams](https://dotnet.github.io/Nerdbank.Streams/docs/Substream.html), accessible via `writeSubstream` and `readSubstream`
|
|
16
|
+
exported functions allow you to serialize data of
|
|
17
|
+
an unknown length as part of a larger stream, and later deserialize it such in reading the
|
|
18
|
+
substream, you cannot read more bytes than were written to it.
|
|
19
|
+
|
|
20
|
+
See our [project README][GitHubREADME] for more information.
|
|
21
|
+
|
|
22
|
+
[GitHubREADME]: https://github.com/AArnott/Nerdbank.Streams/blob/main/README.md
|
package/js/Channel.d.ts
CHANGED
package/js/Deferred.d.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* A TaskCompletionSource-like class that allows promises to be resolved or rejected whenever.
|
|
3
3
|
*/
|
|
4
4
|
export declare class Deferred<T> {
|
|
5
|
-
state?: any;
|
|
5
|
+
state?: any | undefined;
|
|
6
6
|
readonly promise: Promise<T>;
|
|
7
7
|
private resolvePromise;
|
|
8
8
|
private rejectPromise;
|
|
9
9
|
private _isResolved;
|
|
10
10
|
private _isRejected;
|
|
11
11
|
private _error;
|
|
12
|
-
constructor(state?: any);
|
|
12
|
+
constructor(state?: any | undefined);
|
|
13
13
|
/**
|
|
14
14
|
* Gets a value indicating whether this promise has been completed.
|
|
15
15
|
*/
|
package/js/FullDuplexStream.d.ts
CHANGED
package/js/Utilities.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import CancellationToken from 'cancellationtoken';
|
|
4
2
|
import { IDisposableObservable } from './IDisposableObservable';
|
|
5
3
|
export declare function writeAsync(stream: NodeJS.WritableStream, chunk: any): Promise<void>;
|
package/js/Utilities.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.writeAsync = writeAsync;
|
|
4
|
+
exports.writeSubstream = writeSubstream;
|
|
5
|
+
exports.readSubstream = readSubstream;
|
|
6
|
+
exports.getBufferFrom = getBufferFrom;
|
|
7
|
+
exports.throwIfDisposed = throwIfDisposed;
|
|
8
|
+
exports.requireInteger = requireInteger;
|
|
9
|
+
exports.removeFromQueue = removeFromQueue;
|
|
4
10
|
const stream_1 = require("stream");
|
|
5
11
|
const Deferred_1 = require("./Deferred");
|
|
6
12
|
async function writeAsync(stream, chunk) {
|
|
@@ -15,7 +21,6 @@ async function writeAsync(stream, chunk) {
|
|
|
15
21
|
});
|
|
16
22
|
});
|
|
17
23
|
}
|
|
18
|
-
exports.writeAsync = writeAsync;
|
|
19
24
|
function writeSubstream(stream) {
|
|
20
25
|
return new stream_1.Writable({
|
|
21
26
|
async write(chunk, _, callback) {
|
|
@@ -36,7 +41,6 @@ function writeSubstream(stream) {
|
|
|
36
41
|
},
|
|
37
42
|
});
|
|
38
43
|
}
|
|
39
|
-
exports.writeSubstream = writeSubstream;
|
|
40
44
|
function readSubstream(stream) {
|
|
41
45
|
return new stream_1.Readable({
|
|
42
46
|
async read(_) {
|
|
@@ -53,7 +57,6 @@ function readSubstream(stream) {
|
|
|
53
57
|
},
|
|
54
58
|
});
|
|
55
59
|
}
|
|
56
|
-
exports.readSubstream = readSubstream;
|
|
57
60
|
async function getBufferFrom(readable, size, allowEndOfStream = false, cancellationToken) {
|
|
58
61
|
const streamEnded = new Deferred_1.Deferred();
|
|
59
62
|
if (size === 0) {
|
|
@@ -121,13 +124,11 @@ async function getBufferFrom(readable, size, allowEndOfStream = false, cancellat
|
|
|
121
124
|
}
|
|
122
125
|
return readBuffer;
|
|
123
126
|
}
|
|
124
|
-
exports.getBufferFrom = getBufferFrom;
|
|
125
127
|
function throwIfDisposed(value) {
|
|
126
128
|
if (value.isDisposed) {
|
|
127
129
|
throw new Error('disposed');
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
|
-
exports.throwIfDisposed = throwIfDisposed;
|
|
131
132
|
function requireInteger(parameterName, value, serializedByteLength, signed = 'signed') {
|
|
132
133
|
if (!Number.isInteger(value)) {
|
|
133
134
|
throw new Error(`${parameterName} must be an integer.`);
|
|
@@ -142,7 +143,6 @@ function requireInteger(parameterName, value, serializedByteLength, signed = 'si
|
|
|
142
143
|
throw new Error(`${parameterName} must be in the range ${minValue}-${maxValue}.`);
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
|
-
exports.requireInteger = requireInteger;
|
|
146
146
|
function removeFromQueue(value, queue) {
|
|
147
147
|
if (queue) {
|
|
148
148
|
const idx = queue.indexOf(value);
|
|
@@ -151,5 +151,4 @@ function removeFromQueue(value, queue) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
exports.removeFromQueue = removeFromQueue;
|
|
155
154
|
//# sourceMappingURL=Utilities.js.map
|
package/js/Utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../src/Utilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../src/Utilities.ts"],"names":[],"mappings":";;AAKA,gCAUC;AAED,wCAkBC;AAED,sCAgBC;AAgBD,sCAiFC;AAED,0CAIC;AAED,wCAeC;AAED,0CAOC;AArLD,mCAA2C;AAC3C,yCAAqC;AAG9B,KAAK,UAAU,UAAU,CAAC,MAA6B,EAAE,KAAU;IACzE,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAA6B,EAAE,EAAE;YACrD,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,CAAC,GAAG,CAAC,CAAA;YACZ,CAAC;iBAAM,CAAC;gBACP,OAAO,EAAE,CAAA;YACV,CAAC;QACF,CAAC,CAAC,CAAA;IACH,CAAC,CAAC,CAAA;AACH,CAAC;AAED,SAAgB,cAAc,CAAC,MAA6B;IAC3D,OAAO,IAAI,iBAAQ,CAAC;QACnB,KAAK,CAAC,KAAK,CAAC,KAAa,EAAE,CAAS,EAAE,QAAwC;YAC7E,IAAI,CAAC;gBACJ,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;gBAC3C,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;gBACpC,MAAM,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;gBAChD,MAAM,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;gBAC/B,QAAQ,EAAE,CAAA;YACX,CAAC;YAAC,OAAO,GAA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E,oBAA4B,EAAE,SAAgC,QAAQ;IAC1I,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,GAAG,aAAa,sBAAsB,CAAC,CAAA;IACxD,CAAC;IAED,IAAI,IAAI,GAAG,oBAAoB,GAAG,CAAC,CAAA;IACnC,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACzB,IAAI,EAAE,CAAA;IACP,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;IACtC,MAAM,QAAQ,GAAG,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7D,IAAI,KAAK,GAAG,QAAQ,IAAI,KAAK,GAAG,QAAQ,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,GAAG,aAAa,yBAAyB,QAAQ,IAAI,QAAQ,GAAG,CAAC,CAAA;IAClF,CAAC;AACF,CAAC;AAED,SAAgB,eAAe,CAAI,KAAQ,EAAE,KAAU;IACtD,IAAI,KAAK,EAAE,CAAC;QACX,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAChC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC;YACd,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QACrB,CAAC;IACF,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nerdbank-streams",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Multiplexing of streams",
|
|
5
|
-
"readme": "README.md",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"streams",
|
|
8
|
-
"multiplexing",
|
|
9
|
-
"duplex"
|
|
10
|
-
],
|
|
11
|
-
"main": "js/index.js",
|
|
12
|
-
"typings": "js/index.d.ts",
|
|
13
|
-
"homepage": "https://github.com/AArnott/Nerdbank.Streams",
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "https://github.com/AArnott/Nerdbank.Streams.git"
|
|
17
|
-
},
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/AArnott/Nerdbank.Streams/issues"
|
|
20
|
-
},
|
|
21
|
-
"author": {
|
|
22
|
-
"name": "Andrew Arnott",
|
|
23
|
-
"email": "andrewarnott@gmail.com",
|
|
24
|
-
"url": "http://blog.nerdbank.net/"
|
|
25
|
-
},
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"private": false,
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "tsc -p gulpfile.tsconfig.json && gulp",
|
|
30
|
-
"lint": "eslint src --ext ts",
|
|
31
|
-
"test": "jest",
|
|
32
|
-
"watch": "node ./node_modules/typescript/bin/tsc -p tsconfig.json -w"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@types/jest": "^29.5.2",
|
|
36
|
-
"@types/mkdirp": "^1.0.2",
|
|
37
|
-
"@types/msgpack-lite": "^0.1.8",
|
|
38
|
-
"@types/node": "^16.11.6",
|
|
39
|
-
"@types/promise": "^7.1.30",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
41
|
-
"@typescript-eslint/parser": "^5.59.9",
|
|
42
|
-
"eslint": "^8.42.0",
|
|
43
|
-
"eslint-config-prettier": "9.1.0",
|
|
44
|
-
"eslint-plugin-import": "2.
|
|
45
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
46
|
-
"eslint-plugin-prettier": "^5.0.0-alpha.2",
|
|
47
|
-
"gulp": "^
|
|
48
|
-
"gulp-typescript": "^6.0.0-alpha.1",
|
|
49
|
-
"jest": "^29.5.0",
|
|
50
|
-
"jshint": "^2.13.6",
|
|
51
|
-
"mkdirp": "^1.0.4",
|
|
52
|
-
"nerdbank-gitversioning": "^3.6.133",
|
|
53
|
-
"path": "^0.12.7",
|
|
54
|
-
"prettier": "^3.0.0",
|
|
55
|
-
"promise": "^8.3.0",
|
|
56
|
-
"ts-jest": "^29.1.0",
|
|
57
|
-
"ts-node": "^10.9.1",
|
|
58
|
-
"typescript": "^5.1.3",
|
|
59
|
-
"vscode-jsonrpc": "^8.1.0"
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"await-semaphore": "^0.1.3",
|
|
63
|
-
"cancellationtoken": "^2.2.0",
|
|
64
|
-
"caught": "^0.1.3",
|
|
65
|
-
"msgpack-lite": "^0.1.26"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nerdbank-streams",
|
|
3
|
+
"version": "2.12.74-alpha",
|
|
4
|
+
"description": "Multiplexing of streams",
|
|
5
|
+
"readme": "README.md",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"streams",
|
|
8
|
+
"multiplexing",
|
|
9
|
+
"duplex"
|
|
10
|
+
],
|
|
11
|
+
"main": "js/index.js",
|
|
12
|
+
"typings": "js/index.d.ts",
|
|
13
|
+
"homepage": "https://github.com/AArnott/Nerdbank.Streams",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/AArnott/Nerdbank.Streams.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/AArnott/Nerdbank.Streams/issues"
|
|
20
|
+
},
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Andrew Arnott",
|
|
23
|
+
"email": "andrewarnott@gmail.com",
|
|
24
|
+
"url": "http://blog.nerdbank.net/"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"private": false,
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc -p gulpfile.tsconfig.json && gulp",
|
|
30
|
+
"lint": "eslint src --ext ts",
|
|
31
|
+
"test": "jest",
|
|
32
|
+
"watch": "node ./node_modules/typescript/bin/tsc -p tsconfig.json -w"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/jest": "^29.5.2",
|
|
36
|
+
"@types/mkdirp": "^1.0.2",
|
|
37
|
+
"@types/msgpack-lite": "^0.1.8",
|
|
38
|
+
"@types/node": "^16.11.6",
|
|
39
|
+
"@types/promise": "^7.1.30",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
41
|
+
"@typescript-eslint/parser": "^5.59.9",
|
|
42
|
+
"eslint": "^8.42.0",
|
|
43
|
+
"eslint-config-prettier": "9.1.0",
|
|
44
|
+
"eslint-plugin-import": "2.31.0",
|
|
45
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
46
|
+
"eslint-plugin-prettier": "^5.0.0-alpha.2",
|
|
47
|
+
"gulp": "^5.0.0",
|
|
48
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
49
|
+
"jest": "^29.5.0",
|
|
50
|
+
"jshint": "^2.13.6",
|
|
51
|
+
"mkdirp": "^1.0.4",
|
|
52
|
+
"nerdbank-gitversioning": "^3.6.133",
|
|
53
|
+
"path": "^0.12.7",
|
|
54
|
+
"prettier": "^3.0.0",
|
|
55
|
+
"promise": "^8.3.0",
|
|
56
|
+
"ts-jest": "^29.1.0",
|
|
57
|
+
"ts-node": "^10.9.1",
|
|
58
|
+
"typescript": "^5.1.3",
|
|
59
|
+
"vscode-jsonrpc": "^8.1.0"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"await-semaphore": "^0.1.3",
|
|
63
|
+
"cancellationtoken": "^2.2.0",
|
|
64
|
+
"caught": "^0.1.3",
|
|
65
|
+
"msgpack-lite": "^0.1.26"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface AcceptanceParameters {
|
|
2
|
-
/** The maximum number of bytes that may be transmitted and not yet acknowledged as processed by the remote party. */
|
|
3
|
-
remoteWindowSize?: number
|
|
4
|
-
}
|
|
1
|
+
export interface AcceptanceParameters {
|
|
2
|
+
/** The maximum number of bytes that may be transmitted and not yet acknowledged as processed by the remote party. */
|
|
3
|
+
remoteWindowSize?: number
|
|
4
|
+
}
|