@oh-my-pi/pi-utils 10.3.2 → 10.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/stream.ts +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-utils",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.0",
|
|
4
4
|
"description": "Shared utilities for pi packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"winston-daily-rotate-file": "^5.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "^25.0
|
|
34
|
+
"@types/node": "^25.2.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"bun": ">=1.3.7"
|
package/src/stream.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { TextDecoderStream } from "node:stream/web";
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Sanitize binary output for display/storage.
|
|
5
3
|
* Removes characters that crash string-width or cause display issues:
|
|
@@ -81,7 +79,7 @@ export function createSanitizerStream(): TransformStream<string, string> {
|
|
|
81
79
|
* Create a transform stream that decodes text.
|
|
82
80
|
*/
|
|
83
81
|
export function createTextDecoderStream(): TransformStream<Uint8Array, string> {
|
|
84
|
-
return new TextDecoderStream(
|
|
82
|
+
return new TextDecoderStream() as TransformStream<Uint8Array, string>;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
/**
|