mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
chore: update dependencies
This commit is contained in:
parent
97566445dc
commit
b0bd64c113
25 changed files with 347 additions and 325 deletions
|
@ -41,10 +41,10 @@
|
|||
"source-map-support": "^0.5.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,12 +30,13 @@
|
|||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@yume-chan/adb": "workspace:^"
|
||||
"@yume-chan/adb": "workspace:^",
|
||||
"@yume-chan/async": "^4.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,11 +39,11 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,9 +142,21 @@ export class AdbDaemonWebUsbConnection
|
|||
new MaybeConsumable.WritableStream({
|
||||
write: async (chunk) => {
|
||||
try {
|
||||
if (
|
||||
typeof SharedArrayBuffer !== "undefined" &&
|
||||
chunk.buffer instanceof SharedArrayBuffer
|
||||
) {
|
||||
// Copy data to a non-shared ArrayBuffer
|
||||
const copy = new Uint8Array(chunk.byteLength);
|
||||
copy.set(chunk);
|
||||
chunk = copy;
|
||||
}
|
||||
|
||||
await device.raw.transferOut(
|
||||
outEndpoint.endpointNumber,
|
||||
chunk,
|
||||
// Already checked `chunk` has a non-shared ArrayBuffer
|
||||
// https://github.com/WICG/webusb/issues/243
|
||||
chunk as Uint8Array<ArrayBuffer>,
|
||||
);
|
||||
|
||||
// In USB protocol, a not-full packet indicates the end of a transfer.
|
||||
|
|
|
@ -41,11 +41,11 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,10 +38,10 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,11 +39,11 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,11 +37,11 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,6 @@
|
|||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ export async function aoaHidRegister(
|
|||
export async function aoaHidSetReportDescriptor(
|
||||
device: USBDevice,
|
||||
accessoryId: number,
|
||||
reportDescriptor: Uint8Array,
|
||||
reportDescriptor: BufferSource,
|
||||
) {
|
||||
await device.controlTransferOut(
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ export async function aoaHidUnregister(device: USBDevice, accessoryId: number) {
|
|||
export async function aoaHidSendInputReport(
|
||||
device: USBDevice,
|
||||
accessoryId: number,
|
||||
event: Uint8Array,
|
||||
event: BufferSource,
|
||||
) {
|
||||
await device.controlTransferOut(
|
||||
{
|
||||
|
@ -80,9 +80,9 @@ export class AoaHidDevice {
|
|||
static async register(
|
||||
device: USBDevice,
|
||||
accessoryId: number,
|
||||
reportDescriptor: Uint8Array,
|
||||
reportDescriptor: BufferSource,
|
||||
) {
|
||||
await aoaHidRegister(device, accessoryId, reportDescriptor.length);
|
||||
await aoaHidRegister(device, accessoryId, reportDescriptor.byteLength);
|
||||
await aoaHidSetReportDescriptor(device, accessoryId, reportDescriptor);
|
||||
return new AoaHidDevice(device, accessoryId);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ export class AoaHidDevice {
|
|||
this.#accessoryId = accessoryId;
|
||||
}
|
||||
|
||||
async sendInputReport(event: Uint8Array) {
|
||||
async sendInputReport(event: BufferSource) {
|
||||
await aoaHidSendInputReport(this.#device, this.#accessoryId, event);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,11 +36,11 @@
|
|||
"@yume-chan/async": "^4.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@
|
|||
"gh-release-fetch": "^4.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15"
|
||||
"@types/node": "^24.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
"test": "run-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"tinybench": "^4.0.1",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/audioworklet": "^0.0.80",
|
||||
"@types/audioworklet": "^0.0.82",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,6 @@
|
|||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@
|
|||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,11 +39,11 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,11 +36,11 @@
|
|||
"@yume-chan/struct": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,11 +38,11 @@
|
|||
"@yume-chan/no-data-view": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"@yume-chan/eslint-config": "workspace:^",
|
||||
"@yume-chan/test-runner": "workspace:^",
|
||||
"@yume-chan/tsconfig": "workspace:^",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// So there is no point to do that. Let's just assume they exist in global.
|
||||
|
||||
interface TextEncoder {
|
||||
encode(input: string): Uint8Array;
|
||||
encode(input: string): Uint8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface TextDecoder {
|
||||
|
@ -29,7 +29,7 @@ const SharedEncoder = /* #__PURE__ */ new TextEncoder();
|
|||
const SharedDecoder = /* #__PURE__ */ new TextDecoder();
|
||||
|
||||
/* #__NO_SIDE_EFFECTS__ */
|
||||
export function encodeUtf8(input: string): Uint8Array {
|
||||
export function encodeUtf8(input: string): Uint8Array<ArrayBuffer> {
|
||||
return SharedEncoder.encode(input);
|
||||
}
|
||||
|
||||
|
|
565
pnpm-lock.yaml
generated
565
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -8,12 +8,12 @@
|
|||
"run-eslint": "run-eslint.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@eslint/js": "^9.31.0",
|
||||
"@types/node": "^24.0.15",
|
||||
"eslint": "^9.31.0",
|
||||
"@eslint/js": "^9.32.0",
|
||||
"@types/node": "^24.1.0",
|
||||
"eslint": "^9.32.0",
|
||||
"eslint-plugin-import-x": "^4.16.1",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.37.0"
|
||||
"typescript": "^5.9.2",
|
||||
"typescript-eslint": "^8.38.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.6.2"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"scripts": {},
|
||||
"keywords": [],
|
||||
"dependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node": "^24.1.0",
|
||||
"json5": "^2.2.3"
|
||||
},
|
||||
"author": "",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@rollup/plugin-typescript": "^12.1.4",
|
||||
"rollup": "^4.45.1",
|
||||
"rollup": "^4.46.2",
|
||||
"tslib": "^2.8.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"run-test": "wrapper.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.15",
|
||||
"typescript": "^5.8.3"
|
||||
"@types/node": "^24.1.0",
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue