@imferno/node 2.1.2-fix-napi-version-align.921fc84 → 2.1.3-fix-napi-platform-package-binaries.9ff85f5

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.
Files changed (3) hide show
  1. package/index.d.ts +26 -0
  2. package/index.mjs +2 -0
  3. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -74,3 +74,29 @@ export declare function validate(files: Record<string, string>, options?: any |
74
74
  * @returns `{ package, validation }` — full Imferno struct + ValidationReport
75
75
  */
76
76
  export declare function validatePath(path: string, options?: any | undefined | null): any
77
+
78
+ /**
79
+ * Parse and validate an IMF package from a URI.
80
+ *
81
+ * Accepts `file://` URIs, bare filesystem paths, and (when the binary is built
82
+ * with the `aws-s3` feature) `s3://bucket/prefix/` URIs. The prebuilt binaries
83
+ * on npm include `aws-s3` enabled.
84
+ *
85
+ * @param uri - Path or URI to the IMP
86
+ * @param options - Optional validation options
87
+ * @returns `{ package, validation }` — full Imferno struct + ValidationReport
88
+ */
89
+ export declare function validateUri(uri: string, options?: any | undefined | null): any
90
+
91
+ /**
92
+ * Build an ImfReport summary from a URI.
93
+ *
94
+ * Accepts the same URI forms as `validateUri`. Prefer `validateUri` for new
95
+ * code — `buildReportFromUri` is kept for parity with `buildReport` /
96
+ * `buildReportFromPath`.
97
+ *
98
+ * @param uri - Path or URI to the IMP
99
+ * @param options - Optional validation options
100
+ * @returns An `ImfReport` object with `package`, `cpls`, and `validation` fields.
101
+ */
102
+ export declare function buildReportFromUri(uri: string, options?: any | undefined | null): any
package/index.mjs CHANGED
@@ -48,11 +48,13 @@ export const {
48
48
  getVersion,
49
49
  buildReport,
50
50
  buildReportFromPath,
51
+ buildReportFromUri,
51
52
  formatReport,
52
53
  parsePackage,
53
54
  parsePackageFromPath,
54
55
  validate,
55
56
  validatePath,
57
+ validateUri,
56
58
  } = nativeModule;
57
59
 
58
60
  export { codes } from "./codes.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "2.1.2-fix-napi-version-align.921fc84",
3
+ "version": "2.1.3-fix-napi-platform-package-binaries.9ff85f5",
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",
@@ -39,12 +39,12 @@
39
39
  "LICENSE"
40
40
  ],
41
41
  "optionalDependencies": {
42
- "@imferno/node-darwin-arm64": "2.1.2-fix-napi-version-align.921fc84",
43
- "@imferno/node-darwin-x64": "2.1.2-fix-napi-version-align.921fc84",
44
- "@imferno/node-linux-x64-gnu": "2.1.2-fix-napi-version-align.921fc84",
45
- "@imferno/node-linux-arm64-gnu": "2.1.2-fix-napi-version-align.921fc84",
46
- "@imferno/node-win32-x64-msvc": "2.1.2-fix-napi-version-align.921fc84",
47
- "@imferno/node-win32-arm64-msvc": "2.1.2-fix-napi-version-align.921fc84"
42
+ "@imferno/node-darwin-arm64": "2.1.3-fix-napi-platform-package-binaries.9ff85f5",
43
+ "@imferno/node-darwin-x64": "2.1.3-fix-napi-platform-package-binaries.9ff85f5",
44
+ "@imferno/node-linux-x64-gnu": "2.1.3-fix-napi-platform-package-binaries.9ff85f5",
45
+ "@imferno/node-linux-arm64-gnu": "2.1.3-fix-napi-platform-package-binaries.9ff85f5",
46
+ "@imferno/node-win32-x64-msvc": "2.1.3-fix-napi-platform-package-binaries.9ff85f5",
47
+ "@imferno/node-win32-arm64-msvc": "2.1.3-fix-napi-platform-package-binaries.9ff85f5"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"