refactor: upgrade to typescript-eslint v8

This commit is contained in:
Simon Chan 2024-08-03 17:26:57 +08:00
parent 6115266a87
commit 66a98f89ba
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
32 changed files with 278 additions and 180 deletions

View file

@ -37,7 +37,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^20.14.12",
"@types/node": "^22.1.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",

View file

@ -5,6 +5,7 @@ import type { AdbIncomingSocketHandler, AdbServerClient } from "@yume-chan/adb";
import {
MaybeConsumable,
PushReadableStream,
tryClose,
WrapWritableStream,
WritableStream,
} from "@yume-chan/stream-extra";
@ -32,11 +33,7 @@ function nodeSocketToConnection(
socket.resume();
});
socket.on("end", () => {
try {
controller.close();
} catch (e) {
// controller already closed
}
tryClose(controller);
});
}),
writable: new WritableStream<Uint8Array>({