edf2csv 0.7.5 → 0.7.6

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/index.d.ts CHANGED
@@ -16,10 +16,11 @@ export type { Scaler } from './edf/scale.js';
16
16
  export { EdfError } from './edf/errors.js';
17
17
  export type { Diagnostic, DiagnosticCode, EdfErrorCode } from './edf/errors.js';
18
18
  export { convert, defaultOutputDir, ConversionError, TOOL_VERSION } from './convert/run.js';
19
- export type { ConvertOptions, ConvertResult, ConversionProgress, WrittenFile } from './convert/run.js';
19
+ export type { ConvertOptions, ConvertResult, ConversionProgress, WrittenFile, ConversionErrorCode, } from './convert/run.js';
20
20
  export { buildPlan, rateSlug, SPREADSHEET_ROW_LIMIT } from './convert/plan.js';
21
- export type { ConversionPlan, PlanOptions, PlanInput, RateGroup, PlannedChannel } from './convert/plan.js';
21
+ export type { ConversionPlan, PlanOptions, PlanInput, RateGroup, PlannedChannel, OutputEstimate, } from './convert/plan.js';
22
22
  export { selectChannels, buildColumnNames, ChannelSelectionError } from './convert/channels.js';
23
+ export type { ChannelSelection } from './convert/channels.js';
23
24
  export { OptionError } from './convert/options.js';
24
25
  export { parseTimeSpec, resolveRange, TimeRangeError } from './convert/time-range.js';
25
26
  export type { ResolvedRange } from './convert/time-range.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGlJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG5F,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["/**\n * Programmatic API.\n *\n * edf2csv is primarily a command-line tool, but the parser underneath is useful on\n * its own — reading an EDF header, listing channels, or streaming raw samples\n * without going through CSV at all.\n */\n\nexport { EdfFile, DEFAULT_CHUNK_BYTES } from './edf/reader.js';\nexport type { RecordBatch, ReadRecordsOptions } from './edf/reader.js';\n\nexport { parseHeader, formatRate, formatRates, describeFormat, formatWallClock, ANNOTATIONS_LABEL, BDF_ANNOTATIONS_LABEL } from './edf/header.js';\nexport type { EdfHeader, EdfHeaderInfo, EdfSignal } from './edf/header.js';\n\nexport { decodeRecordAnnotations } from './edf/annotations.js';\nexport type { Annotation, DecodedRecordAnnotations } from './edf/annotations.js';\n\nexport { makeScaler, quantizationStep, decimalsForSignal } from './edf/scale.js';\nexport type { Scaler } from './edf/scale.js';\n\nexport { EdfError } from './edf/errors.js';\nexport type { Diagnostic, DiagnosticCode, EdfErrorCode } from './edf/errors.js';\n\nexport { convert, defaultOutputDir, ConversionError, TOOL_VERSION } from './convert/run.js';\nexport type { ConvertOptions, ConvertResult, ConversionProgress, WrittenFile } from './convert/run.js';\n\nexport { buildPlan, rateSlug, SPREADSHEET_ROW_LIMIT } from './convert/plan.js';\nexport type { ConversionPlan, PlanOptions, PlanInput, RateGroup, PlannedChannel } from './convert/plan.js';\n\nexport { selectChannels, buildColumnNames, ChannelSelectionError } from './convert/channels.js';\nexport { OptionError } from './convert/options.js';\nexport { parseTimeSpec, resolveRange, TimeRangeError } from './convert/time-range.js';\nexport type { ResolvedRange } from './convert/time-range.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGlJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAsB5F,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAU/E,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["/**\n * Programmatic API.\n *\n * edf2csv is primarily a command-line tool, but the parser underneath is useful on\n * its own — reading an EDF header, listing channels, or streaming raw samples\n * without going through CSV at all.\n */\n\nexport { EdfFile, DEFAULT_CHUNK_BYTES } from './edf/reader.js';\nexport type { RecordBatch, ReadRecordsOptions } from './edf/reader.js';\n\nexport { parseHeader, formatRate, formatRates, describeFormat, formatWallClock, ANNOTATIONS_LABEL, BDF_ANNOTATIONS_LABEL } from './edf/header.js';\nexport type { EdfHeader, EdfHeaderInfo, EdfSignal } from './edf/header.js';\n\nexport { decodeRecordAnnotations } from './edf/annotations.js';\nexport type { Annotation, DecodedRecordAnnotations } from './edf/annotations.js';\n\nexport { makeScaler, quantizationStep, decimalsForSignal } from './edf/scale.js';\nexport type { Scaler } from './edf/scale.js';\n\nexport { EdfError } from './edf/errors.js';\nexport type { Diagnostic, DiagnosticCode, EdfErrorCode } from './edf/errors.js';\n\nexport { convert, defaultOutputDir, ConversionError, TOOL_VERSION } from './convert/run.js';\n/*\n ConversionErrorCode is here because `ConversionError.code` has it.\n\n A caller that catches one and wants to branch on the code could read the field — it is\n typed — but could not name the type, so there was no way to write the function taking it,\n the Record keyed by it, or the exhaustive switch over it. Its two siblings, EdfErrorCode\n and DiagnosticCode, have always been exported; this one was reachable and unnameable, and\n `import type { ConversionErrorCode } from 'edf2csv'` was a TS2724 telling the reader they\n probably meant ConversionError.\n\n Same for OutputEstimate and ChannelSelection below. A type that the public API hands you\n is part of the public API whether or not it was listed.\n*/\nexport type {\n ConvertOptions,\n ConvertResult,\n ConversionProgress,\n WrittenFile,\n ConversionErrorCode,\n} from './convert/run.js';\n\nexport { buildPlan, rateSlug, SPREADSHEET_ROW_LIMIT } from './convert/plan.js';\nexport type {\n ConversionPlan,\n PlanOptions,\n PlanInput,\n RateGroup,\n PlannedChannel,\n OutputEstimate,\n} from './convert/plan.js';\n\nexport { selectChannels, buildColumnNames, ChannelSelectionError } from './convert/channels.js';\nexport type { ChannelSelection } from './convert/channels.js';\nexport { OptionError } from './convert/options.js';\nexport { parseTimeSpec, resolveRange, TimeRangeError } from './convert/time-range.js';\nexport type { ResolvedRange } from './convert/time-range.js';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edf2csv",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Convert EDF, EDF+ and BDF biosignal recordings (European Data Format) to CSV from the command line. Local, streaming, and never resamples or alters units.",
5
5
  "keywords": [
6
6
  "edf",