edf2csv 0.8.25 → 0.8.27
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 +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/convert/plan.js +2 -2
- package/dist/convert/plan.js.map +1 -1
- package/dist/convert/run.js +1 -1
- package/dist/convert/run.js.map +1 -1
- package/dist/edf/header.js +4 -3
- package/dist/edf/header.js.map +1 -1
- package/dist/edf/reader.js +16 -3
- package/dist/edf/reader.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1996,7 +1996,11 @@ function optionalDecimals(raw) {
|
|
|
1996
1996
|
// Both were 20 and the comment on that constant already claims to be "[t]he largest
|
|
1997
1997
|
// `--decimals` accepts" — a claim this function was in a position to falsify.
|
|
1998
1998
|
if (!/^\d+$/u.test(text) || !Number.isInteger(value) || value < 0 || value > MAX_DECIMALS) {
|
|
1999
|
-
throw new OptionError(
|
|
1999
|
+
throw new OptionError(
|
|
2000
|
+
// Through `quotedValue`, whose docstring names this flag among the ones following its
|
|
2001
|
+
// rule and which this was the one call site not using — "the same rule, spelled once",
|
|
2002
|
+
// spelled twice.
|
|
2003
|
+
`--decimals must be a whole number between 0 and ${MAX_DECIMALS}, got "${quotedValue(raw)}".`);
|
|
2000
2004
|
}
|
|
2001
2005
|
return value;
|
|
2002
2006
|
}
|