@imferno/wasm 3.0.2-fix-edition-resolution.8bb65e0 → 3.0.2-fix-fuzz-parse-xml-crash.5eb3b3f
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/README.md +3 -1
- package/codes.d.ts +2 -0
- package/codes.js +2 -0
- package/imferno_wasm.d.ts +6 -3
- package/imferno_wasm.js +6 -3
- package/imferno_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/types.d.ts +13 -6
package/README.md
CHANGED
|
@@ -123,7 +123,9 @@ All exports are **async** (WASM must be initialized before use).
|
|
|
123
123
|
|
|
124
124
|
| Field | Values | Default |
|
|
125
125
|
|-------|--------|---------|
|
|
126
|
-
| `coreSpec` | `"auto"`, `"v2013"`, `"v2016"`, `"v2020"` | auto-detect |
|
|
126
|
+
| `coreSpec` | `"auto"`, `"v2013"`, `"v2016"`, `"v2020"` (ST 2067-2; a pin also pins the editions it cites: ST 2067-3, ST 2067-201, ST 377-1/-4) | auto-detect |
|
|
127
|
+
| `cplSpec` | `"auto"`, `"v2013"`, `"v2016"`, `"v2020"` (ST 2067-3; wins over the one `coreSpec` implies) | auto-detect |
|
|
128
|
+
| `iabSpec` | `"auto"`, `"v2019"`, `"v2021"`, `"v2026"` (ST 2067-201; wins over the one `coreSpec` implies) | auto-detect |
|
|
127
129
|
| `app2eSpec` | `"auto"`, `"none"`, `"v2014"`, `"v2016"`, `"v2020"`, `"v2023"`, `"v2026"` | auto-detect |
|
|
128
130
|
| `rules` | ESLint-style rules object (`{ [code]: severity }`) | all enabled |
|
|
129
131
|
|
package/codes.d.ts
CHANGED
|
@@ -235,6 +235,8 @@ export declare const codes: {
|
|
|
235
235
|
readonly IMFERNO: {
|
|
236
236
|
readonly EditionAssumed: "IMFERNO/EditionAssumed";
|
|
237
237
|
readonly EditionConflict: "IMFERNO/EditionConflict";
|
|
238
|
+
readonly EditionPinned: "IMFERNO/EditionPinned";
|
|
239
|
+
readonly PinNotApplied: "IMFERNO/PinNotApplied";
|
|
238
240
|
readonly DeliveryNotChecked: "IMFERNO/DeliveryNotChecked";
|
|
239
241
|
readonly OpenFailed: "IMFERNO/OpenFailed";
|
|
240
242
|
readonly PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed";
|
package/codes.js
CHANGED
|
@@ -235,6 +235,8 @@ export const codes = {
|
|
|
235
235
|
IMFERNO: {
|
|
236
236
|
EditionAssumed: "IMFERNO/EditionAssumed",
|
|
237
237
|
EditionConflict: "IMFERNO/EditionConflict",
|
|
238
|
+
EditionPinned: "IMFERNO/EditionPinned",
|
|
239
|
+
PinNotApplied: "IMFERNO/PinNotApplied",
|
|
238
240
|
DeliveryNotChecked: "IMFERNO/DeliveryNotChecked",
|
|
239
241
|
OpenFailed: "IMFERNO/OpenFailed",
|
|
240
242
|
PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed",
|
package/imferno_wasm.d.ts
CHANGED
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
* validation results. This is the same JSON that the CLI `export` command produces.
|
|
12
12
|
*
|
|
13
13
|
* Options (all optional):
|
|
14
|
-
* - `coreSpec`: `"auto"` | `"v2013"` | `"v2016"` | `"v2020"`
|
|
15
|
-
*
|
|
16
|
-
* - `
|
|
14
|
+
* - `coreSpec`: `"auto"` | `"v2013"` | `"v2016"` | `"v2020"` (ST 2067-2; a
|
|
15
|
+
* pin also pins the editions it cites: ST 2067-3, ST 2067-201, ST 377-1/-4)
|
|
16
|
+
* - `cplSpec`: `"auto"` | `"v2013"` | `"v2016"` | `"v2020"` (ST 2067-3; wins
|
|
17
|
+
* over the edition `coreSpec` implies)
|
|
18
|
+
* - `iabSpec`: `"auto"` | `"v2019"` | `"v2021"` | `"v2026"` (ST 2067-201; wins
|
|
19
|
+
* over the edition `coreSpec` implies)
|
|
17
20
|
* - `app2eSpec`: `"auto"` | `"none"` | `"v2014"` | `"v2016"` | `"v2020"` | `"v2023"` | `"v2026"`
|
|
18
21
|
* - `rules`: ESLint-style rules configuration object
|
|
19
22
|
*/
|
package/imferno_wasm.js
CHANGED
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
* validation results. This is the same JSON that the CLI `export` command produces.
|
|
11
11
|
*
|
|
12
12
|
* Options (all optional):
|
|
13
|
-
* - `coreSpec`: `"auto"` | `"v2013"` | `"v2016"` | `"v2020"`
|
|
14
|
-
*
|
|
15
|
-
* - `
|
|
13
|
+
* - `coreSpec`: `"auto"` | `"v2013"` | `"v2016"` | `"v2020"` (ST 2067-2; a
|
|
14
|
+
* pin also pins the editions it cites: ST 2067-3, ST 2067-201, ST 377-1/-4)
|
|
15
|
+
* - `cplSpec`: `"auto"` | `"v2013"` | `"v2016"` | `"v2020"` (ST 2067-3; wins
|
|
16
|
+
* over the edition `coreSpec` implies)
|
|
17
|
+
* - `iabSpec`: `"auto"` | `"v2019"` | `"v2021"` | `"v2026"` (ST 2067-201; wins
|
|
18
|
+
* over the edition `coreSpec` implies)
|
|
16
19
|
* - `app2eSpec`: `"auto"` | `"none"` | `"v2014"` | `"v2016"` | `"v2020"` | `"v2023"` | `"v2026"`
|
|
17
20
|
* - `rules`: ESLint-style rules configuration object
|
|
18
21
|
* @param {any} files
|
package/imferno_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/wasm",
|
|
3
|
-
"version": "3.0.2-fix-
|
|
3
|
+
"version": "3.0.2-fix-fuzz-parse-xml-crash.5eb3b3f",
|
|
4
4
|
"description": "Fast, type-safe SMPTE ST 2067 IMF parser for JavaScript and TypeScript",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
package/types.d.ts
CHANGED
|
@@ -1457,19 +1457,26 @@ export interface RuleValidationWarning {
|
|
|
1457
1457
|
reason: RuleValidationReason;
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
-
/**
|
|
1460
|
+
/**
|
|
1461
|
+
* Core constraints (ST 2067-2) edition to validate against. `"auto"` detects
|
|
1462
|
+
* it from the package and CPLs. A pinned edition also pins the editions it
|
|
1463
|
+
* cites (ST 2067-3, ST 2067-201 for IAB, ST 377-1/377-4 for MXF), over the
|
|
1464
|
+
* documents' namespaces, unless `cplSpec` / `iabSpec` pin those separately.
|
|
1465
|
+
*/
|
|
1461
1466
|
export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1462
1467
|
|
|
1463
1468
|
/**
|
|
1464
|
-
* Composition Playlist (ST 2067-3) edition to validate against
|
|
1465
|
-
* and :2020 share one namespace;
|
|
1466
|
-
* uses something only one edition
|
|
1469
|
+
* Composition Playlist (ST 2067-3) edition to validate against; wins over the
|
|
1470
|
+
* edition `coreSpec` implies. ST 2067-3:2016 and :2020 share one namespace;
|
|
1471
|
+
* `"auto"` applies the newest unless the CPL uses something only one edition
|
|
1472
|
+
* defines, and reports the choice.
|
|
1467
1473
|
*/
|
|
1468
1474
|
export type CplSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1469
1475
|
|
|
1470
1476
|
/**
|
|
1471
|
-
* IAB plug-in (ST 2067-201) edition to validate against
|
|
1472
|
-
* one namespace; `"auto"` applies
|
|
1477
|
+
* IAB plug-in (ST 2067-201) edition to validate against; wins over the edition
|
|
1478
|
+
* `coreSpec` implies. Every edition shares one namespace; `"auto"` applies
|
|
1479
|
+
* the newest and reports the choice.
|
|
1473
1480
|
*/
|
|
1474
1481
|
export type IabSpec = "auto" | "v2019" | "v2021" | "v2026";
|
|
1475
1482
|
|