mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 19:42:15 +02:00
chore: update dependencies
This commit is contained in:
parent
835796ec7b
commit
677aabc73c
25 changed files with 192 additions and 146 deletions
|
@ -37,7 +37,7 @@
|
|||
"@yume-chan/struct": "workspace:^0.0.24"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.2.0",
|
||||
"@types/node": "^22.4.1",
|
||||
"@yume-chan/eslint-config": "workspace:^1.0.0",
|
||||
"@yume-chan/tsconfig": "workspace:^1.0.0",
|
||||
"prettier": "^3.3.3",
|
||||
|
|
|
@ -37,8 +37,8 @@ function nodeSocketToConnection(
|
|||
});
|
||||
}),
|
||||
writable: new WritableStream<Uint8Array>({
|
||||
write: async (chunk) => {
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
write: (chunk) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
socket.write(chunk, (err) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
|
@ -58,6 +58,11 @@ function nodeSocketToConnection(
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* An `AdbServerClient.ServerConnector` implementation for Node.js.
|
||||
*
|
||||
* [Online Documentation](https://docs.tangoapp.dev/tango/server/client/)
|
||||
*/
|
||||
export class AdbServerNodeTcpConnector
|
||||
implements AdbServerClient.ServerConnector
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue