@imferno/node 3.0.2-fix-edition-resolution.37dba57 → 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 +8 -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`, `cplSpec`, `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`, `cplSpec`, `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-edition-resolution.
|
|
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-edition-resolution.
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-fix-edition-resolution.
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-fix-edition-resolution.
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-edition-resolution.
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-fix-edition-resolution.
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-edition-resolution.
|
|
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
|
@@ -1467,6 +1467,12 @@ export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
|
1467
1467
|
*/
|
|
1468
1468
|
export type CplSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1469
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
|
+
|
|
1470
1476
|
/**
|
|
1471
1477
|
* App #2E (ST 2067-21) edition to validate against. `"auto"` uses the CPL's
|
|
1472
1478
|
* ApplicationIdentification; `"none"` skips application-profile validation.
|
|
@@ -1479,6 +1485,8 @@ export interface ValidateOptions {
|
|
|
1479
1485
|
coreSpec?: CoreSpec;
|
|
1480
1486
|
/** Composition Playlist (ST 2067-3) edition. Default: `"auto"`. */
|
|
1481
1487
|
cplSpec?: CplSpec;
|
|
1488
|
+
/** IAB plug-in (ST 2067-201) edition. Default: `"auto"`. */
|
|
1489
|
+
iabSpec?: IabSpec;
|
|
1482
1490
|
/** App #2E edition. Default: `"auto"`. */
|
|
1483
1491
|
app2eSpec?: App2eSpec;
|
|
1484
1492
|
/** ESLint-style per-rule severity overrides, keyed by code, rule suffix, glob or `source:<kind>`. */
|