edf2csv 0.7.105 → 0.7.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +17 -1
- package/dist/cli.js.map +1 -1
- package/dist/edf/header.js +13 -5
- package/dist/edf/header.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1652,7 +1652,23 @@ async function convertInChild(input, destination, values, running) {
|
|
|
1652
1652
|
});
|
|
1653
1653
|
child.on('error', (error) => {
|
|
1654
1654
|
running.delete(child);
|
|
1655
|
-
|
|
1655
|
+
/*
|
|
1656
|
+
Escaped, which every other place this file prints a recording's name has been since
|
|
1657
|
+
0.5.67 and this one was not.
|
|
1658
|
+
|
|
1659
|
+
A file name is untrusted text — the filesystem supplies it and a recording inside a
|
|
1660
|
+
scanned folder may be called anything, including a name carrying an ESC byte — and
|
|
1661
|
+
`named`, `reportError`, the `[n/m]` header and the interrupt handler all put it
|
|
1662
|
+
through `printable`. This line is the one that fires when the fork itself fails, which
|
|
1663
|
+
is the moment a batch of five hundred at `--jobs auto` runs out of file descriptors,
|
|
1664
|
+
and it is the only line in this file that prints a name straight to stderr.
|
|
1665
|
+
*/
|
|
1666
|
+
resolve({
|
|
1667
|
+
code: EXIT_ERROR,
|
|
1668
|
+
out,
|
|
1669
|
+
err: `${err}error: ${printable(input)}: ${printableLines(error.message, ' ')}\n`,
|
|
1670
|
+
report,
|
|
1671
|
+
});
|
|
1656
1672
|
});
|
|
1657
1673
|
child.on('close', (code, signal) => {
|
|
1658
1674
|
running.delete(child);
|