@f5-sales-demo/pi-utils 19.64.2 → 19.65.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/ptree.ts +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/pi-utils",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.65.0",
|
|
5
5
|
"description": "Shared utilities for pi packages",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/bun": "^1.3",
|
|
42
|
-
"@f5-sales-demo/pi-natives": "19.
|
|
42
|
+
"@f5-sales-demo/pi-natives": "19.65.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"bun": ">=1.3.7"
|
package/src/ptree.ts
CHANGED
|
@@ -250,7 +250,9 @@ export class ChildProcess<In extends InMask = InMask> {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
async blob(): Promise<Blob> {
|
|
253
|
-
|
|
253
|
+
// Copy into a fresh ArrayBuffer-backed view so the Blob part is lib-portable:
|
|
254
|
+
// lib.dom's BlobPart requires Uint8Array<ArrayBuffer>, not <ArrayBufferLike>.
|
|
255
|
+
const p = this.#readStdoutCapped().then(bytes => new Blob([new Uint8Array(bytes)]));
|
|
254
256
|
if (this.#nothrow) return p;
|
|
255
257
|
const [blob] = await Promise.all([p, this.exitedCleanly]);
|
|
256
258
|
return blob;
|