@contentauth/c2pa-wasm 0.11.5 → 0.12.0
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 +1 -1
- package/pkg/c2pa.d.ts +0 -12
- package/pkg/c2pa.js +3 -22
- package/pkg/c2pa_bg.wasm +0 -0
- package/pkg/c2pa_bg.wasm.d.ts +0 -1
package/package.json
CHANGED
package/pkg/c2pa.d.ts
CHANGED
|
@@ -218,17 +218,6 @@ export class WasmSigner {
|
|
|
218
218
|
static fromDefinition(def: SignerDefinition): WasmSigner;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/**
|
|
222
|
-
*
|
|
223
|
-
* * NOTE: we can only return Err(JsString) or Err(JsValue) as error types here, because for some as-of-yet unknown
|
|
224
|
-
* * reason, wasm-bindgen appears to mishandle JsErrors when created in a Firefox web worker.
|
|
225
|
-
* *
|
|
226
|
-
* * See: https://github.com/wasm-bindgen/wasm-bindgen/issues/4961
|
|
227
|
-
*
|
|
228
|
-
* Accepts a JSON-serialized string to be loaded as c2pa-rs settings.
|
|
229
|
-
*/
|
|
230
|
-
export function loadSettings(settings: string): void;
|
|
231
|
-
|
|
232
221
|
/**
|
|
233
222
|
* Called when the WASM binary is initialized.
|
|
234
223
|
*/
|
|
@@ -272,7 +261,6 @@ export interface InitOutput {
|
|
|
272
261
|
readonly wasmreader_json: (a: number) => [number, number];
|
|
273
262
|
readonly wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
274
263
|
readonly wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
275
|
-
readonly loadSettings: (a: number, b: number) => [number, number];
|
|
276
264
|
readonly wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke___wasm_bindgen_4d7940e3be85a6dc___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_4d7940e3be85a6dc___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
277
265
|
readonly wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke___js_sys_a576b80f2209464___Function_fn_wasm_bindgen_4d7940e3be85a6dc___JsValue_____wasm_bindgen_4d7940e3be85a6dc___sys__Undefined___js_sys_a576b80f2209464___Function_fn_wasm_bindgen_4d7940e3be85a6dc___JsValue_____wasm_bindgen_4d7940e3be85a6dc___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
278
266
|
readonly wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
package/pkg/c2pa.js
CHANGED
|
@@ -513,25 +513,6 @@ export class WasmSigner {
|
|
|
513
513
|
}
|
|
514
514
|
if (Symbol.dispose) WasmSigner.prototype[Symbol.dispose] = WasmSigner.prototype.free;
|
|
515
515
|
|
|
516
|
-
/**
|
|
517
|
-
*
|
|
518
|
-
* * NOTE: we can only return Err(JsString) or Err(JsValue) as error types here, because for some as-of-yet unknown
|
|
519
|
-
* * reason, wasm-bindgen appears to mishandle JsErrors when created in a Firefox web worker.
|
|
520
|
-
* *
|
|
521
|
-
* * See: https://github.com/wasm-bindgen/wasm-bindgen/issues/4961
|
|
522
|
-
*
|
|
523
|
-
* Accepts a JSON-serialized string to be loaded as c2pa-rs settings.
|
|
524
|
-
* @param {string} settings
|
|
525
|
-
*/
|
|
526
|
-
export function loadSettings(settings) {
|
|
527
|
-
const ptr0 = passStringToWasm0(settings, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
528
|
-
const len0 = WASM_VECTOR_LEN;
|
|
529
|
-
const ret = wasm.loadSettings(ptr0, len0);
|
|
530
|
-
if (ret[1]) {
|
|
531
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
516
|
/**
|
|
536
517
|
* Called when the WASM binary is initialized.
|
|
537
518
|
*/
|
|
@@ -1030,12 +1011,12 @@ function __wbg_get_imports() {
|
|
|
1030
1011
|
return ret;
|
|
1031
1012
|
},
|
|
1032
1013
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1033
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1014
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3090, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1034
1015
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke___wasm_bindgen_4d7940e3be85a6dc___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_4d7940e3be85a6dc___JsError___true_);
|
|
1035
1016
|
return ret;
|
|
1036
1017
|
},
|
|
1037
1018
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1038
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1019
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1862, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1039
1020
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke_______true_);
|
|
1040
1021
|
return ret;
|
|
1041
1022
|
},
|
|
@@ -1440,4 +1421,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1440
1421
|
}
|
|
1441
1422
|
|
|
1442
1423
|
export { initSync, __wbg_init as default };
|
|
1443
|
-
export const WASM_SRI = "sha512-
|
|
1424
|
+
export const WASM_SRI = "sha512-sY8Kfs0hgY1uKvgI9KwU9YMZUUQmQ+76LLbFfkRmkB0r/EAVr6B/fJNYEP2Ej/6gT5qQrTYJZYaFJ4KFNUOrwA==";
|
package/pkg/c2pa_bg.wasm
CHANGED
|
Binary file
|
package/pkg/c2pa_bg.wasm.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ export const wasmreader_fromBlobFragment: (a: number, b: number, c: any, d: any,
|
|
|
35
35
|
export const wasmreader_json: (a: number) => [number, number];
|
|
36
36
|
export const wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
37
37
|
export const wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
38
|
-
export const loadSettings: (a: number, b: number) => [number, number];
|
|
39
38
|
export const wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke___wasm_bindgen_4d7940e3be85a6dc___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_4d7940e3be85a6dc___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
40
39
|
export const wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke___js_sys_a576b80f2209464___Function_fn_wasm_bindgen_4d7940e3be85a6dc___JsValue_____wasm_bindgen_4d7940e3be85a6dc___sys__Undefined___js_sys_a576b80f2209464___Function_fn_wasm_bindgen_4d7940e3be85a6dc___JsValue_____wasm_bindgen_4d7940e3be85a6dc___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
41
40
|
export const wasm_bindgen_4d7940e3be85a6dc___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|