Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Aug 23, 2024
1 parent 954cd1d commit fb62a67
Show file tree
Hide file tree
Showing 19 changed files with 52 additions and 63 deletions.
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion libraries/adb-daemon-webusb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion libraries/adb-server-node-tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion libraries/adb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
5 changes: 1 addition & 4 deletions libraries/adb/src/commands/reverse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// cspell: ignore killforward

import { AutoDisposable } from "@yume-chan/event";
import { BufferedReadableStream } from "@yume-chan/stream-extra";
import Struct, { ExactReadableEndedError, encodeUtf8 } from "@yume-chan/struct";

Expand Down Expand Up @@ -62,14 +61,12 @@ function decimalToNumber(buffer: Uint8Array) {

const OKAY = encodeUtf8("OKAY");

export class AdbReverseCommand extends AutoDisposable {
export class AdbReverseCommand {
protected adb: Adb;

readonly #deviceAddressToLocalAddress = new Map<string, string>();

constructor(adb: Adb) {
super();

this.adb = adb;
}

Expand Down
10 changes: 3 additions & 7 deletions libraries/adb/src/commands/sync/sync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AutoDisposable } from "@yume-chan/event";
import type { MaybeConsumable, ReadableStream } from "@yume-chan/stream-extra";

import type { Adb, AdbSocket } from "../../adb.js";
Expand Down Expand Up @@ -39,7 +38,7 @@ export interface AdbSyncWriteOptions {
dryRun?: boolean;
}

export class AdbSync extends AutoDisposable {
export class AdbSync {
protected _adb: Adb;
protected _socket: AdbSyncSocket;

Expand Down Expand Up @@ -70,8 +69,6 @@ export class AdbSync extends AutoDisposable {
}

constructor(adb: Adb, socket: AdbSocket) {
super();

this._adb = adb;
this._socket = new AdbSyncSocket(socket, adb.maxPayloadSize);

Expand Down Expand Up @@ -172,8 +169,7 @@ export class AdbSync extends AutoDisposable {
return this._socket.lock();
}

override dispose() {
super.dispose();
void this._socket.close();
dispose() {
return this._socket.close();
}
}
2 changes: 1 addition & 1 deletion libraries/android-bin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion libraries/event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@yume-chan/async": "^2.2.0"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion libraries/fetch-scrcpy-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"gh-release-fetch": "^4.0.3"
},
"devDependencies": {
"@types/node": "^22.4.1"
"@types/node": "^22.5.0"
}
}
2 changes: 1 addition & 1 deletion libraries/no-data-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"test": "run-test"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion libraries/scrcpy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion libraries/stream-extra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@yume-chan/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion libraries/struct/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@yume-chan/no-data-view": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
Expand Down
62 changes: 31 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion toolchain/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@eslint/js": "^9.9.0",
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"eslint": "^9.9.0",
"eslint-plugin-import-x": "^3.1.0",
"typescript": "^5.5.4",
Expand Down
2 changes: 1 addition & 1 deletion toolchain/package-lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {},
"keywords": [],
"dependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"json5": "^2.2.3"
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion toolchain/test-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"run-test": "wrapper.js"
},
"devDependencies": {
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"typescript": "^5.5.4"
}
}
7 changes: 1 addition & 6 deletions toolchain/test-runner/run-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,5 @@ const filterCoverage = test.pipe(
}),
);

// @ts-expect-error
test.pipe(spec()).pipe(process.stdout);
test
// @ts-expect-error
.pipe(lcov)
// @ts-expect-error
.pipe(createWriteStream(resolve(coverageFolder, "lcov.info")));
test.pipe(lcov).pipe(createWriteStream(resolve(coverageFolder, "lcov.info")));
3 changes: 2 additions & 1 deletion toolchain/test-runner/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const child = spawn(
process.execPath,
[
"--enable-source-maps",
"--experimental-test-coverage",
// Disable code coverage until https://github.com/nodejs/node/pull/54444 is released
// "--experimental-test-coverage",
fileURLToPath(import.meta.resolve("./run-test.js", import.meta.url)),
],
{
Expand Down

0 comments on commit fb62a67

Please sign in to comment.