@imferno/node 3.0.2-fix-catalogue-verified-clauses.71bf1fb → 3.0.2-fix-edition-resolution.4f4352f
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/codes.d.ts +1 -0
- package/codes.js +1 -0
- package/index.d.ts +2 -2
- package/package.json +7 -7
- package/types.d.ts +17 -0
package/codes.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare const codes: {
|
|
|
32
32
|
readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
|
|
33
33
|
};
|
|
34
34
|
readonly ST2067_2: {
|
|
35
|
+
readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
|
|
35
36
|
readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
|
|
36
37
|
readonly NoCpls: "ST2067-2/NoCpls";
|
|
37
38
|
readonly SizeMismatch: "ST2067-2/SizeMismatch";
|
package/codes.js
CHANGED
|
@@ -32,6 +32,7 @@ const codes = {
|
|
|
32
32
|
AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
|
|
33
33
|
},
|
|
34
34
|
ST2067_2: {
|
|
35
|
+
NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
|
|
35
36
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
36
37
|
NoCpls: "ST2067-2/NoCpls",
|
|
37
38
|
SizeMismatch: "ST2067-2/SizeMismatch",
|
package/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface SarifLog {
|
|
|
48
48
|
* Disk checks are always skipped (there is no package on disk).
|
|
49
49
|
*
|
|
50
50
|
* @param files - A map of filename to XML content (e.g. `{ "ASSETMAP.xml": "..." }`)
|
|
51
|
-
* @param options - Optional validation options (`coreSpec`, `app2eSpec`, `rules`, `aggregateRepeats`)
|
|
51
|
+
* @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `rules`, `aggregateRepeats`)
|
|
52
52
|
* @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
|
|
53
53
|
* @throws If the package cannot be parsed or the options are invalid.
|
|
54
54
|
*/
|
|
@@ -59,7 +59,7 @@ export declare function buildReport(files: Record<string, string>, options?: Val
|
|
|
59
59
|
* `ImfReport` summary. Prefer `validatePath` for new code.
|
|
60
60
|
*
|
|
61
61
|
* @param path - Path to the IMP directory
|
|
62
|
-
* @param options - Optional validation options (`coreSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
|
|
62
|
+
* @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
|
|
63
63
|
* @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
|
|
64
64
|
* @throws If the directory cannot be read, the package cannot be parsed, or the options are invalid.
|
|
65
65
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/node",
|
|
3
|
-
"version": "3.0.2-fix-
|
|
3
|
+
"version": "3.0.2-fix-edition-resolution.4f4352f",
|
|
4
4
|
"description": "Native Node.js bindings for the imferno SMPTE ST 2067 IMF validator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test": "vitest run"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@imferno/node-darwin-arm64": "3.0.2-fix-
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-fix-
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-fix-
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-fix-
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-
|
|
48
|
+
"@imferno/node-darwin-arm64": "3.0.2-fix-edition-resolution.4f4352f",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-fix-edition-resolution.4f4352f",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-fix-edition-resolution.4f4352f",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-edition-resolution.4f4352f",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-fix-edition-resolution.4f4352f",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-edition-resolution.4f4352f"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -1460,6 +1460,19 @@ export interface RuleValidationWarning {
|
|
|
1460
1460
|
/** Core constraints (ST 2067-2) edition to validate against. `"auto"` detects it from the CPL. */
|
|
1461
1461
|
export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1462
1462
|
|
|
1463
|
+
/**
|
|
1464
|
+
* Composition Playlist (ST 2067-3) edition to validate against. ST 2067-3:2016
|
|
1465
|
+
* and :2020 share one namespace; `"auto"` applies the newest unless the CPL
|
|
1466
|
+
* uses something only one edition defines, and reports the choice.
|
|
1467
|
+
*/
|
|
1468
|
+
export type CplSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* IAB plug-in (ST 2067-201) edition to validate against. Every edition shares
|
|
1472
|
+
* one namespace; `"auto"` applies the newest and reports the choice.
|
|
1473
|
+
*/
|
|
1474
|
+
export type IabSpec = "auto" | "v2019" | "v2021" | "v2026";
|
|
1475
|
+
|
|
1463
1476
|
/**
|
|
1464
1477
|
* App #2E (ST 2067-21) edition to validate against. `"auto"` uses the CPL's
|
|
1465
1478
|
* ApplicationIdentification; `"none"` skips application-profile validation.
|
|
@@ -1470,6 +1483,10 @@ export type App2eSpec = "auto" | "none" | "v2014" | "v2016" | "v2020" | "v2023"
|
|
|
1470
1483
|
export interface ValidateOptions {
|
|
1471
1484
|
/** Core constraints edition. Default: `"auto"`. */
|
|
1472
1485
|
coreSpec?: CoreSpec;
|
|
1486
|
+
/** Composition Playlist (ST 2067-3) edition. Default: `"auto"`. */
|
|
1487
|
+
cplSpec?: CplSpec;
|
|
1488
|
+
/** IAB plug-in (ST 2067-201) edition. Default: `"auto"`. */
|
|
1489
|
+
iabSpec?: IabSpec;
|
|
1473
1490
|
/** App #2E edition. Default: `"auto"`. */
|
|
1474
1491
|
app2eSpec?: App2eSpec;
|
|
1475
1492
|
/** ESLint-style per-rule severity overrides, keyed by code, rule suffix, glob or `source:<kind>`. */
|