(opts: ChildProcess.CommandOptions)
| 136 | } |
| 137 | |
| 138 | const fds = (opts: ChildProcess.CommandOptions) => { |
| 139 | if (Predicate.isUndefined(opts.additionalFds)) return [] |
| 140 | return Object.entries(opts.additionalFds) |
| 141 | .flatMap(([name, config]) => { |
| 142 | const fd = ChildProcess.parseFdName(name) |
| 143 | return Predicate.isUndefined(fd) ? [] : [{ fd, config }] |
| 144 | }) |
| 145 | .toSorted((a, b) => a.fd - b.fd) |
| 146 | } |
| 147 | |
| 148 | const stdios = ( |
| 149 | sin: ChildProcess.StdinConfig, |
no outgoing calls
no test coverage detected