mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 19:42:15 +02:00
refactor: upgrade to typescript-eslint v8
This commit is contained in:
parent
6115266a87
commit
66a98f89ba
32 changed files with 278 additions and 180 deletions
|
@ -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",
|
||||
|
|
|
@ -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>({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue