@imferno/node 3.0.2-fix-catalogue-verified-clauses.eb3e5cf → 3.0.2-fix-edition-resolution.37dba57
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 +8 -3
- package/codes.js +8 -3
- package/index.d.ts +2 -2
- package/package.json +7 -7
- package/types.d.ts +10 -0
package/codes.d.ts
CHANGED
|
@@ -29,9 +29,9 @@ export declare const codes: {
|
|
|
29
29
|
readonly AssetMapFileName: "ST429-9/AssetMapFileName";
|
|
30
30
|
readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
|
|
31
31
|
readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
|
|
32
|
+
readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
|
|
32
33
|
};
|
|
33
34
|
readonly ST2067_2: {
|
|
34
|
-
readonly AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml";
|
|
35
35
|
readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
|
|
36
36
|
readonly NoCpls: "ST2067-2/NoCpls";
|
|
37
37
|
readonly SizeMismatch: "ST2067-2/SizeMismatch";
|
|
@@ -75,8 +75,12 @@ export declare const codes: {
|
|
|
75
75
|
readonly TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC";
|
|
76
76
|
readonly TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported";
|
|
77
77
|
readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
|
|
78
|
+
readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
|
|
79
|
+
readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
|
|
78
80
|
};
|
|
79
81
|
readonly ST2067_3: {
|
|
82
|
+
readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
|
|
83
|
+
readonly ResourceListEmpty: "ST2067-3/ResourceListEmpty";
|
|
80
84
|
readonly ContentKindUnknown: "ST2067-3/ContentKindUnknown";
|
|
81
85
|
readonly SourceEncodingNoEssenceDescriptorList: "ST2067-3/SourceEncodingNoEssenceDescriptorList";
|
|
82
86
|
readonly SourceEncodingUnresolved: "ST2067-3/SourceEncodingUnresolved";
|
|
@@ -101,6 +105,9 @@ export declare const codes: {
|
|
|
101
105
|
readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
|
|
102
106
|
readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
|
|
103
107
|
};
|
|
108
|
+
readonly ST2067_5: {
|
|
109
|
+
readonly OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier";
|
|
110
|
+
};
|
|
104
111
|
readonly ST2067_9: {
|
|
105
112
|
readonly MalformedXml: "ST2067-9/MalformedXml";
|
|
106
113
|
readonly SidecarAssetReferencedByVirtualTrack: "ST2067-9/SidecarAssetReferencedByVirtualTrack";
|
|
@@ -244,7 +251,5 @@ export declare const codes: {
|
|
|
244
251
|
readonly PathTraversal: "IMFERNO/PathTraversal";
|
|
245
252
|
readonly ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated";
|
|
246
253
|
readonly RuleNotInEdition: "IMFERNO/RuleNotInEdition";
|
|
247
|
-
readonly IntrinsicDurationZero: "IMFERNO/IntrinsicDurationZero";
|
|
248
|
-
readonly CompositionTimecodeRateMismatch: "IMFERNO/CompositionTimecodeRateMismatch";
|
|
249
254
|
}
|
|
250
255
|
};
|
package/codes.js
CHANGED
|
@@ -29,9 +29,9 @@ const codes = {
|
|
|
29
29
|
AssetMapFileName: "ST429-9/AssetMapFileName",
|
|
30
30
|
AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
|
|
31
31
|
PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
|
|
32
|
+
AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
|
|
32
33
|
},
|
|
33
34
|
ST2067_2: {
|
|
34
|
-
AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml",
|
|
35
35
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
36
36
|
NoCpls: "ST2067-2/NoCpls",
|
|
37
37
|
SizeMismatch: "ST2067-2/SizeMismatch",
|
|
@@ -75,8 +75,12 @@ const codes = {
|
|
|
75
75
|
TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC",
|
|
76
76
|
TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported",
|
|
77
77
|
TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
|
|
78
|
+
MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
|
|
79
|
+
AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
|
|
78
80
|
},
|
|
79
81
|
ST2067_3: {
|
|
82
|
+
ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
|
|
83
|
+
ResourceListEmpty: "ST2067-3/ResourceListEmpty",
|
|
80
84
|
ContentKindUnknown: "ST2067-3/ContentKindUnknown",
|
|
81
85
|
SourceEncodingNoEssenceDescriptorList: "ST2067-3/SourceEncodingNoEssenceDescriptorList",
|
|
82
86
|
SourceEncodingUnresolved: "ST2067-3/SourceEncodingUnresolved",
|
|
@@ -101,6 +105,9 @@ const codes = {
|
|
|
101
105
|
VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
|
|
102
106
|
DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
|
|
103
107
|
},
|
|
108
|
+
ST2067_5: {
|
|
109
|
+
OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier",
|
|
110
|
+
},
|
|
104
111
|
ST2067_9: {
|
|
105
112
|
MalformedXml: "ST2067-9/MalformedXml",
|
|
106
113
|
SidecarAssetReferencedByVirtualTrack: "ST2067-9/SidecarAssetReferencedByVirtualTrack",
|
|
@@ -244,8 +251,6 @@ const codes = {
|
|
|
244
251
|
PathTraversal: "IMFERNO/PathTraversal",
|
|
245
252
|
ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated",
|
|
246
253
|
RuleNotInEdition: "IMFERNO/RuleNotInEdition",
|
|
247
|
-
IntrinsicDurationZero: "IMFERNO/IntrinsicDurationZero",
|
|
248
|
-
CompositionTimecodeRateMismatch: "IMFERNO/CompositionTimecodeRateMismatch",
|
|
249
254
|
}
|
|
250
255
|
};
|
|
251
256
|
module.exports = { codes };
|
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`, `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`, `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.37dba57",
|
|
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.37dba57",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-fix-edition-resolution.37dba57",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-fix-edition-resolution.37dba57",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-edition-resolution.37dba57",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-fix-edition-resolution.37dba57",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-edition-resolution.37dba57"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export type Spec =
|
|
|
52
52
|
| "ST429-9"
|
|
53
53
|
| "ST2067-2"
|
|
54
54
|
| "ST2067-3"
|
|
55
|
+
| "ST2067-5"
|
|
55
56
|
| "ST2067-9"
|
|
56
57
|
| "ST2067-21"
|
|
57
58
|
| "ST2067-201"
|
|
@@ -1459,6 +1460,13 @@ export interface RuleValidationWarning {
|
|
|
1459
1460
|
/** Core constraints (ST 2067-2) edition to validate against. `"auto"` detects it from the CPL. */
|
|
1460
1461
|
export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1461
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
|
+
|
|
1462
1470
|
/**
|
|
1463
1471
|
* App #2E (ST 2067-21) edition to validate against. `"auto"` uses the CPL's
|
|
1464
1472
|
* ApplicationIdentification; `"none"` skips application-profile validation.
|
|
@@ -1469,6 +1477,8 @@ export type App2eSpec = "auto" | "none" | "v2014" | "v2016" | "v2020" | "v2023"
|
|
|
1469
1477
|
export interface ValidateOptions {
|
|
1470
1478
|
/** Core constraints edition. Default: `"auto"`. */
|
|
1471
1479
|
coreSpec?: CoreSpec;
|
|
1480
|
+
/** Composition Playlist (ST 2067-3) edition. Default: `"auto"`. */
|
|
1481
|
+
cplSpec?: CplSpec;
|
|
1472
1482
|
/** App #2E edition. Default: `"auto"`. */
|
|
1473
1483
|
app2eSpec?: App2eSpec;
|
|
1474
1484
|
/** ESLint-style per-rule severity overrides, keyed by code, rule suffix, glob or `source:<kind>`. */
|