@contentauth/c2pa-wasm 0.3.0 → 0.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentauth/c2pa-wasm",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./pkg/c2pa.js",
package/pkg/c2pa.d.ts CHANGED
@@ -31,7 +31,7 @@ export class WasmBuilder {
31
31
  * The URL must return the manifest data and is injected into the destination asset when signing.
32
32
  * For remote-only manifests, set the `no_embed` flag to `true`.
33
33
  */
34
- setRemoteUrl(format: string): void;
34
+ setRemoteUrl(url: string): void;
35
35
  /**
36
36
  * Sets the state of the no_embed flag.
37
37
  */
@@ -142,8 +142,8 @@ export interface InitOutput {
142
142
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
143
143
  readonly __wbindgen_export_6: WebAssembly.Table;
144
144
  readonly __externref_table_dealloc: (a: number) => void;
145
- readonly closure1669_externref_shim: (a: number, b: number, c: any) => void;
146
145
  readonly wasm_bindgen__convert__closures_____invoke__h09e04d5375df482d: (a: number, b: number) => void;
146
+ readonly closure1669_externref_shim: (a: number, b: number, c: any) => void;
147
147
  readonly closure2615_externref_shim: (a: number, b: number, c: any, d: any) => void;
148
148
  readonly __wbindgen_start: () => void;
149
149
  }
package/pkg/c2pa.js CHANGED
@@ -243,12 +243,12 @@ export function run() {
243
243
  wasm.run();
244
244
  }
245
245
 
246
- function __wbg_adapter_6(arg0, arg1, arg2) {
247
- wasm.closure1669_externref_shim(arg0, arg1, arg2);
246
+ function __wbg_adapter_18(arg0, arg1) {
247
+ wasm.wasm_bindgen__convert__closures_____invoke__h09e04d5375df482d(arg0, arg1);
248
248
  }
249
249
 
250
- function __wbg_adapter_11(arg0, arg1) {
251
- wasm.wasm_bindgen__convert__closures_____invoke__h09e04d5375df482d(arg0, arg1);
250
+ function __wbg_adapter_23(arg0, arg1, arg2) {
251
+ wasm.closure1669_externref_shim(arg0, arg1, arg2);
252
252
  }
253
253
 
254
254
  function __wbg_adapter_168(arg0, arg1, arg2, arg3) {
@@ -305,10 +305,10 @@ export class WasmBuilder {
305
305
  *
306
306
  * The URL must return the manifest data and is injected into the destination asset when signing.
307
307
  * For remote-only manifests, set the `no_embed` flag to `true`.
308
- * @param {string} format
308
+ * @param {string} url
309
309
  */
310
- setRemoteUrl(format) {
311
- const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
+ setRemoteUrl(url) {
311
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
312
312
  const len0 = WASM_VECTOR_LEN;
313
313
  wasm.wasmbuilder_setRemoteUrl(this.__wbg_ptr, ptr0, len0);
314
314
  }
@@ -1021,7 +1021,7 @@ function __wbg_get_imports() {
1021
1021
  };
1022
1022
  imports.wbg.__wbindgen_cast_cb60167f8bf6c33f = function(arg0, arg1) {
1023
1023
  // Cast intrinsic for `Closure(Closure { dtor_idx: 1658, function: Function { arguments: [Externref], shim_idx: 1669, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1024
- const ret = makeMutClosure(arg0, arg1, 1658, __wbg_adapter_6);
1024
+ const ret = makeMutClosure(arg0, arg1, 1658, __wbg_adapter_23);
1025
1025
  return ret;
1026
1026
  };
1027
1027
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -1036,7 +1036,7 @@ function __wbg_get_imports() {
1036
1036
  };
1037
1037
  imports.wbg.__wbindgen_cast_e943630f8c22ccf7 = function(arg0, arg1) {
1038
1038
  // Cast intrinsic for `Closure(Closure { dtor_idx: 1651, function: Function { arguments: [], shim_idx: 1652, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1039
- const ret = makeMutClosure(arg0, arg1, 1651, __wbg_adapter_11);
1039
+ const ret = makeMutClosure(arg0, arg1, 1651, __wbg_adapter_18);
1040
1040
  return ret;
1041
1041
  };
1042
1042
  imports.wbg.__wbindgen_init_externref_table = function() {
@@ -1121,4 +1121,4 @@ async function __wbg_init(module_or_path) {
1121
1121
 
1122
1122
  export { initSync };
1123
1123
  export default __wbg_init;
1124
- export const WASM_SRI = "sha512-HdKAUgRgZE3U8ifKMx2wLpjRjuv/9EoZGIbO3E+N3F/O3JDS3qIz243yU+v5pJXfNyxvi4rzQ0dD509pA2KaUw==";
1124
+ export const WASM_SRI = "sha512-l3IeNQ0oUfQxJIgCRyA2ms8ANqNnsxAr65TnXBBp0VATrFRqIIJkQ9mzQtBW1SRclCGFpFiU4q/L399OYZvFpw==";
package/pkg/c2pa_bg.wasm CHANGED
Binary file
@@ -31,7 +31,7 @@ export const __wbindgen_malloc: (a: number, b: number) => number;
31
31
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
32
32
  export const __wbindgen_export_6: WebAssembly.Table;
33
33
  export const __externref_table_dealloc: (a: number) => void;
34
- export const closure1669_externref_shim: (a: number, b: number, c: any) => void;
35
34
  export const wasm_bindgen__convert__closures_____invoke__h09e04d5375df482d: (a: number, b: number) => void;
35
+ export const closure1669_externref_shim: (a: number, b: number, c: any) => void;
36
36
  export const closure2615_externref_shim: (a: number, b: number, c: any, d: any) => void;
37
37
  export const __wbindgen_start: () => void;