(options)
| 66477 | error.isCanceled = isCanceled; |
| 66478 | error.killed = killed && !timedOut; |
| 66479 | return error; |
| 66480 | }; |
| 66481 | |
| 66482 | // node_modules/execa/lib/stdio.js |
| 66483 | var aliases = ["stdin", "stdout", "stderr"]; |
| 66484 | var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0); |
| 66485 | var normalizeStdio = (options) => { |
| 66486 | if (!options) { |
| 66487 | return; |
| 66488 | } |
| 66489 | const { stdio } = options; |
| 66490 | if (stdio === void 0) { |
| 66491 | return aliases.map((alias) => options[alias]); |
| 66492 | } |
| 66493 | if (hasAlias(options)) { |
| 66494 | throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`); |
| 66495 | } |
| 66496 | if (typeof stdio === "string") { |
| 66497 | return stdio; |
| 66498 | } |
| 66499 | if (!Array.isArray(stdio)) { |
| 66500 | throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); |
| 66501 | } |
no test coverage detected
searching dependent graphs…