edfcore 0.4.124 → 0.4.125
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/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/options.d.ts +5 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +5 -0
- package/dist/options.js.map +1 -1
- package/docs/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
- package/src/options.ts +5 -0
package/dist/constants.d.ts
CHANGED
|
@@ -109,5 +109,5 @@ export declare const SIGNAL_FIELD_BLOCK_OFFSETS: {
|
|
|
109
109
|
readonly reserved: 224;
|
|
110
110
|
};
|
|
111
111
|
/** Published package version. Kept in sync with package.json by a test. */
|
|
112
|
-
export declare const VERSION = "0.4.
|
|
112
|
+
export declare const VERSION = "0.4.125";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/dist/options.d.ts
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
* A plain `RangeError`, not an `EdfError`: this is a bug in the calling code rather than a problem
|
|
16
16
|
* with the file, which is the same split `isEdfError` documents.
|
|
17
17
|
*/
|
|
18
|
+
/**
|
|
19
|
+
* `undefined` takes the default; anything non-finite throws. The two are kept apart deliberately:
|
|
20
|
+
* an omitted option means "use the default", while a `NaN` means a caller computed something and
|
|
21
|
+
* got nothing — treating them alike would silently apply the default to a real mistake.
|
|
22
|
+
*/
|
|
18
23
|
export declare function requireFiniteOption(value: number | undefined, name: string, fallback: number): number;
|
|
19
24
|
/**
|
|
20
25
|
* `maxMaterializeBytes`, or the 256 MiB default.
|
package/dist/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAQR;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAQ1E"}
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAQR;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAQ1E"}
|
package/dist/options.js
CHANGED
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
* with the file, which is the same split `isEdfError` documents.
|
|
17
17
|
*/
|
|
18
18
|
import { DEFAULT_MAX_MATERIALIZE_BYTES } from './constants.js';
|
|
19
|
+
/**
|
|
20
|
+
* `undefined` takes the default; anything non-finite throws. The two are kept apart deliberately:
|
|
21
|
+
* an omitted option means "use the default", while a `NaN` means a caller computed something and
|
|
22
|
+
* got nothing — treating them alike would silently apply the default to a real mistake.
|
|
23
|
+
*/
|
|
19
24
|
export function requireFiniteOption(value, name, fallback) {
|
|
20
25
|
if (value === undefined)
|
|
21
26
|
return fallback;
|
package/dist/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,UAAU,mBAAmB,CACjC,KAAyB,EACzB,IAAY,EACZ,QAAgB;IAEhB,IAAI,KAAK,KAAK,SAA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AAI,MAAM,IAAI,CAAC;QAAE,OAAO,MAAM,CAAC;IAC/B,MAAM,IAAI,UAAU,CAClB,6DAA6D,MAAM,0BAA0B;QAC3F,0DAA0D;QAC1D,GAAG,6BAA6B,gBAAgB,CACnD,CAAC;AACJ,CAAC"}
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ alone does not tell you whether you were affected.
|
|
|
6
6
|
edfcore is pre-1.0. Patch releases have carried behaviour changes where the old behaviour was a
|
|
7
7
|
defect; those are called out below.
|
|
8
8
|
|
|
9
|
+
## 0.4.125
|
|
10
|
+
|
|
11
|
+
- **Added** a docblock to `requireFiniteOption` naming the distinction it exists to keep: an
|
|
12
|
+
omitted option means "use the default", a `NaN` means a caller computed something and got
|
|
13
|
+
nothing, and treating them alike would apply the default to a real mistake.
|
|
14
|
+
|
|
9
15
|
## 0.4.124
|
|
10
16
|
|
|
11
17
|
- **Added** a docblock to `SignalHeaderInput` naming the layout fact its shape follows from: the
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
package/src/options.ts
CHANGED
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
import { DEFAULT_MAX_MATERIALIZE_BYTES } from './constants.js';
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* `undefined` takes the default; anything non-finite throws. The two are kept apart deliberately:
|
|
23
|
+
* an omitted option means "use the default", while a `NaN` means a caller computed something and
|
|
24
|
+
* got nothing — treating them alike would silently apply the default to a real mistake.
|
|
25
|
+
*/
|
|
21
26
|
export function requireFiniteOption(
|
|
22
27
|
value: number | undefined,
|
|
23
28
|
name: string,
|