@oh-my-pi/pi-utils 18.2.7 → 18.2.9

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/ptree.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-utils",
3
- "version": "18.2.7",
3
+ "version": "18.2.9",
4
4
  "description": "Shared utilities for pi packages",
5
5
  "keywords": [
6
6
  "cli",
@@ -54,7 +54,7 @@
54
54
  "fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
55
55
  },
56
56
  "dependencies": {
57
- "@oh-my-pi/pi-natives": "18.2.7"
57
+ "@oh-my-pi/pi-natives": "18.2.9"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/bun": "^1.3.14"
package/src/ptree.ts CHANGED
@@ -462,7 +462,7 @@ export class ChildProcess<In extends InMask = InMask> {
462
462
  return out + dec.decode();
463
463
  }
464
464
 
465
- async #readBytes(): Promise<Uint8Array> {
465
+ async #readBytes(): Promise<Uint8Array<ArrayBuffer>> {
466
466
  const reader = this.proc.stdout.getReader();
467
467
  this.#openPipeReaders++;
468
468
  const chunks: Uint8Array[] = [];
@@ -497,7 +497,7 @@ export class ChildProcess<In extends InMask = InMask> {
497
497
  return bytes;
498
498
  }
499
499
 
500
- async #readOutputBytes(waitForCleanExit = false): Promise<Uint8Array> {
500
+ async #readOutputBytes(waitForCleanExit = false): Promise<Uint8Array<ArrayBuffer>> {
501
501
  const p = this.#readBytes();
502
502
  if (this.#nothrow) return p;
503
503
  const bytes = waitForCleanExit ? (await Promise.all([p, this.exitedCleanly]))[0] : await p;
@@ -514,7 +514,7 @@ export class ChildProcess<In extends InMask = InMask> {
514
514
  }
515
515
 
516
516
  async arrayBuffer(): Promise<ArrayBuffer> {
517
- return (await this.#readOutputBytes()).buffer as ArrayBuffer;
517
+ return (await this.#readOutputBytes()).buffer;
518
518
  }
519
519
 
520
520
  async bytes(): Promise<Uint8Array> {