mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
refactor: code cleanup
This commit is contained in:
parent
c440e83828
commit
721b6c0da6
68 changed files with 1161 additions and 1036 deletions
|
@ -37,11 +37,11 @@
|
|||
"@yume-chan/struct": "workspace:^0.0.23"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.12.12",
|
||||
"@types/node": "^20.13.0",
|
||||
"@yume-chan/eslint-config": "workspace:^1.0.0",
|
||||
"@yume-chan/tsconfig": "workspace:^1.0.0",
|
||||
"jest": "^30.0.0-alpha.4",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier": "^3.3.0",
|
||||
"typescript": "^5.4.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ export class AdbServerNodeTcpConnector
|
|||
} else if (url.protocol === "unix:") {
|
||||
server.listen(url.pathname);
|
||||
} else {
|
||||
throw new Error(`Unsupported protocol ${url.protocol}`);
|
||||
throw new TypeError(`Unsupported protocol ${url.protocol}`);
|
||||
}
|
||||
} else {
|
||||
server.listen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue