forked from vitest-dev/vitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: apply patch from
tinylibs/tinyexec#41
- Loading branch information
1 parent
56ecb3c
commit fc371df
Showing
5 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,8 @@ | |
"[email protected]": "patches/[email protected]", | ||
"@types/[email protected]": "patches/@[email protected]", | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
"[email protected]": "patches/[email protected]", | ||
"tinyexec": "patches/tinyexec.patch" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/dist/main.cjs b/dist/main.cjs | ||
index dcc8a29741f99dc5dbe2d812197ec512d92db682..9fcd951769284bf645a15833b1efc976816f9e71 100644 | ||
--- a/dist/main.cjs | ||
+++ b/dist/main.cjs | ||
@@ -509,12 +509,12 @@ var y = class { | ||
if (!e) | ||
throw new Error("No process was started"); | ||
let n = "", r = ""; | ||
- if (this._streamErr) | ||
- for await (let o of this._streamErr) | ||
- n += o.toString(); | ||
if (this._streamOut) | ||
for await (let o of this._streamOut) | ||
r += o.toString(); | ||
+ if (this._streamErr) | ||
+ for await (let o of this._streamErr) | ||
+ n += o.toString(); | ||
if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError) | ||
throw this._thrownError; | ||
let s = { | ||
diff --git a/dist/main.js b/dist/main.js | ||
index 52f8f317d27fff0279305dbaf998e310b46a34f4..cba25835975aa12fb3e01ee463bc89d7cf51ab92 100644 | ||
--- a/dist/main.js | ||
+++ b/dist/main.js | ||
@@ -513,12 +513,12 @@ var R = class { | ||
if (!e) | ||
throw new Error("No process was started"); | ||
let n = "", r = ""; | ||
- if (this._streamErr) | ||
- for await (let o of this._streamErr) | ||
- n += o.toString(); | ||
if (this._streamOut) | ||
for await (let o of this._streamOut) | ||
r += o.toString(); | ||
+ if (this._streamErr) | ||
+ for await (let o of this._streamErr) | ||
+ n += o.toString(); | ||
if (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError) | ||
throw this._thrownError; | ||
let s = { |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters