hotfix for alpha.15 (#2838)

* hotfix for alpha.15

* sdk version bump
This commit is contained in:
Aiden McClelland
2025-02-24 13:08:02 -07:00
committed by GitHub
parent 80461a78b0
commit f55af7da4c
6 changed files with 50 additions and 36 deletions

View File

@@ -263,18 +263,27 @@ export class SubContainer implements ExecSpawnable {
options || {},
)
if (options?.input) {
await new Promise<null>((resolve, reject) =>
child.stdin.write(options.input, (e) => {
if (e) {
reject(e)
} else {
resolve(null)
}
}),
)
await new Promise<null>((resolve) => child.stdin.end(resolve))
await new Promise<null>((resolve, reject) => {
try {
child.stdin.write(options.input, (e) => {
if (e) {
reject(e)
} else {
resolve(null)
}
})
} catch (e) {
reject(e)
}
})
await new Promise<null>((resolve, reject) => {
try {
child.stdin.end(resolve)
} catch (e) {
reject(e)
}
})
}
const pid = child.pid
const stdout = { data: "" as string }
const stderr = { data: "" as string }
const appendData =