@ac-kit/net-transport-node 0.2.2 → 0.3.0
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/CHANGELOG.md +50 -0
- package/README.md +8 -6
- package/dist/frame-link-from-duplex.d.ts +11 -4
- package/dist/frame-link-from-duplex.d.ts.map +1 -1
- package/dist/frame-link-from-duplex.js +4 -4
- package/dist/frame-link-from-duplex.js.map +1 -1
- package/dist/tcp-listener.d.ts +13 -13
- package/dist/tcp-listener.d.ts.map +1 -1
- package/dist/tcp-listener.js +12 -7
- package/dist/tcp-listener.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @ac-kit/net-transport-node
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7f9f15d: Argument shapes follow one rule: required arguments are positional, `options`
|
|
8
|
+
is optional with every field optional, and a limit that has a sensible value
|
|
9
|
+
gets it as a default.
|
|
10
|
+
|
|
11
|
+
- `net-core`: `new FrameLink(input)`, where `FrameLinkInput` holds `transport`,
|
|
12
|
+
`codec`, `sink`, `maxBufferSize` and `options?`; `FrameLinkOptions` now holds
|
|
13
|
+
only `initialCapacity` (default 8 KiB). `maxBufferSize` stays required: the
|
|
14
|
+
right ceiling depends on the codec.
|
|
15
|
+
- `net-core`: `new KeyedRegistry(keyOf)`; `KeyedRegistryOptions` is removed.
|
|
16
|
+
- `net-core`: `peekTransport(transport, inspect, maxLength, signal?)`;
|
|
17
|
+
`PeekTransportOptions` is removed.
|
|
18
|
+
- `net-core`: `new MultiplexedConnectionClosedError(input)`, with
|
|
19
|
+
`MultiplexedConnectionClosedErrorInput` holding `origin`, `application`,
|
|
20
|
+
`code`, `reason` and `options?` (`ErrorOptions`).
|
|
21
|
+
- `net-core`: new `LISTENER_DEFAULT_HOST` (`"127.0.0.1"`), the address a
|
|
22
|
+
listener binds when given none.
|
|
23
|
+
- `net-transport-node`: `TcpListener.listen(port, options?)`; `host` defaults
|
|
24
|
+
to `LISTENER_DEFAULT_HOST`, and `tls.handshakeTimeoutMs` to 10 s.
|
|
25
|
+
- `net-transport-node`: `frameLinkFromDuplex(input)`, with
|
|
26
|
+
`FrameLinkFromDuplexInput` being `FrameLinkInput` with a `stream` in place
|
|
27
|
+
of the `transport`.
|
|
28
|
+
- `net-quic`: `QuicListener.listen(port, tls, abortCode, options?)`; `host`
|
|
29
|
+
defaults to `LISTENER_DEFAULT_HOST`, `maxConnections` to 1000, and
|
|
30
|
+
`transport` is optional. `QuicListenTlsOptions` is renamed `QuicServerTls`:
|
|
31
|
+
its certificate, key and protocols are all required.
|
|
32
|
+
- `net-quic`: `createQuicConnector(abortCode, options?)`; `transport` is
|
|
33
|
+
optional.
|
|
34
|
+
- `net-quic`: every `QuicTransportOptions` field is optional: `idleTimeoutMs`
|
|
35
|
+
defaults to 30 s, `maxConnectionData` to 4 MiB, `maxStreamData` to 256 KiB,
|
|
36
|
+
`maxBidirectionalStreams` to 100, `maxUnidirectionalStreams` to 8.
|
|
37
|
+
- `net-osc`: `new OscPeer(transport, options?)`; `maxPacketSize` defaults to
|
|
38
|
+
`OSC_DEFAULT_MAX_PACKET_SIZE` (64 KiB).
|
|
39
|
+
- `format-osc`: exports `OSC_DEFAULT_MAX_PACKET_SIZE`, the default
|
|
40
|
+
`maxPacketSize`.
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [7f9f15d]
|
|
45
|
+
- Updated dependencies [7f9f15d]
|
|
46
|
+
- Updated dependencies [7f9f15d]
|
|
47
|
+
- Updated dependencies [7f9f15d]
|
|
48
|
+
- @ac-kit/async@0.3.0
|
|
49
|
+
- @ac-kit/core@0.7.0
|
|
50
|
+
- @ac-kit/node@0.7.0
|
|
51
|
+
- @ac-kit/net-core@0.4.0
|
|
52
|
+
|
|
3
53
|
## 0.2.2
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ adapters over `@ac-kit/node`'s `TcpServer`, `TlsServer`, `TcpSocket` and
|
|
|
34
34
|
```ts
|
|
35
35
|
import { connectTcp, TcpListener } from "@ac-kit/net-transport-node";
|
|
36
36
|
|
|
37
|
-
const listener = await TcpListener.listen(
|
|
37
|
+
const listener = await TcpListener.listen(0);
|
|
38
38
|
listener.subscribe("connection", ({ transport, remote }) => {
|
|
39
39
|
// Start or destroy `transport`; it belongs to this handler now.
|
|
40
40
|
});
|
|
@@ -46,8 +46,10 @@ const { transport } = await connectTcp({
|
|
|
46
46
|
});
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
The
|
|
50
|
-
|
|
49
|
+
The port to bind is required; `0` lets the system pick one. The address
|
|
50
|
+
defaults to the IPv4 loopback (`127.0.0.1`): which interfaces a server listens
|
|
51
|
+
on is a security decision, so reaching it from other hosts takes an explicit
|
|
52
|
+
`host`. Both sides allow half-open connections, so a peer's end
|
|
51
53
|
arrives as the transport's `end` and the local side closes only when it ends or
|
|
52
54
|
destroys its transport.
|
|
53
55
|
|
|
@@ -55,7 +57,8 @@ destroys its transport.
|
|
|
55
57
|
|
|
56
58
|
Given `tls`, `TcpListener.listen` accepts TLS connections: `TlsServer`'s
|
|
57
59
|
options (`key`, `cert`, `ca`, `SNICallback`, ...), the ALPN
|
|
58
|
-
protocols it offers in order of preference, and a
|
|
60
|
+
protocols it offers in order of preference, and a handshake timeout (10 s by
|
|
61
|
+
default: a client that never finishes it holds a socket).
|
|
59
62
|
A connection is emitted once its handshake completed, with `secure` set and
|
|
60
63
|
the negotiated protocol as `alpnProtocol`; a failed handshake is reported as
|
|
61
64
|
the listener's `error` event.
|
|
@@ -63,9 +66,8 @@ the listener's `error` event.
|
|
|
63
66
|
```ts
|
|
64
67
|
import { createTcpConnector, TcpListener } from "@ac-kit/net-transport-node";
|
|
65
68
|
|
|
66
|
-
const listener = await TcpListener.listen({
|
|
69
|
+
const listener = await TcpListener.listen(8443, {
|
|
67
70
|
host: "0.0.0.0",
|
|
68
|
-
port: 8443,
|
|
69
71
|
tls: { key, cert, alpnProtocols: ["h2", "http/1.1"], handshakeTimeoutMs: 5_000 },
|
|
70
72
|
});
|
|
71
73
|
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import type { Duplex } from "node:stream";
|
|
2
|
-
import type {
|
|
2
|
+
import type { FrameLinkInput } from "@ac-kit/net-core";
|
|
3
3
|
import { FrameLink } from "@ac-kit/net-core";
|
|
4
|
+
/**
|
|
5
|
+
* Input for {@link frameLinkFromDuplex}: `FrameLink`'s, with a stream in place
|
|
6
|
+
* of the transport.
|
|
7
|
+
*/
|
|
8
|
+
export type FrameLinkFromDuplexInput<In, Out> = Omit<FrameLinkInput<In, Out>, "transport"> & {
|
|
9
|
+
/** An already-connected duplex stream. */
|
|
10
|
+
stream: Duplex;
|
|
11
|
+
};
|
|
4
12
|
/**
|
|
5
13
|
* Bind a frame link to an already-connected duplex stream.
|
|
6
14
|
*
|
|
7
|
-
* @param stream
|
|
8
|
-
* @param options FrameLink options excluding the transport.
|
|
15
|
+
* @param input The stream, and the FrameLink input other than its transport.
|
|
9
16
|
* @returns A frame link bound to a {@link DuplexTransport} over `stream`.
|
|
10
17
|
*/
|
|
11
|
-
export declare function frameLinkFromDuplex<In, Out = In>(
|
|
18
|
+
export declare function frameLinkFromDuplex<In, Out = In>(input: FrameLinkFromDuplexInput<In, Out>): FrameLink<In, Out>;
|
|
12
19
|
//# sourceMappingURL=frame-link-from-duplex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame-link-from-duplex.d.ts","sourceRoot":"","sources":["../src/frame-link-from-duplex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"frame-link-from-duplex.d.ts","sourceRoot":"","sources":["../src/frame-link-from-duplex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C;;;GAGG;AACH,MAAM,MAAM,wBAAwB,CAAC,EAAE,EAAE,GAAG,IAAI,IAAI,CACnD,cAAc,CAAC,EAAE,EAAE,GAAG,CAAC,EACvB,WAAW,CACX,GAAG;IACH,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,EAC/C,KAAK,EAAE,wBAAwB,CAAC,EAAE,EAAE,GAAG,CAAC,GACtC,SAAS,CAAC,EAAE,EAAE,GAAG,CAAC,CAMpB"}
|
|
@@ -3,13 +3,13 @@ import { DuplexTransport } from "./duplex-transport.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Bind a frame link to an already-connected duplex stream.
|
|
5
5
|
*
|
|
6
|
-
* @param stream
|
|
7
|
-
* @param options FrameLink options excluding the transport.
|
|
6
|
+
* @param input The stream, and the FrameLink input other than its transport.
|
|
8
7
|
* @returns A frame link bound to a {@link DuplexTransport} over `stream`.
|
|
9
8
|
*/
|
|
10
|
-
export function frameLinkFromDuplex(
|
|
9
|
+
export function frameLinkFromDuplex(input) {
|
|
10
|
+
const { stream, ...rest } = input;
|
|
11
11
|
return new FrameLink({
|
|
12
|
-
...
|
|
12
|
+
...rest,
|
|
13
13
|
transport: new DuplexTransport(stream),
|
|
14
14
|
});
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame-link-from-duplex.js","sourceRoot":"","sources":["../src/frame-link-from-duplex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"frame-link-from-duplex.js","sourceRoot":"","sources":["../src/frame-link-from-duplex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAcxD;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAClC,KAAwC;IAExC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,IAAI,SAAS,CAAU;QAC7B,GAAG,IAAI;QACP,SAAS,EAAE,IAAI,eAAe,CAAC,MAAM,CAAC;KACtC,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/tcp-listener.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDispatcherMapBase } from "@ac-kit/async";
|
|
2
|
-
import type
|
|
2
|
+
import { type IListener, type ListenerEvents, type TransportEndpoint } from "@ac-kit/net-core";
|
|
3
3
|
import { type TlsServerOptions } from "@ac-kit/node";
|
|
4
4
|
/**
|
|
5
5
|
* TLS for {@link TcpListener}: `TlsServer`'s options, plus what it must not
|
|
@@ -13,22 +13,20 @@ export type TcpListenTlsOptions = Omit<TlsServerOptions, "ALPNProtocols" | "ALPN
|
|
|
13
13
|
*/
|
|
14
14
|
alpnProtocols?: readonly string[];
|
|
15
15
|
/**
|
|
16
|
-
* How long, in milliseconds, a client may take to complete the handshake
|
|
17
|
-
*
|
|
16
|
+
* How long, in milliseconds, a client may take to complete the handshake: a
|
|
17
|
+
* client that never finishes it holds a socket. Default: `10000` (10 s).
|
|
18
18
|
*/
|
|
19
|
-
handshakeTimeoutMs
|
|
19
|
+
handshakeTimeoutMs?: number;
|
|
20
20
|
};
|
|
21
21
|
/** Options for {@link TcpListener.listen}. */
|
|
22
22
|
export type TcpListenOptions = {
|
|
23
23
|
/**
|
|
24
|
-
* Numeric address to bind (`127.0.0.1`, `::1`, `0.0.0.0`).
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Numeric address to bind (`127.0.0.1`, `::1`, `0.0.0.0`). Which interfaces a
|
|
25
|
+
* server is reachable on is a security decision, so the default is the most
|
|
26
|
+
* restrictive one. Default: {@link LISTENER_DEFAULT_HOST} (`"127.0.0.1"`).
|
|
27
27
|
*/
|
|
28
|
-
host
|
|
29
|
-
/**
|
|
30
|
-
port: number;
|
|
31
|
-
/** Disable Nagle's algorithm on accepted sockets. Defaults to `false`. */
|
|
28
|
+
host?: string;
|
|
29
|
+
/** Disable Nagle's algorithm on accepted sockets. Default: `false`. */
|
|
32
30
|
noDelay?: boolean;
|
|
33
31
|
/**
|
|
34
32
|
* Accept TLS instead of cleartext: a connection is emitted once its handshake
|
|
@@ -50,7 +48,7 @@ export type TcpListenOptions = {
|
|
|
50
48
|
*
|
|
51
49
|
* @example
|
|
52
50
|
* ```ts
|
|
53
|
-
* const listener = await TcpListener.listen(
|
|
51
|
+
* const listener = await TcpListener.listen(0);
|
|
54
52
|
* listener.subscribe("connection", ({ transport }) => serve(transport));
|
|
55
53
|
* ```;
|
|
56
54
|
*/
|
|
@@ -62,12 +60,14 @@ export declare class TcpListener extends EventDispatcherMapBase<ListenerEvents>
|
|
|
62
60
|
/**
|
|
63
61
|
* Bind and start accepting.
|
|
64
62
|
*
|
|
63
|
+
* @param port Port to bind; `0` lets the system pick one, read it from
|
|
64
|
+
* `local`.
|
|
65
65
|
* @param options Address to bind, and accept options.
|
|
66
66
|
* @returns The listener, once bound.
|
|
67
67
|
* @throws When the address cannot be bound (in use, not local), or when
|
|
68
68
|
* `signal` aborts first.
|
|
69
69
|
*/
|
|
70
|
-
static listen(
|
|
70
|
+
static listen(port: number, options?: TcpListenOptions): Promise<TcpListener>;
|
|
71
71
|
close(): Promise<void>;
|
|
72
72
|
/** Closes the listener, so it can be used with `await using`. */
|
|
73
73
|
[Symbol.asyncDispose](): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcp-listener.d.ts","sourceRoot":"","sources":["../src/tcp-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tcp-listener.d.ts","sourceRoot":"","sources":["../src/tcp-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EACN,KAAK,SAAS,EAEd,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAIN,KAAK,gBAAgB,EAErB,MAAM,cAAc,CAAC;AAItB;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,gBAAgB,EACd,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,SAAS,CACX,GAAG;IACH;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAKF,8CAA8C;AAC9C,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAE1B,wBAAwB;IACxB,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,WACZ,SAAQ,sBAAsB,CAAC,cAAc,CAC7C,YAAW,SAAS;IAKnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,QAAQ,CAAC,KAAK,EAAE,iBAAiB;IAJlC,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,eAmBN;IAED;;;;;;;;;OASG;IACH,OAAa,MAAM,CAClB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,WAAW,CAAC,CAgBtB;IAED,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAQrB;IAED,iEAAiE;IACjE,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAErC;CACD"}
|
package/dist/tcp-listener.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { EventDispatcherMapBase } from "@ac-kit/async";
|
|
2
|
+
import { LISTENER_DEFAULT_HOST, } from "@ac-kit/net-core";
|
|
2
3
|
import { TcpServer, TlsServer, } from "@ac-kit/node";
|
|
3
4
|
import { composeTcpConnection_ } from "./_compose-tcp-connection.js";
|
|
5
|
+
/** Default for {@link TcpListenTlsOptions.handshakeTimeoutMs}. */
|
|
6
|
+
const DEFAULT_HANDSHAKE_TIMEOUT_MS_ = 10000;
|
|
4
7
|
/**
|
|
5
8
|
* Accepts TCP connections, cleartext or TLS, and yields each as a
|
|
6
9
|
* `TransportConnection` over a {@link DuplexTransport}. Built on
|
|
@@ -13,7 +16,7 @@ import { composeTcpConnection_ } from "./_compose-tcp-connection.js";
|
|
|
13
16
|
*
|
|
14
17
|
* @example
|
|
15
18
|
* ```ts
|
|
16
|
-
* const listener = await TcpListener.listen(
|
|
19
|
+
* const listener = await TcpListener.listen(0);
|
|
17
20
|
* listener.subscribe("connection", ({ transport }) => serve(transport));
|
|
18
21
|
* ```;
|
|
19
22
|
*/
|
|
@@ -43,16 +46,18 @@ export class TcpListener extends EventDispatcherMapBase {
|
|
|
43
46
|
/**
|
|
44
47
|
* Bind and start accepting.
|
|
45
48
|
*
|
|
49
|
+
* @param port Port to bind; `0` lets the system pick one, read it from
|
|
50
|
+
* `local`.
|
|
46
51
|
* @param options Address to bind, and accept options.
|
|
47
52
|
* @returns The listener, once bound.
|
|
48
53
|
* @throws When the address cannot be bound (in use, not local), or when
|
|
49
54
|
* `signal` aborts first.
|
|
50
55
|
*/
|
|
51
|
-
static async listen(options) {
|
|
52
|
-
const
|
|
56
|
+
static async listen(port, options) {
|
|
57
|
+
const signal = options?.signal;
|
|
53
58
|
signal?.throwIfAborted();
|
|
54
59
|
const server = createServer_(options);
|
|
55
|
-
await server.listen(
|
|
60
|
+
await server.listen(port, { host: options?.host ?? LISTENER_DEFAULT_HOST });
|
|
56
61
|
if (signal?.aborted) {
|
|
57
62
|
stopAccepting_(server);
|
|
58
63
|
throw signal.reason;
|
|
@@ -79,8 +84,8 @@ export class TcpListener extends EventDispatcherMapBase {
|
|
|
79
84
|
}
|
|
80
85
|
}
|
|
81
86
|
function createServer_(options) {
|
|
82
|
-
const noDelay = options
|
|
83
|
-
if (!options
|
|
87
|
+
const noDelay = options?.noDelay ?? false;
|
|
88
|
+
if (!options?.tls) {
|
|
84
89
|
return TcpServer.from({ allowHalfOpen: true, noDelay });
|
|
85
90
|
}
|
|
86
91
|
const { alpnProtocols, handshakeTimeoutMs, ...secureOptions } = options.tls;
|
|
@@ -88,7 +93,7 @@ function createServer_(options) {
|
|
|
88
93
|
...secureOptions,
|
|
89
94
|
allowHalfOpen: true,
|
|
90
95
|
noDelay,
|
|
91
|
-
handshakeTimeout: handshakeTimeoutMs,
|
|
96
|
+
handshakeTimeout: handshakeTimeoutMs ?? DEFAULT_HANDSHAKE_TIMEOUT_MS_,
|
|
92
97
|
...(alpnProtocols && { ALPNProtocols: [...alpnProtocols] }),
|
|
93
98
|
});
|
|
94
99
|
}
|
package/dist/tcp-listener.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcp-listener.js","sourceRoot":"","sources":["../src/tcp-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tcp-listener.js","sourceRoot":"","sources":["../src/tcp-listener.ts"],"names":[],"m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,GAAG,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC;QACnB,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAC5E,OAAO,SAAS,CAAC,IAAI,CAAC;QACrB,GAAG,aAAa;QAChB,aAAa,EAAE,IAAI;QACnB,OAAO;QACP,gBAAgB,EAAE,kBAAkB,IAAI,6BAA6B;QACrE,GAAG,CAAC,aAAa,IAAI,EAAE,aAAa,EAAE,CAAC,GAAG,aAAa,CAAC,EAAE,CAAC;KAC3D,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAC,MAA6B;IACpD,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;QACzB,4CAA4C;IAC7C,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ac-kit/net-transport-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Node.js Transport adapters for @ac-kit/net-core: TCP, TLS, IPC and UDP.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nodejs",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"prepack": "yarn build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@ac-kit/async": "^0.
|
|
49
|
-
"@ac-kit/core": "^0.
|
|
50
|
-
"@ac-kit/net-core": "^0.
|
|
51
|
-
"@ac-kit/node": "^0.
|
|
48
|
+
"@ac-kit/async": "^0.3.0",
|
|
49
|
+
"@ac-kit/core": "^0.7.0",
|
|
50
|
+
"@ac-kit/net-core": "^0.4.0",
|
|
51
|
+
"@ac-kit/node": "^0.7.0",
|
|
52
52
|
"@types/node": "^26.5.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@ac-kit/format-core": "0.
|
|
56
|
-
"@ac-kit/format-netstring": "0.1.
|
|
57
|
-
"@ac-kit/integration-test-util": "0.4.
|
|
55
|
+
"@ac-kit/format-core": "0.3.0",
|
|
56
|
+
"@ac-kit/format-netstring": "0.1.6",
|
|
57
|
+
"@ac-kit/integration-test-util": "0.4.2",
|
|
58
58
|
"@ac-kit/tsconfig": "0.1.0",
|
|
59
59
|
"@ac-kit/typedoc-config": "0.1.0",
|
|
60
60
|
"@ac-kit/vitest-config": "0.1.1",
|