chore: update dependencies

This commit is contained in:
Simon Chan 2023-10-10 12:30:30 +08:00
parent 599351c9b1
commit dce44ae9ac
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
36 changed files with 742 additions and 922 deletions

View file

@ -67,7 +67,7 @@ export class AdbServerNodeTcpConnection implements AdbServerConnection {
}
async connect(
{ unref }: AdbServerConnectionOptions = { unref: false }
{ unref }: AdbServerConnectionOptions = { unref: false },
): Promise<ReadableWritablePair<Uint8Array, Uint8Array>> {
const socket = new Socket();
if (unref) {
@ -83,7 +83,7 @@ export class AdbServerNodeTcpConnection implements AdbServerConnection {
async addReverseTunnel(
handler: AdbIncomingSocketHandler,
address?: string
address?: string,
): Promise<string> {
// eslint-disable-next-line @typescript-eslint/no-misused-promises
const server = new Server(async (socket) => {
@ -93,7 +93,7 @@ export class AdbServerNodeTcpConnection implements AdbServerConnection {
service: address!,
readable: stream.readable,
writable: new WrapWritableStream(
stream.writable
stream.writable,
).bePipedThroughFrom(new UnwrapConsumableStream()),
close() {
socket.end();