mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 10:49:24 +02:00
fix(stream): re-export global TextDecoder
stream instead of implementing our own one which doesn't work correctly in stream mode
This commit is contained in:
parent
7bb1063a12
commit
edf532caf4
14 changed files with 78 additions and 42 deletions
|
@ -5,8 +5,8 @@ import { AdbCommandBase, AdbSubprocessNoneProtocol } from "@yume-chan/adb";
|
|||
import type { ReadableStream } from "@yume-chan/stream-extra";
|
||||
import {
|
||||
BufferedTransformStream,
|
||||
DecodeUtf8Stream,
|
||||
SplitStringStream,
|
||||
TextDecoderStream,
|
||||
WrapReadableStream,
|
||||
WritableStream,
|
||||
} from "@yume-chan/stream-extra";
|
||||
|
@ -421,7 +421,7 @@ export class Logcat extends AdbCommandBase {
|
|||
|
||||
const result: LogSize[] = [];
|
||||
await stdout
|
||||
.pipeThrough(new DecodeUtf8Stream())
|
||||
.pipeThrough(new TextDecoderStream())
|
||||
.pipeThrough(new SplitStringStream("\n"))
|
||||
.pipeTo(
|
||||
new WritableStream({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue