edf2csv 0.8.49 → 0.8.51

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 CHANGED
@@ -18,7 +18,7 @@ import process from 'node:process';
18
18
  import { EdfError } from './edf/errors.js';
19
19
  import { EdfFile } from './edf/reader.js';
20
20
  import { buildPlan, withoutFileRateWarning } from './convert/plan.js';
21
- import { ConversionError, USAGE_ERROR_CODES, auditStdout, convert, defaultOutputDir, describeFsError, descriptionDiagnostics, emptyAnnotations, durationDiagnostics, requestedAnnotationWindow, noAnnotations, noSignalFile, stdoutRefusal, } from './convert/run.js';
21
+ import { ConversionError, USAGE_ERROR_CODES, auditStdout, convert, defaultOutputDir, describeFsError, descriptionDiagnostics, emptyAnnotations, withSidecarsUnwritten, durationDiagnostics, requestedAnnotationWindow, noAnnotations, noSignalFile, stdoutRefusal, } from './convert/run.js';
22
22
  import { ChannelSelectionError } from './convert/channels.js';
23
23
  // Shared with the library so a bad option is the same error whichever way it arrived.
24
24
  import { MAX_DECIMALS, OptionError } from './convert/options.js';
@@ -1046,7 +1046,12 @@ async function showInfo(input, shared, asJson, jsonIndent, batch = false, toStdo
1046
1046
  audit?.verify();
1047
1047
  // Under --json the warnings travel inside the document, exactly as they do for a
1048
1048
  // conversion, so stderr stays empty and the whole result is one parseable thing.
1049
- const diagnostics = [...withTimingPromiseKept(withoutFileRateWarning(file.diagnostics), timing.starts !== null), ...plan.diagnostics];
1049
+ // `--stdout` writes no sidecars, and `--info --stdout` describes that run; see
1050
+ // withSidecarsUnwritten.
1051
+ const diagnostics = withSidecarsUnwritten([
1052
+ ...withTimingPromiseKept(withoutFileRateWarning(file.diagnostics), timing.starts !== null),
1053
+ ...plan.diagnostics,
1054
+ ], toStdout);
1050
1055
  if (!asJson && diagnostics.length > 0) {
1051
1056
  /*
1052
1057
  Named when there is more than one recording to confuse it with.