edf2csv 0.8.14 → 0.8.16
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/convert/run.js +10 -0
- package/dist/convert/run.js.map +1 -1
- package/dist/edf/annotations.js +20 -0
- package/dist/edf/annotations.js.map +1 -1
- package/dist/edf/header.js +25 -0
- package/dist/edf/header.js.map +1 -1
- package/package.json +1 -1
package/dist/convert/run.js
CHANGED
|
@@ -274,6 +274,16 @@ async function findStaleOutput(outputDir, written) {
|
|
|
274
274
|
];
|
|
275
275
|
}
|
|
276
276
|
export function defaultOutputDir(inputPath) {
|
|
277
|
+
/*
|
|
278
|
+
The third export whose only argument is a path, and the one left handing a wrong value on.
|
|
279
|
+
|
|
280
|
+
`path.basename` refuses a non-string with Node's own text — `The "path" argument must be
|
|
281
|
+
of type string. Received type number (5)` — which names a parameter of `path`, not one of
|
|
282
|
+
this function, and reaches a caller who never called `path`. `convert` got this check in
|
|
283
|
+
0.7.x and `EdfFile.open` in 0.8.9; this is what the api page tells you to call to find out
|
|
284
|
+
where those two would write, so it is reached by exactly the same caller.
|
|
285
|
+
*/
|
|
286
|
+
assertInputPath(inputPath);
|
|
277
287
|
const base = path.basename(inputPath, path.extname(inputPath));
|
|
278
288
|
return path.join(path.dirname(inputPath), `${base}_csv`);
|
|
279
289
|
}
|