edfcore 0.4.89 → 0.4.90
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/io/blob.d.ts +5 -0
- package/dist/io/blob.d.ts.map +1 -1
- package/dist/io/blob.js +5 -0
- package/dist/io/blob.js.map +1 -1
- package/docs/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
- package/src/io/blob.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.90";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/dist/io/blob.d.ts
CHANGED
|
@@ -10,5 +10,10 @@
|
|
|
10
10
|
* contract is verified rather than assumed.
|
|
11
11
|
*/
|
|
12
12
|
import type { BlobLike, ByteSource } from '../types.js';
|
|
13
|
+
/**
|
|
14
|
+
* A `ByteSource` over a `Blob` or `File` — the browser entry point, and what an
|
|
15
|
+
* `<input type="file">` hands you. Reads are ranged, so opening a file the user picked costs the
|
|
16
|
+
* header rather than the recording.
|
|
17
|
+
*/
|
|
13
18
|
export declare function blobSource(blob: BlobLike): ByteSource;
|
|
14
19
|
//# sourceMappingURL=blob.d.ts.map
|
package/dist/io/blob.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../src/io/blob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAe,MAAM,aAAa,CAAC;AAGrE,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,CAerD"}
|
|
1
|
+
{"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../src/io/blob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAe,MAAM,aAAa,CAAC;AAGrE;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,CAerD"}
|
package/dist/io/blob.js
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
* contract is verified rather than assumed.
|
|
11
11
|
*/
|
|
12
12
|
import { assertExactRead, assertReadRange, throwIfAborted } from './source.js';
|
|
13
|
+
/**
|
|
14
|
+
* A `ByteSource` over a `Blob` or `File` — the browser entry point, and what an
|
|
15
|
+
* `<input type="file">` hands you. Reads are ranged, so opening a file the user picked costs the
|
|
16
|
+
* header rather than the recording.
|
|
17
|
+
*/
|
|
13
18
|
export function blobSource(blob) {
|
|
14
19
|
const byteLength = blob.size;
|
|
15
20
|
return {
|
package/dist/io/blob.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.js","sourceRoot":"","sources":["../../src/io/blob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/E,MAAM,UAAU,UAAU,CAAC,IAAc;IACvC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;IAE7B,OAAO;QACL,UAAU;QACV,KAAK,CAAC,IAAI,CAAC,MAAc,EAAE,MAAc,EAAE,OAAqB;YAC9D,cAAc,CAAC,OAAO,CAAC,CAAC;YACxB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;YAC5C,IAAI,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;YAC3C,kEAAkE;YAClE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;YACvE,cAAc,CAAC,OAAO,CAAC,CAAC;YACxB,OAAO,eAAe,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACjE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"blob.js","sourceRoot":"","sources":["../../src/io/blob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/E;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAc;IACvC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;IAE7B,OAAO;QACL,UAAU;QACV,KAAK,CAAC,IAAI,CAAC,MAAc,EAAE,MAAc,EAAE,OAAqB;YAC9D,cAAc,CAAC,OAAO,CAAC,CAAC;YACxB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;YAC5C,IAAI,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;YAC3C,kEAAkE;YAClE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;YACvE,cAAc,CAAC,OAAO,CAAC,CAAC;YACxB,OAAO,eAAe,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACjE,CAAC;KACF,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.90
|
|
10
|
+
|
|
11
|
+
- **Added** a docblock to `blobSource`. It is the browser entry point and the first call most
|
|
12
|
+
visitors write, and hovering it showed nothing — the module comment above explains the shim, not
|
|
13
|
+
what the function is for.
|
|
14
|
+
|
|
9
15
|
## 0.4.89
|
|
10
16
|
|
|
11
17
|
- **Added** a docblock to `FormatAnnotationsOptions` stating the property that makes `maxItems`
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
package/src/io/blob.ts
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
import type { BlobLike, ByteSource, ReadOptions } from '../types.js';
|
|
14
14
|
import { assertExactRead, assertReadRange, throwIfAborted } from './source.js';
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* A `ByteSource` over a `Blob` or `File` — the browser entry point, and what an
|
|
18
|
+
* `<input type="file">` hands you. Reads are ranged, so opening a file the user picked costs the
|
|
19
|
+
* header rather than the recording.
|
|
20
|
+
*/
|
|
16
21
|
export function blobSource(blob: BlobLike): ByteSource {
|
|
17
22
|
const byteLength = blob.size;
|
|
18
23
|
|