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

@ -38,10 +38,10 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^20.7.1",
"@types/node": "^20.8.3",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2"

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();