mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 02:09:18 +02:00
chore: update dependencies
This commit is contained in:
parent
599351c9b1
commit
dce44ae9ac
36 changed files with 742 additions and 922 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue