@imferno/node 3.0.2-feat-opl-validation.1c4b095 → 3.0.2-feat-supplemental-packages.186c0b6

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 CHANGED
@@ -151,6 +151,7 @@ console.log(getVersion()); // e.g. "2.0.0"
151
151
  | `aggregateRepeats` | `boolean` | Collapse repeated identical findings into one issue with `additional_instances` |
152
152
  | `skipDiskChecks` | `boolean` | Skip every disk read: asset existence, size and hash checks and MXF checks (path / URI functions only; in-memory input never touches disk) |
153
153
  | `skipHashes` | `boolean` | Skip hashing the assets; existence and size are still checked (path / URI functions only). Hashes are verified by default, like the CLI |
154
+ | `with` | `Array<string \| Record<string, string>>` | Packages this one depends on (the original of a supplemental package): package directories or file maps. Track files its CPLs use are looked up there too |
154
155
  | `credentials` | `S3Credentials \| null` | Explicit S3 credentials (URI functions only) |
155
156
 
156
157
  An option the function does not accept, or a value of the wrong type, throws.
package/codes.d.ts CHANGED
@@ -63,6 +63,7 @@ export declare const codes: {
63
63
  readonly SizeMismatch: "ST2067-2/SizeMismatch";
64
64
  readonly FileNotFound: "ST2067-2/FileNotFound";
65
65
  readonly ChecksumMismatch: "ST2067-2/ChecksumMismatch";
66
+ readonly PackingListsDisagreeOnAsset: "ST2067-2/PackingListsDisagreeOnAsset";
66
67
  readonly UnresolvedUuid: "ST2067-2/UnresolvedUuid";
67
68
  readonly TrackFileNotInPackage: "ST2067-2/TrackFileNotInPackage";
68
69
  readonly DuplicateUuid: "ST2067-2/DuplicateUuid";
@@ -432,33 +433,6 @@ export declare const codes: {
432
433
  readonly ResourceEditRateNotTrackFile: "ST2067-204/ResourceEditRateNotTrackFile";
433
434
  readonly AudioSampleRateNotHomogeneous: "ST2067-204/AudioSampleRateNotHomogeneous";
434
435
  };
435
- readonly ST2067_100: {
436
- readonly DuplicateAlias: "ST2067-100/DuplicateAlias";
437
- readonly DuplicateMacroName: "ST2067-100/DuplicateMacroName";
438
- readonly SignerWithoutSignature: "ST2067-100/SignerWithoutSignature";
439
- readonly SignatureWithoutSigner: "ST2067-100/SignatureWithoutSigner";
440
- readonly MacroOrder: "ST2067-100/MacroOrder";
441
- readonly HandleNotRelativePath: "ST2067-100/HandleNotRelativePath";
442
- readonly HandleUnresolved: "ST2067-100/HandleUnresolved";
443
- readonly PresetNotAlone: "ST2067-100/PresetNotAlone";
444
- };
445
- readonly ST2067_101: {
446
- readonly PixelDecoderStructure: "ST2067-101/PixelDecoderStructure";
447
- readonly PixelEncoderStructure: "ST2067-101/PixelEncoderStructure";
448
- readonly ImageCropStructure: "ST2067-101/ImageCropStructure";
449
- readonly ImageScaleStructure: "ST2067-101/ImageScaleStructure";
450
- readonly ColorEncodingUnknown: "ST2067-101/ColorEncodingUnknown";
451
- readonly FillColorUnknown: "ST2067-101/FillColorUnknown";
452
- };
453
- readonly ST2067_102: {
454
- readonly PixelValueOutOfRange: "ST2067-102/PixelValueOutOfRange";
455
- readonly DeprecatedColorScheme: "ST2067-102/DeprecatedColorScheme";
456
- };
457
- readonly ST2067_103: {
458
- readonly AudioRoutingStructure: "ST2067-103/AudioRoutingStructure";
459
- readonly DuplicateOutputChannelHandle: "ST2067-103/DuplicateOutputChannelHandle";
460
- readonly DuplicateInputEntityHandle: "ST2067-103/DuplicateInputEntityHandle";
461
- };
462
436
  readonly XSD: {
463
437
  readonly ElementMissing: "XSD/ElementMissing";
464
438
  readonly UnexpectedElement: "XSD/UnexpectedElement";
@@ -470,9 +444,9 @@ export declare const codes: {
470
444
  };
471
445
  readonly IMFERNO: {
472
446
  readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
473
- readonly OplNotFullyValidated: "IMFERNO/OplNotFullyValidated";
474
447
  readonly SequenceListUnreadable: "IMFERNO/SequenceListUnreadable";
475
448
  readonly TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated";
449
+ readonly SupplementalTrackFilesNotValidated: "IMFERNO/SupplementalTrackFilesNotValidated";
476
450
  readonly EditionAssumed: "IMFERNO/EditionAssumed";
477
451
  readonly EditionConflict: "IMFERNO/EditionConflict";
478
452
  readonly EditionPinned: "IMFERNO/EditionPinned";
package/codes.js CHANGED
@@ -63,6 +63,7 @@ const codes = {
63
63
  SizeMismatch: "ST2067-2/SizeMismatch",
64
64
  FileNotFound: "ST2067-2/FileNotFound",
65
65
  ChecksumMismatch: "ST2067-2/ChecksumMismatch",
66
+ PackingListsDisagreeOnAsset: "ST2067-2/PackingListsDisagreeOnAsset",
66
67
  UnresolvedUuid: "ST2067-2/UnresolvedUuid",
67
68
  TrackFileNotInPackage: "ST2067-2/TrackFileNotInPackage",
68
69
  DuplicateUuid: "ST2067-2/DuplicateUuid",
@@ -432,33 +433,6 @@ const codes = {
432
433
  ResourceEditRateNotTrackFile: "ST2067-204/ResourceEditRateNotTrackFile",
433
434
  AudioSampleRateNotHomogeneous: "ST2067-204/AudioSampleRateNotHomogeneous",
434
435
  },
435
- ST2067_100: {
436
- DuplicateAlias: "ST2067-100/DuplicateAlias",
437
- DuplicateMacroName: "ST2067-100/DuplicateMacroName",
438
- SignerWithoutSignature: "ST2067-100/SignerWithoutSignature",
439
- SignatureWithoutSigner: "ST2067-100/SignatureWithoutSigner",
440
- MacroOrder: "ST2067-100/MacroOrder",
441
- HandleNotRelativePath: "ST2067-100/HandleNotRelativePath",
442
- HandleUnresolved: "ST2067-100/HandleUnresolved",
443
- PresetNotAlone: "ST2067-100/PresetNotAlone",
444
- },
445
- ST2067_101: {
446
- PixelDecoderStructure: "ST2067-101/PixelDecoderStructure",
447
- PixelEncoderStructure: "ST2067-101/PixelEncoderStructure",
448
- ImageCropStructure: "ST2067-101/ImageCropStructure",
449
- ImageScaleStructure: "ST2067-101/ImageScaleStructure",
450
- ColorEncodingUnknown: "ST2067-101/ColorEncodingUnknown",
451
- FillColorUnknown: "ST2067-101/FillColorUnknown",
452
- },
453
- ST2067_102: {
454
- PixelValueOutOfRange: "ST2067-102/PixelValueOutOfRange",
455
- DeprecatedColorScheme: "ST2067-102/DeprecatedColorScheme",
456
- },
457
- ST2067_103: {
458
- AudioRoutingStructure: "ST2067-103/AudioRoutingStructure",
459
- DuplicateOutputChannelHandle: "ST2067-103/DuplicateOutputChannelHandle",
460
- DuplicateInputEntityHandle: "ST2067-103/DuplicateInputEntityHandle",
461
- },
462
436
  XSD: {
463
437
  ElementMissing: "XSD/ElementMissing",
464
438
  UnexpectedElement: "XSD/UnexpectedElement",
@@ -470,9 +444,9 @@ const codes = {
470
444
  },
471
445
  IMFERNO: {
472
446
  ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
473
- OplNotFullyValidated: "IMFERNO/OplNotFullyValidated",
474
447
  SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
475
448
  TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated",
449
+ SupplementalTrackFilesNotValidated: "IMFERNO/SupplementalTrackFilesNotValidated",
476
450
  EditionAssumed: "IMFERNO/EditionAssumed",
477
451
  EditionConflict: "IMFERNO/EditionConflict",
478
452
  EditionPinned: "IMFERNO/EditionPinned",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-feat-opl-validation.1c4b095",
3
+ "version": "3.0.2-feat-supplemental-packages.186c0b6",
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-feat-opl-validation.1c4b095",
49
- "@imferno/node-darwin-x64": "3.0.2-feat-opl-validation.1c4b095",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-feat-opl-validation.1c4b095",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-feat-opl-validation.1c4b095",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-feat-opl-validation.1c4b095",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-feat-opl-validation.1c4b095"
48
+ "@imferno/node-darwin-arm64": "3.0.2-feat-supplemental-packages.186c0b6",
49
+ "@imferno/node-darwin-x64": "3.0.2-feat-supplemental-packages.186c0b6",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-feat-supplemental-packages.186c0b6",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-feat-supplemental-packages.186c0b6",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-feat-supplemental-packages.186c0b6",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-feat-supplemental-packages.186c0b6"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -73,10 +73,6 @@ export type Spec =
73
73
  | "ST2067-202"
74
74
  | "ST2067-203"
75
75
  | "ST2067-204"
76
- | "ST2067-100"
77
- | "ST2067-101"
78
- | "ST2067-102"
79
- | "ST2067-103"
80
76
  | "XSD"
81
77
  | "IMFERNO";
82
78
  /**
@@ -1659,4 +1655,13 @@ export interface ValidateOptions {
1659
1655
  rules?: RulesConfig;
1660
1656
  /** Collapse repeated identical findings into one issue with `additional_instances`. Default: `false`. */
1661
1657
  aggregateRepeats?: boolean;
1658
+ /**
1659
+ * Packages this one depends on, such as the original package of a
1660
+ * supplemental package: each a package directory or its XML files, as `validate` takes them.
1661
+ * CPL track files are looked up in this package first, then in each of
1662
+ * these in order: the first package whose Packing List lists the track
1663
+ * file is used. Findings about those packages themselves are not
1664
+ * reported. Default: none.
1665
+ */
1666
+ with?: Array<string | Record<string, string>>;
1662
1667
  }