@contentauth/c2pa-wasm 0.6.2 → 0.7.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/README.md +3 -3
- package/package.json +1 -1
- package/pkg/c2pa.d.ts +4 -4
- package/pkg/c2pa.js +124 -124
- package/pkg/c2pa_bg.wasm +0 -0
- package/pkg/c2pa_bg.wasm.d.ts +4 -4
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ npm install @contentauth/c2pa-wasm
|
|
|
14
14
|
|
|
15
15
|
Ensure the repo-wide prerequisites are installed.:
|
|
16
16
|
|
|
17
|
-
-
|
|
17
|
+
- [Node.js](https://nodejs.org/) v22.22+
|
|
18
18
|
- [NX](https://nx.dev/getting-started/intro)
|
|
19
|
-
- [pnpm](https://pnpm.io/)
|
|
19
|
+
- [pnpm](https://pnpm.io/)
|
|
20
20
|
|
|
21
21
|
See the [c2pa-js README](../../README.md#prerequisites) for details.
|
|
22
22
|
|
|
@@ -51,7 +51,7 @@ The `wasm-bindgen-cli` provides options to tweak JavaScript generated by `wasm-b
|
|
|
51
51
|
For more information, see the [wasm-bindgen-cli documentation](https://wasm-bindgen.github.io/wasm-bindgen/reference/cli).
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
cargo install wasm-bindgen-cli@0.2.
|
|
54
|
+
cargo install wasm-bindgen-cli@0.2.122
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
> [!IMPORTANT]
|
package/package.json
CHANGED
package/pkg/c2pa.d.ts
CHANGED
|
@@ -199,13 +199,13 @@ export interface InitOutput {
|
|
|
199
199
|
readonly wasmreader_json: (a: number) => [number, number];
|
|
200
200
|
readonly wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
201
201
|
readonly wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
202
|
-
readonly run: () => void;
|
|
203
202
|
readonly loadSettings: (a: number, b: number) => [number, number];
|
|
203
|
+
readonly run: () => void;
|
|
204
204
|
readonly __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
205
205
|
readonly wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
206
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf2acc361175a8d00: (a: number, b: number, c: any) => [number, number];
|
|
207
|
+
readonly wasm_bindgen__convert__closures_____invoke__h53f6302d12a3bd57: (a: number, b: number, c: any, d: any) => void;
|
|
208
|
+
readonly wasm_bindgen__convert__closures_____invoke__h9ad77c532ffa5b9e: (a: number, b: number) => void;
|
|
209
209
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
210
210
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
211
211
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/c2pa.js
CHANGED
|
@@ -434,72 +434,72 @@ export function run() {
|
|
|
434
434
|
function __wbg_get_imports() {
|
|
435
435
|
const import0 = {
|
|
436
436
|
__proto__: null,
|
|
437
|
-
|
|
437
|
+
__wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
|
|
438
438
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
439
439
|
return ret;
|
|
440
440
|
},
|
|
441
|
-
|
|
441
|
+
__wbg_Number_6b506e6536831eaa: function(arg0) {
|
|
442
442
|
const ret = Number(arg0);
|
|
443
443
|
return ret;
|
|
444
444
|
},
|
|
445
|
-
|
|
445
|
+
__wbg___wbindgen_bigint_get_as_i64_38130e98eecd467d: function(arg0, arg1) {
|
|
446
446
|
const v = arg1;
|
|
447
447
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
448
448
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
449
449
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
450
450
|
},
|
|
451
|
-
|
|
451
|
+
__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9: function(arg0) {
|
|
452
452
|
const v = arg0;
|
|
453
453
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
454
454
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
455
455
|
},
|
|
456
|
-
|
|
456
|
+
__wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
|
|
457
457
|
const ret = debugString(arg1);
|
|
458
458
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
459
459
|
const len1 = WASM_VECTOR_LEN;
|
|
460
460
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
461
461
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
462
462
|
},
|
|
463
|
-
|
|
463
|
+
__wbg___wbindgen_in_70a403a56e771704: function(arg0, arg1) {
|
|
464
464
|
const ret = arg0 in arg1;
|
|
465
465
|
return ret;
|
|
466
466
|
},
|
|
467
|
-
|
|
467
|
+
__wbg___wbindgen_is_bigint_6ffd6468a9bc44b9: function(arg0) {
|
|
468
468
|
const ret = typeof(arg0) === 'bigint';
|
|
469
469
|
return ret;
|
|
470
470
|
},
|
|
471
|
-
|
|
471
|
+
__wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
|
|
472
472
|
const ret = typeof(arg0) === 'function';
|
|
473
473
|
return ret;
|
|
474
474
|
},
|
|
475
|
-
|
|
475
|
+
__wbg___wbindgen_is_object_56732c2bc353f41d: function(arg0) {
|
|
476
476
|
const val = arg0;
|
|
477
477
|
const ret = typeof(val) === 'object' && val !== null;
|
|
478
478
|
return ret;
|
|
479
479
|
},
|
|
480
|
-
|
|
480
|
+
__wbg___wbindgen_is_string_c236cabd84a4d769: function(arg0) {
|
|
481
481
|
const ret = typeof(arg0) === 'string';
|
|
482
482
|
return ret;
|
|
483
483
|
},
|
|
484
|
-
|
|
484
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
485
485
|
const ret = arg0 === undefined;
|
|
486
486
|
return ret;
|
|
487
487
|
},
|
|
488
|
-
|
|
488
|
+
__wbg___wbindgen_jsval_eq_1068e624fa87f6ab: function(arg0, arg1) {
|
|
489
489
|
const ret = arg0 === arg1;
|
|
490
490
|
return ret;
|
|
491
491
|
},
|
|
492
|
-
|
|
492
|
+
__wbg___wbindgen_jsval_loose_eq_2c56564c75129511: function(arg0, arg1) {
|
|
493
493
|
const ret = arg0 == arg1;
|
|
494
494
|
return ret;
|
|
495
495
|
},
|
|
496
|
-
|
|
496
|
+
__wbg___wbindgen_number_get_9bb1761122181af2: function(arg0, arg1) {
|
|
497
497
|
const obj = arg1;
|
|
498
498
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
499
499
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
500
500
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
501
501
|
},
|
|
502
|
-
|
|
502
|
+
__wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
|
|
503
503
|
const obj = arg1;
|
|
504
504
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
505
505
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -507,35 +507,35 @@ function __wbg_get_imports() {
|
|
|
507
507
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
508
508
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
509
509
|
},
|
|
510
|
-
|
|
510
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
511
511
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
512
512
|
},
|
|
513
|
-
|
|
513
|
+
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
514
514
|
arg0._wbg_cb_unref();
|
|
515
515
|
},
|
|
516
|
-
|
|
517
|
-
arg0.abort(arg1);
|
|
518
|
-
},
|
|
519
|
-
__wbg_abort_87eb7f23cf4b73d1: function(arg0) {
|
|
516
|
+
__wbg_abort_2ec46222bf378517: function(arg0) {
|
|
520
517
|
arg0.abort();
|
|
521
518
|
},
|
|
522
|
-
|
|
519
|
+
__wbg_abort_b29d719932441c95: function(arg0, arg1) {
|
|
520
|
+
arg0.abort(arg1);
|
|
521
|
+
},
|
|
522
|
+
__wbg_append_e1746995edcb0170: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
523
523
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
524
524
|
}, arguments); },
|
|
525
|
-
|
|
525
|
+
__wbg_arrayBuffer_05927079aabe6d46: function() { return handleError(function (arg0) {
|
|
526
526
|
const ret = arg0.arrayBuffer();
|
|
527
527
|
return ret;
|
|
528
528
|
}, arguments); },
|
|
529
|
-
|
|
529
|
+
__wbg_byteLength_2c6dc3b4b85d3547: function(arg0) {
|
|
530
530
|
const ret = arg0.byteLength;
|
|
531
531
|
return ret;
|
|
532
532
|
},
|
|
533
|
-
|
|
534
|
-
const ret = arg0.call(arg1
|
|
533
|
+
__wbg_call_8a89609d89f6608a: function() { return handleError(function (arg0, arg1) {
|
|
534
|
+
const ret = arg0.call(arg1);
|
|
535
535
|
return ret;
|
|
536
536
|
}, arguments); },
|
|
537
|
-
|
|
538
|
-
const ret = arg0.call(arg1);
|
|
537
|
+
__wbg_call_9c758de292015997: function() { return handleError(function (arg0, arg1, arg2) {
|
|
538
|
+
const ret = arg0.call(arg1, arg2);
|
|
539
539
|
return ret;
|
|
540
540
|
}, arguments); },
|
|
541
541
|
__wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
|
|
@@ -546,11 +546,11 @@ function __wbg_get_imports() {
|
|
|
546
546
|
const ret = arg0.crypto;
|
|
547
547
|
return ret;
|
|
548
548
|
},
|
|
549
|
-
|
|
549
|
+
__wbg_done_60cf307fcc680536: function(arg0) {
|
|
550
550
|
const ret = arg0.done;
|
|
551
551
|
return ret;
|
|
552
552
|
},
|
|
553
|
-
|
|
553
|
+
__wbg_entries_04b37a02507f1713: function(arg0) {
|
|
554
554
|
const ret = Object.entries(arg0);
|
|
555
555
|
return ret;
|
|
556
556
|
},
|
|
@@ -565,7 +565,7 @@ function __wbg_get_imports() {
|
|
|
565
565
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
566
566
|
}
|
|
567
567
|
},
|
|
568
|
-
|
|
568
|
+
__wbg_fetch_344c8d3849002659: function(arg0, arg1) {
|
|
569
569
|
const ret = arg0.fetch(arg1);
|
|
570
570
|
return ret;
|
|
571
571
|
},
|
|
@@ -573,36 +573,36 @@ function __wbg_get_imports() {
|
|
|
573
573
|
const ret = fetch(arg0);
|
|
574
574
|
return ret;
|
|
575
575
|
},
|
|
576
|
-
|
|
576
|
+
__wbg_from_d300fe49deab18f5: function(arg0) {
|
|
577
577
|
const ret = Array.from(arg0);
|
|
578
578
|
return ret;
|
|
579
579
|
},
|
|
580
580
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
581
581
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
582
582
|
}, arguments); },
|
|
583
|
+
__wbg_getRandomValues_8aa3112c6615eef6: function() { return handleError(function (arg0, arg1) {
|
|
584
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
585
|
+
}, arguments); },
|
|
583
586
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
584
587
|
arg0.getRandomValues(arg1);
|
|
585
588
|
}, arguments); },
|
|
586
|
-
|
|
587
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
588
|
-
}, arguments); },
|
|
589
|
-
__wbg_getTime_e599bee315e19eba: function(arg0) {
|
|
589
|
+
__wbg_getTime_00b3f7db575e4ef5: function(arg0) {
|
|
590
590
|
const ret = arg0.getTime();
|
|
591
591
|
return ret;
|
|
592
592
|
},
|
|
593
|
-
|
|
593
|
+
__wbg_get_1f8f054ddbaa7db2: function() { return handleError(function (arg0, arg1) {
|
|
594
594
|
const ret = Reflect.get(arg0, arg1);
|
|
595
595
|
return ret;
|
|
596
596
|
}, arguments); },
|
|
597
|
-
|
|
597
|
+
__wbg_get_2b48c7d0d006a781: function(arg0, arg1) {
|
|
598
598
|
const ret = arg0[arg1 >>> 0];
|
|
599
599
|
return ret;
|
|
600
600
|
},
|
|
601
|
-
|
|
601
|
+
__wbg_get_de6a0f7d4d18a304: function() { return handleError(function (arg0, arg1) {
|
|
602
602
|
const ret = Reflect.get(arg0, arg1);
|
|
603
603
|
return ret;
|
|
604
604
|
}, arguments); },
|
|
605
|
-
|
|
605
|
+
__wbg_get_unchecked_33f6e5c9e2f2d6b2: function(arg0, arg1) {
|
|
606
606
|
const ret = arg0[arg1 >>> 0];
|
|
607
607
|
return ret;
|
|
608
608
|
},
|
|
@@ -610,15 +610,15 @@ function __wbg_get_imports() {
|
|
|
610
610
|
const ret = arg0[arg1];
|
|
611
611
|
return ret;
|
|
612
612
|
},
|
|
613
|
-
|
|
613
|
+
__wbg_has_73740b27f436fed3: function() { return handleError(function (arg0, arg1) {
|
|
614
614
|
const ret = Reflect.has(arg0, arg1);
|
|
615
615
|
return ret;
|
|
616
616
|
}, arguments); },
|
|
617
|
-
|
|
617
|
+
__wbg_headers_0feb63d2d374b44a: function(arg0) {
|
|
618
618
|
const ret = arg0.headers;
|
|
619
619
|
return ret;
|
|
620
620
|
},
|
|
621
|
-
|
|
621
|
+
__wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
|
|
622
622
|
let result;
|
|
623
623
|
try {
|
|
624
624
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -628,7 +628,7 @@ function __wbg_get_imports() {
|
|
|
628
628
|
const ret = result;
|
|
629
629
|
return ret;
|
|
630
630
|
},
|
|
631
|
-
|
|
631
|
+
__wbg_instanceof_Map_9fc06d9a951bcee6: function(arg0) {
|
|
632
632
|
let result;
|
|
633
633
|
try {
|
|
634
634
|
result = arg0 instanceof Map;
|
|
@@ -638,7 +638,7 @@ function __wbg_get_imports() {
|
|
|
638
638
|
const ret = result;
|
|
639
639
|
return ret;
|
|
640
640
|
},
|
|
641
|
-
|
|
641
|
+
__wbg_instanceof_Promise_d0db99486956c8e8: function(arg0) {
|
|
642
642
|
let result;
|
|
643
643
|
try {
|
|
644
644
|
result = arg0 instanceof Promise;
|
|
@@ -648,7 +648,7 @@ function __wbg_get_imports() {
|
|
|
648
648
|
const ret = result;
|
|
649
649
|
return ret;
|
|
650
650
|
},
|
|
651
|
-
|
|
651
|
+
__wbg_instanceof_Response_cb984bd66d7bd408: function(arg0) {
|
|
652
652
|
let result;
|
|
653
653
|
try {
|
|
654
654
|
result = arg0 instanceof Response;
|
|
@@ -658,7 +658,7 @@ function __wbg_get_imports() {
|
|
|
658
658
|
const ret = result;
|
|
659
659
|
return ret;
|
|
660
660
|
},
|
|
661
|
-
|
|
661
|
+
__wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
|
|
662
662
|
let result;
|
|
663
663
|
try {
|
|
664
664
|
result = arg0 instanceof Uint8Array;
|
|
@@ -668,23 +668,23 @@ function __wbg_get_imports() {
|
|
|
668
668
|
const ret = result;
|
|
669
669
|
return ret;
|
|
670
670
|
},
|
|
671
|
-
|
|
671
|
+
__wbg_isArray_67c2c9c4313f4448: function(arg0) {
|
|
672
672
|
const ret = Array.isArray(arg0);
|
|
673
673
|
return ret;
|
|
674
674
|
},
|
|
675
|
-
|
|
675
|
+
__wbg_isSafeInteger_66acec27e09e99a7: function(arg0) {
|
|
676
676
|
const ret = Number.isSafeInteger(arg0);
|
|
677
677
|
return ret;
|
|
678
678
|
},
|
|
679
|
-
|
|
679
|
+
__wbg_iterator_8732428d309e270e: function() {
|
|
680
680
|
const ret = Symbol.iterator;
|
|
681
681
|
return ret;
|
|
682
682
|
},
|
|
683
|
-
|
|
683
|
+
__wbg_length_4a591ecaa01354d9: function(arg0) {
|
|
684
684
|
const ret = arg0.length;
|
|
685
685
|
return ret;
|
|
686
686
|
},
|
|
687
|
-
|
|
687
|
+
__wbg_length_66f1a4b2e9026940: function(arg0) {
|
|
688
688
|
const ret = arg0.length;
|
|
689
689
|
return ret;
|
|
690
690
|
},
|
|
@@ -692,54 +692,54 @@ function __wbg_get_imports() {
|
|
|
692
692
|
const ret = arg0.msCrypto;
|
|
693
693
|
return ret;
|
|
694
694
|
},
|
|
695
|
-
|
|
695
|
+
__wbg_new_0_445c13a750296eb6: function() {
|
|
696
696
|
const ret = new Date();
|
|
697
697
|
return ret;
|
|
698
698
|
},
|
|
699
|
-
|
|
700
|
-
const ret = new
|
|
699
|
+
__wbg_new_0d09705104e164af: function() { return handleError(function () {
|
|
700
|
+
const ret = new AbortController();
|
|
701
701
|
return ret;
|
|
702
702
|
}, arguments); },
|
|
703
703
|
__wbg_new_227d7c05414eb861: function() {
|
|
704
704
|
const ret = new Error();
|
|
705
705
|
return ret;
|
|
706
706
|
},
|
|
707
|
-
|
|
708
|
-
const ret = new
|
|
709
|
-
return ret;
|
|
710
|
-
},
|
|
711
|
-
__wbg_new_3baa8d9866155c79: function() {
|
|
712
|
-
const ret = new Array();
|
|
707
|
+
__wbg_new_578aeef4b6b94378: function(arg0) {
|
|
708
|
+
const ret = new Uint8Array(arg0);
|
|
713
709
|
return ret;
|
|
714
710
|
},
|
|
715
|
-
|
|
711
|
+
__wbg_new_622fc80556be2e26: function() {
|
|
716
712
|
const ret = new Map();
|
|
717
713
|
return ret;
|
|
718
714
|
},
|
|
719
|
-
|
|
720
|
-
const ret = new
|
|
715
|
+
__wbg_new_a1b9f645bba64f0f: function() { return handleError(function () {
|
|
716
|
+
const ret = new FileReaderSync();
|
|
721
717
|
return ret;
|
|
722
718
|
}, arguments); },
|
|
723
|
-
|
|
724
|
-
const ret = new
|
|
719
|
+
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
720
|
+
const ret = new Object();
|
|
725
721
|
return ret;
|
|
726
722
|
},
|
|
727
|
-
|
|
728
|
-
const ret = new
|
|
723
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
724
|
+
const ret = new Array();
|
|
725
|
+
return ret;
|
|
726
|
+
},
|
|
727
|
+
__wbg_new_e436d06bc8e77460: function() { return handleError(function () {
|
|
728
|
+
const ret = new Headers();
|
|
729
729
|
return ret;
|
|
730
730
|
}, arguments); },
|
|
731
|
-
|
|
731
|
+
__wbg_new_from_slice_18fa1f71286d66b8: function(arg0, arg1) {
|
|
732
732
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
733
733
|
return ret;
|
|
734
734
|
},
|
|
735
|
-
|
|
735
|
+
__wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
|
|
736
736
|
try {
|
|
737
737
|
var state0 = {a: arg0, b: arg1};
|
|
738
738
|
var cb0 = (arg0, arg1) => {
|
|
739
739
|
const a = state0.a;
|
|
740
740
|
state0.a = 0;
|
|
741
741
|
try {
|
|
742
|
-
return
|
|
742
|
+
return wasm_bindgen__convert__closures_____invoke__h53f6302d12a3bd57(a, state0.b, arg0, arg1);
|
|
743
743
|
} finally {
|
|
744
744
|
state0.a = a;
|
|
745
745
|
}
|
|
@@ -750,19 +750,19 @@ function __wbg_get_imports() {
|
|
|
750
750
|
state0.a = 0;
|
|
751
751
|
}
|
|
752
752
|
},
|
|
753
|
-
|
|
753
|
+
__wbg_new_with_length_36a4998e27b014c5: function(arg0) {
|
|
754
754
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
755
755
|
return ret;
|
|
756
756
|
},
|
|
757
|
-
|
|
757
|
+
__wbg_new_with_str_and_init_bcd02b79a793d27f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
758
758
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
759
759
|
return ret;
|
|
760
760
|
}, arguments); },
|
|
761
|
-
|
|
761
|
+
__wbg_next_9e03acdf51c4960d: function(arg0) {
|
|
762
762
|
const ret = arg0.next;
|
|
763
763
|
return ret;
|
|
764
764
|
},
|
|
765
|
-
|
|
765
|
+
__wbg_next_eb8ca7351fa27906: function() { return handleError(function (arg0) {
|
|
766
766
|
const ret = arg0.next();
|
|
767
767
|
return ret;
|
|
768
768
|
}, arguments); },
|
|
@@ -770,7 +770,7 @@ function __wbg_get_imports() {
|
|
|
770
770
|
const ret = arg0.node;
|
|
771
771
|
return ret;
|
|
772
772
|
},
|
|
773
|
-
|
|
773
|
+
__wbg_now_190933fa139cc119: function() {
|
|
774
774
|
const ret = Date.now();
|
|
775
775
|
return ret;
|
|
776
776
|
},
|
|
@@ -778,20 +778,20 @@ function __wbg_get_imports() {
|
|
|
778
778
|
const ret = arg0.process;
|
|
779
779
|
return ret;
|
|
780
780
|
},
|
|
781
|
-
|
|
781
|
+
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
782
782
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
783
783
|
},
|
|
784
|
-
|
|
784
|
+
__wbg_queueMicrotask_35c611f4a14830b2: function(arg0) {
|
|
785
785
|
queueMicrotask(arg0);
|
|
786
786
|
},
|
|
787
|
-
|
|
787
|
+
__wbg_queueMicrotask_404ed0a58e0b63cc: function(arg0) {
|
|
788
788
|
const ret = arg0.queueMicrotask;
|
|
789
789
|
return ret;
|
|
790
790
|
},
|
|
791
791
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
792
792
|
arg0.randomFillSync(arg1);
|
|
793
793
|
}, arguments); },
|
|
794
|
-
|
|
794
|
+
__wbg_readAsArrayBuffer_f1b8da05559618d9: function() { return handleError(function (arg0, arg1) {
|
|
795
795
|
const ret = arg0.readAsArrayBuffer(arg1);
|
|
796
796
|
return ret;
|
|
797
797
|
}, arguments); },
|
|
@@ -799,7 +799,7 @@ function __wbg_get_imports() {
|
|
|
799
799
|
const ret = module.require;
|
|
800
800
|
return ret;
|
|
801
801
|
}, arguments); },
|
|
802
|
-
|
|
802
|
+
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
803
803
|
const ret = Promise.resolve(arg0);
|
|
804
804
|
return ret;
|
|
805
805
|
},
|
|
@@ -807,49 +807,49 @@ function __wbg_get_imports() {
|
|
|
807
807
|
const ret = setTimeout(arg0, arg1);
|
|
808
808
|
return ret;
|
|
809
809
|
},
|
|
810
|
-
|
|
811
|
-
arg0
|
|
810
|
+
__wbg_set_29c99a8aac1c01e5: function(arg0, arg1, arg2) {
|
|
811
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
812
812
|
},
|
|
813
|
-
|
|
813
|
+
__wbg_set_52b1e1eb5bed906a: function(arg0, arg1, arg2) {
|
|
814
814
|
const ret = arg0.set(arg1, arg2);
|
|
815
815
|
return ret;
|
|
816
816
|
},
|
|
817
|
-
|
|
818
|
-
arg0
|
|
817
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
818
|
+
arg0[arg1] = arg2;
|
|
819
819
|
},
|
|
820
|
-
|
|
820
|
+
__wbg_set_body_36614c7e61546809: function(arg0, arg1) {
|
|
821
821
|
arg0.body = arg1;
|
|
822
822
|
},
|
|
823
|
-
|
|
823
|
+
__wbg_set_cache_488ea16c11cbf20d: function(arg0, arg1) {
|
|
824
824
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
825
825
|
},
|
|
826
|
-
|
|
826
|
+
__wbg_set_credentials_fa9c491a27c4bdf0: function(arg0, arg1) {
|
|
827
827
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
828
828
|
},
|
|
829
|
-
|
|
829
|
+
__wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
|
|
830
830
|
arg0[arg1 >>> 0] = arg2;
|
|
831
831
|
},
|
|
832
|
-
|
|
832
|
+
__wbg_set_headers_7c1e39ece7826bec: function(arg0, arg1) {
|
|
833
833
|
arg0.headers = arg1;
|
|
834
834
|
},
|
|
835
|
-
|
|
835
|
+
__wbg_set_method_7a6811dec7a4feff: function(arg0, arg1, arg2) {
|
|
836
836
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
837
837
|
},
|
|
838
|
-
|
|
838
|
+
__wbg_set_mode_c90e3667002857d4: function(arg0, arg1) {
|
|
839
839
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
__wbg_set_signal_d9da62b3f215c821: function(arg0, arg1) {
|
|
842
842
|
arg0.signal = arg1;
|
|
843
843
|
},
|
|
844
|
-
|
|
844
|
+
__wbg_signal_e03304a84df9ed09: function(arg0) {
|
|
845
845
|
const ret = arg0.signal;
|
|
846
846
|
return ret;
|
|
847
847
|
},
|
|
848
|
-
|
|
848
|
+
__wbg_size_9970092b88b1094c: function(arg0) {
|
|
849
849
|
const ret = arg0.size;
|
|
850
850
|
return ret;
|
|
851
851
|
},
|
|
852
|
-
|
|
852
|
+
__wbg_slice_02bb778501725738: function() { return handleError(function (arg0, arg1, arg2) {
|
|
853
853
|
const ret = arg0.slice(arg1, arg2);
|
|
854
854
|
return ret;
|
|
855
855
|
}, arguments); },
|
|
@@ -860,54 +860,54 @@ function __wbg_get_imports() {
|
|
|
860
860
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
861
861
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
862
862
|
},
|
|
863
|
-
|
|
864
|
-
const ret = typeof
|
|
863
|
+
__wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
|
|
864
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
865
865
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
866
866
|
},
|
|
867
|
-
|
|
868
|
-
const ret = typeof
|
|
867
|
+
__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a: function() {
|
|
868
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
869
869
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
870
870
|
},
|
|
871
|
-
|
|
871
|
+
__wbg_static_accessor_SELF_4c59f6c7ea29a144: function() {
|
|
872
872
|
const ret = typeof self === 'undefined' ? null : self;
|
|
873
873
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
874
874
|
},
|
|
875
|
-
|
|
875
|
+
__wbg_static_accessor_WINDOW_e70ae9f2eb052253: function() {
|
|
876
876
|
const ret = typeof window === 'undefined' ? null : window;
|
|
877
877
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
878
878
|
},
|
|
879
|
-
|
|
879
|
+
__wbg_status_00549d55b78d949e: function(arg0) {
|
|
880
880
|
const ret = arg0.status;
|
|
881
881
|
return ret;
|
|
882
882
|
},
|
|
883
|
-
|
|
883
|
+
__wbg_stringify_8286df6dcc591521: function() { return handleError(function (arg0) {
|
|
884
884
|
const ret = JSON.stringify(arg0);
|
|
885
885
|
return ret;
|
|
886
886
|
}, arguments); },
|
|
887
|
-
|
|
887
|
+
__wbg_subarray_4aa221f6a4f5ab22: function(arg0, arg1, arg2) {
|
|
888
888
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
889
889
|
return ret;
|
|
890
890
|
},
|
|
891
|
-
|
|
892
|
-
const ret = arg0.then(arg1);
|
|
891
|
+
__wbg_then_18f476d590e58992: function(arg0, arg1, arg2) {
|
|
892
|
+
const ret = arg0.then(arg1, arg2);
|
|
893
893
|
return ret;
|
|
894
894
|
},
|
|
895
|
-
|
|
896
|
-
const ret = arg0.then(arg1
|
|
895
|
+
__wbg_then_ac7b025999b52837: function(arg0, arg1) {
|
|
896
|
+
const ret = arg0.then(arg1);
|
|
897
897
|
return ret;
|
|
898
898
|
},
|
|
899
|
-
|
|
899
|
+
__wbg_url_6808f1c468f2d0cd: function(arg0, arg1) {
|
|
900
900
|
const ret = arg1.url;
|
|
901
901
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
902
902
|
const len1 = WASM_VECTOR_LEN;
|
|
903
903
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
904
904
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
905
905
|
},
|
|
906
|
-
|
|
906
|
+
__wbg_valueOf_41ae57308c1f031c: function(arg0) {
|
|
907
907
|
const ret = arg0.valueOf();
|
|
908
908
|
return ret;
|
|
909
909
|
},
|
|
910
|
-
|
|
910
|
+
__wbg_value_f3625092ee4b37f4: function(arg0) {
|
|
911
911
|
const ret = arg0.value;
|
|
912
912
|
return ret;
|
|
913
913
|
},
|
|
@@ -920,13 +920,13 @@ function __wbg_get_imports() {
|
|
|
920
920
|
return ret;
|
|
921
921
|
},
|
|
922
922
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
923
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
924
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
923
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2934, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
924
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf2acc361175a8d00);
|
|
925
925
|
return ret;
|
|
926
926
|
},
|
|
927
927
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
928
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
929
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
928
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1652, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
929
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h9ad77c532ffa5b9e);
|
|
930
930
|
return ret;
|
|
931
931
|
},
|
|
932
932
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -977,19 +977,19 @@ function __wbg_get_imports() {
|
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
-
function
|
|
981
|
-
wasm.
|
|
980
|
+
function wasm_bindgen__convert__closures_____invoke__h9ad77c532ffa5b9e(arg0, arg1) {
|
|
981
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h9ad77c532ffa5b9e(arg0, arg1);
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
-
function
|
|
985
|
-
const ret = wasm.
|
|
984
|
+
function wasm_bindgen__convert__closures_____invoke__hf2acc361175a8d00(arg0, arg1, arg2) {
|
|
985
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hf2acc361175a8d00(arg0, arg1, arg2);
|
|
986
986
|
if (ret[1]) {
|
|
987
987
|
throw takeFromExternrefTable0(ret[0]);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
function
|
|
992
|
-
wasm.
|
|
991
|
+
function wasm_bindgen__convert__closures_____invoke__h53f6302d12a3bd57(arg0, arg1, arg2, arg3) {
|
|
992
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h53f6302d12a3bd57(arg0, arg1, arg2, arg3);
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
|
|
@@ -1314,4 +1314,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
1316
|
export { initSync, __wbg_init as default };
|
|
1317
|
-
export const WASM_SRI = "sha512-
|
|
1317
|
+
export const WASM_SRI = "sha512-2nvIDEdLBQHSJJqGx1M7hxP8Pyg5rhmPX/Ag0CsgzbeTUrh8zdR0YpwhN8S9ifoqN+ia3BkETxLcmUFmF0ptwA==";
|
package/pkg/c2pa_bg.wasm
CHANGED
|
Binary file
|
package/pkg/c2pa_bg.wasm.d.ts
CHANGED
|
@@ -27,13 +27,13 @@ export const wasmreader_fromBlobFragment: (a: number, b: number, c: any, d: any,
|
|
|
27
27
|
export const wasmreader_json: (a: number) => [number, number];
|
|
28
28
|
export const wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
29
29
|
export const wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
30
|
-
export const run: () => void;
|
|
31
30
|
export const loadSettings: (a: number, b: number) => [number, number];
|
|
31
|
+
export const run: () => void;
|
|
32
32
|
export const __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
33
33
|
export const wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
34
|
+
export const wasm_bindgen__convert__closures_____invoke__hf2acc361175a8d00: (a: number, b: number, c: any) => [number, number];
|
|
35
|
+
export const wasm_bindgen__convert__closures_____invoke__h53f6302d12a3bd57: (a: number, b: number, c: any, d: any) => void;
|
|
36
|
+
export const wasm_bindgen__convert__closures_____invoke__h9ad77c532ffa5b9e: (a: number, b: number) => void;
|
|
37
37
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
38
38
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
39
39
|
export const __wbindgen_exn_store: (a: number) => void;
|