Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix: improve tolerance to accidental logs in stdout when building
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Ibarluzea committed Jun 21, 2024
1 parent f3fb25e commit 241eb79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/soupify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ console.log(JSON.stringify(elements))
.stderr(debug.enabled ? "inheritPiped" : "piped")
.noThrow()

const rawSoup = processResult.stdout
// TODO we should send it to a temporarty file rather than rely on stdout
// which can easily be polluted
const rawSoup = processResult.stdout.replace(/^[^\[]*/, "")
const errText = processResult.stderr

debug(`deleting ${tmpFilePath}`)
Expand Down

0 comments on commit 241eb79

Please sign in to comment.