@contentauth/c2pa-web 0.13.1 → 0.13.3
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/dist/c2pa-0g6nuBRG.js +480 -0
- package/dist/c2pa_worker.js +95 -72
- package/dist/index.js +1 -1
- package/dist/inline.js +3 -3
- package/dist/lib/builder.d.ts +12 -0
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/worker/rpc.d.ts +2 -0
- package/dist/lib/worker/rpc.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +3 -3
- package/dist/c2pa-8eeyObgG.js +0 -469
package/dist/c2pa_worker.js
CHANGED
|
@@ -3,11 +3,11 @@ var be = G((de, C) => {
|
|
|
3
3
|
class h {
|
|
4
4
|
static __wrap(e) {
|
|
5
5
|
const t = Object.create(h.prototype);
|
|
6
|
-
return t.__wbg_ptr = e,
|
|
6
|
+
return t.__wbg_ptr = e, k.register(t, t.__wbg_ptr, t), t;
|
|
7
7
|
}
|
|
8
8
|
__destroy_into_raw() {
|
|
9
9
|
const e = this.__wbg_ptr;
|
|
10
|
-
return this.__wbg_ptr = 0,
|
|
10
|
+
return this.__wbg_ptr = 0, k.unregister(this), e;
|
|
11
11
|
}
|
|
12
12
|
free() {
|
|
13
13
|
const e = this.__destroy_into_raw();
|
|
@@ -83,6 +83,23 @@ var be = G((de, C) => {
|
|
|
83
83
|
if (c[1])
|
|
84
84
|
throw b(c[0]);
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Retains actions and ingredients together in one step, per
|
|
88
|
+
* `Builder::filter_actions_and_ingredients`. `action_indices`/`ingredient_indices` are
|
|
89
|
+
* 0-based indices into [`Self::get_definition`]'s `c2pa.actions` assertion / `ingredients`
|
|
90
|
+
* array, resolved on the JS side for the same reason as [`Self::filter_actions_at`].
|
|
91
|
+
*
|
|
92
|
+
* `rescue_ingredient` (driven by `ingredient_indices`) is evaluated for every ingredient
|
|
93
|
+
* first; any action referencing an ingredient it would rescue is force-kept regardless of
|
|
94
|
+
* `keep_action`.
|
|
95
|
+
* @param {Uint32Array} action_indices
|
|
96
|
+
* @param {Uint32Array} ingredient_indices
|
|
97
|
+
*/
|
|
98
|
+
filterActionsAndIngredientsAt(e, t) {
|
|
99
|
+
const n = E(e, o.__wbindgen_malloc), _ = a, c = E(t, o.__wbindgen_malloc), i = a, s = o.wasmbuilder_filterActionsAndIngredientsAt(this.__wbg_ptr, n, _, c, i);
|
|
100
|
+
if (s[1])
|
|
101
|
+
throw b(s[0]);
|
|
102
|
+
}
|
|
86
103
|
/**
|
|
87
104
|
* Retains only the actions at the given 0-based indices into the actions currently returned
|
|
88
105
|
* by [`Self::get_definition`]'s `c2pa.actions` assertion.
|
|
@@ -101,7 +118,7 @@ var be = G((de, C) => {
|
|
|
101
118
|
* @param {Uint32Array} indices
|
|
102
119
|
*/
|
|
103
120
|
filterActionsAt(e) {
|
|
104
|
-
const t =
|
|
121
|
+
const t = E(e, o.__wbindgen_malloc), n = a, _ = o.wasmbuilder_filterActionsAt(this.__wbg_ptr, t, n);
|
|
105
122
|
if (_[1])
|
|
106
123
|
throw b(_[0]);
|
|
107
124
|
}
|
|
@@ -115,7 +132,7 @@ var be = G((de, C) => {
|
|
|
115
132
|
* @param {Uint32Array} indices
|
|
116
133
|
*/
|
|
117
134
|
filterIngredientsAt(e) {
|
|
118
|
-
const t =
|
|
135
|
+
const t = E(e, o.__wbindgen_malloc), n = a, _ = o.wasmbuilder_filterIngredientsAt(this.__wbg_ptr, t, n);
|
|
119
136
|
if (_[1])
|
|
120
137
|
throw b(_[0]);
|
|
121
138
|
}
|
|
@@ -243,14 +260,14 @@ var be = G((de, C) => {
|
|
|
243
260
|
}
|
|
244
261
|
}
|
|
245
262
|
Symbol.dispose && (h.prototype[Symbol.dispose] = h.prototype.free);
|
|
246
|
-
class
|
|
263
|
+
class I {
|
|
247
264
|
static __wrap(e) {
|
|
248
|
-
const t = Object.create(
|
|
249
|
-
return t.__wbg_ptr = e,
|
|
265
|
+
const t = Object.create(I.prototype);
|
|
266
|
+
return t.__wbg_ptr = e, N.register(t, t.__wbg_ptr, t), t;
|
|
250
267
|
}
|
|
251
268
|
__destroy_into_raw() {
|
|
252
269
|
const e = this.__wbg_ptr;
|
|
253
|
-
return this.__wbg_ptr = 0,
|
|
270
|
+
return this.__wbg_ptr = 0, N.unregister(this), e;
|
|
254
271
|
}
|
|
255
272
|
free() {
|
|
256
273
|
const e = this.__destroy_into_raw();
|
|
@@ -350,7 +367,7 @@ var be = G((de, C) => {
|
|
|
350
367
|
return b(_[0]);
|
|
351
368
|
}
|
|
352
369
|
}
|
|
353
|
-
Symbol.dispose && (
|
|
370
|
+
Symbol.dispose && (I.prototype[Symbol.dispose] = I.prototype.free);
|
|
354
371
|
function $(r) {
|
|
355
372
|
const e = f(r, o.__wbindgen_malloc, o.__wbindgen_realloc), t = a, n = o.loadSettings(e, t);
|
|
356
373
|
if (n[1])
|
|
@@ -426,12 +443,12 @@ var be = G((de, C) => {
|
|
|
426
443
|
e.abort(t);
|
|
427
444
|
},
|
|
428
445
|
__wbg_append_e1746995edcb0170: function() {
|
|
429
|
-
return
|
|
446
|
+
return l(function(e, t, n, _, c) {
|
|
430
447
|
e.append(y(t, n), y(_, c));
|
|
431
448
|
}, arguments);
|
|
432
449
|
},
|
|
433
450
|
__wbg_arrayBuffer_05927079aabe6d46: function() {
|
|
434
|
-
return
|
|
451
|
+
return l(function(e) {
|
|
435
452
|
return e.arrayBuffer();
|
|
436
453
|
}, arguments);
|
|
437
454
|
},
|
|
@@ -439,12 +456,12 @@ var be = G((de, C) => {
|
|
|
439
456
|
return e.byteLength;
|
|
440
457
|
},
|
|
441
458
|
__wbg_call_8a89609d89f6608a: function() {
|
|
442
|
-
return
|
|
459
|
+
return l(function(e, t) {
|
|
443
460
|
return e.call(t);
|
|
444
461
|
}, arguments);
|
|
445
462
|
},
|
|
446
463
|
__wbg_call_9c758de292015997: function() {
|
|
447
|
-
return
|
|
464
|
+
return l(function(e, t, n) {
|
|
448
465
|
return e.call(t, n);
|
|
449
466
|
}, arguments);
|
|
450
467
|
},
|
|
@@ -478,22 +495,22 @@ var be = G((de, C) => {
|
|
|
478
495
|
return Array.from(e);
|
|
479
496
|
},
|
|
480
497
|
__wbg_getRandomValues_3f44b700395062e5: function() {
|
|
481
|
-
return
|
|
498
|
+
return l(function(e, t) {
|
|
482
499
|
globalThis.crypto.getRandomValues(A(e, t));
|
|
483
500
|
}, arguments);
|
|
484
501
|
},
|
|
485
502
|
__wbg_getRandomValues_76dfc69825c9c552: function() {
|
|
486
|
-
return
|
|
503
|
+
return l(function(e, t) {
|
|
487
504
|
globalThis.crypto.getRandomValues(A(e, t));
|
|
488
505
|
}, arguments);
|
|
489
506
|
},
|
|
490
507
|
__wbg_getRandomValues_8aa3112c6615eef6: function() {
|
|
491
|
-
return
|
|
508
|
+
return l(function(e, t) {
|
|
492
509
|
globalThis.crypto.getRandomValues(A(e, t));
|
|
493
510
|
}, arguments);
|
|
494
511
|
},
|
|
495
512
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() {
|
|
496
|
-
return
|
|
513
|
+
return l(function(e, t) {
|
|
497
514
|
e.getRandomValues(t);
|
|
498
515
|
}, arguments);
|
|
499
516
|
},
|
|
@@ -501,7 +518,7 @@ var be = G((de, C) => {
|
|
|
501
518
|
return e.getTime();
|
|
502
519
|
},
|
|
503
520
|
__wbg_get_1f8f054ddbaa7db2: function() {
|
|
504
|
-
return
|
|
521
|
+
return l(function(e, t) {
|
|
505
522
|
return Reflect.get(e, t);
|
|
506
523
|
}, arguments);
|
|
507
524
|
},
|
|
@@ -509,7 +526,7 @@ var be = G((de, C) => {
|
|
|
509
526
|
return e[t >>> 0];
|
|
510
527
|
},
|
|
511
528
|
__wbg_get_de6a0f7d4d18a304: function() {
|
|
512
|
-
return
|
|
529
|
+
return l(function(e, t) {
|
|
513
530
|
return Reflect.get(e, t);
|
|
514
531
|
}, arguments);
|
|
515
532
|
},
|
|
@@ -520,7 +537,7 @@ var be = G((de, C) => {
|
|
|
520
537
|
return e[t];
|
|
521
538
|
},
|
|
522
539
|
__wbg_has_73740b27f436fed3: function() {
|
|
523
|
-
return
|
|
540
|
+
return l(function(e, t) {
|
|
524
541
|
return Reflect.has(e, t);
|
|
525
542
|
}, arguments);
|
|
526
543
|
},
|
|
@@ -594,7 +611,7 @@ var be = G((de, C) => {
|
|
|
594
611
|
return /* @__PURE__ */ new Date();
|
|
595
612
|
},
|
|
596
613
|
__wbg_new_0d09705104e164af: function() {
|
|
597
|
-
return
|
|
614
|
+
return l(function() {
|
|
598
615
|
return new AbortController();
|
|
599
616
|
}, arguments);
|
|
600
617
|
},
|
|
@@ -608,7 +625,7 @@ var be = G((de, C) => {
|
|
|
608
625
|
return /* @__PURE__ */ new Map();
|
|
609
626
|
},
|
|
610
627
|
__wbg_new_a1b9f645bba64f0f: function() {
|
|
611
|
-
return
|
|
628
|
+
return l(function() {
|
|
612
629
|
return new FileReaderSync();
|
|
613
630
|
}, arguments);
|
|
614
631
|
},
|
|
@@ -619,7 +636,7 @@ var be = G((de, C) => {
|
|
|
619
636
|
return new Array();
|
|
620
637
|
},
|
|
621
638
|
__wbg_new_e436d06bc8e77460: function() {
|
|
622
|
-
return
|
|
639
|
+
return l(function() {
|
|
623
640
|
return new Headers();
|
|
624
641
|
}, arguments);
|
|
625
642
|
},
|
|
@@ -646,7 +663,7 @@ var be = G((de, C) => {
|
|
|
646
663
|
return new Uint8Array(e >>> 0);
|
|
647
664
|
},
|
|
648
665
|
__wbg_new_with_str_and_init_bcd02b79a793d27f: function() {
|
|
649
|
-
return
|
|
666
|
+
return l(function(e, t, n) {
|
|
650
667
|
return new Request(y(e, t), n);
|
|
651
668
|
}, arguments);
|
|
652
669
|
},
|
|
@@ -654,7 +671,7 @@ var be = G((de, C) => {
|
|
|
654
671
|
return e.next;
|
|
655
672
|
},
|
|
656
673
|
__wbg_next_eb8ca7351fa27906: function() {
|
|
657
|
-
return
|
|
674
|
+
return l(function(e) {
|
|
658
675
|
return e.next();
|
|
659
676
|
}, arguments);
|
|
660
677
|
},
|
|
@@ -677,17 +694,17 @@ var be = G((de, C) => {
|
|
|
677
694
|
return e.queueMicrotask;
|
|
678
695
|
},
|
|
679
696
|
__wbg_randomFillSync_6c25eac9869eb53c: function() {
|
|
680
|
-
return
|
|
697
|
+
return l(function(e, t) {
|
|
681
698
|
e.randomFillSync(t);
|
|
682
699
|
}, arguments);
|
|
683
700
|
},
|
|
684
701
|
__wbg_readAsArrayBuffer_f1b8da05559618d9: function() {
|
|
685
|
-
return
|
|
702
|
+
return l(function(e, t) {
|
|
686
703
|
return e.readAsArrayBuffer(t);
|
|
687
704
|
}, arguments);
|
|
688
705
|
},
|
|
689
706
|
__wbg_require_b4edbdcf3e2a1ef0: function() {
|
|
690
|
-
return
|
|
707
|
+
return l(function() {
|
|
691
708
|
return C.require;
|
|
692
709
|
}, arguments);
|
|
693
710
|
},
|
|
@@ -737,7 +754,7 @@ var be = G((de, C) => {
|
|
|
737
754
|
return e.size;
|
|
738
755
|
},
|
|
739
756
|
__wbg_slice_02bb778501725738: function() {
|
|
740
|
-
return
|
|
757
|
+
return l(function(e, t, n) {
|
|
741
758
|
return e.slice(t, n);
|
|
742
759
|
}, arguments);
|
|
743
760
|
},
|
|
@@ -765,7 +782,7 @@ var be = G((de, C) => {
|
|
|
765
782
|
return e.status;
|
|
766
783
|
},
|
|
767
784
|
__wbg_stringify_8286df6dcc591521: function() {
|
|
768
|
-
return
|
|
785
|
+
return l(function(e) {
|
|
769
786
|
return JSON.stringify(e);
|
|
770
787
|
}, arguments);
|
|
771
788
|
},
|
|
@@ -792,13 +809,13 @@ var be = G((de, C) => {
|
|
|
792
809
|
return e.versions;
|
|
793
810
|
},
|
|
794
811
|
__wbg_wasmreader_new: function(e) {
|
|
795
|
-
return
|
|
812
|
+
return I.__wrap(e);
|
|
796
813
|
},
|
|
797
814
|
__wbindgen_cast_0000000000000001: function(e, t) {
|
|
798
|
-
return
|
|
815
|
+
return J(e, t, Y);
|
|
799
816
|
},
|
|
800
817
|
__wbindgen_cast_0000000000000002: function(e, t) {
|
|
801
|
-
return
|
|
818
|
+
return J(e, t, X);
|
|
802
819
|
},
|
|
803
820
|
__wbindgen_cast_0000000000000003: function(e) {
|
|
804
821
|
return e;
|
|
@@ -837,9 +854,9 @@ var be = G((de, C) => {
|
|
|
837
854
|
function K(r, e, t, n) {
|
|
838
855
|
o.wasm_bindgen_304c265eb9e6f0af___convert__closures_____invoke___js_sys_74e7014fb12660c3___Function_fn_wasm_bindgen_304c265eb9e6f0af___JsValue_____wasm_bindgen_304c265eb9e6f0af___sys__Undefined___js_sys_74e7014fb12660c3___Function_fn_wasm_bindgen_304c265eb9e6f0af___JsValue_____wasm_bindgen_304c265eb9e6f0af___sys__Undefined_______true_(r, e, t, n);
|
|
839
856
|
}
|
|
840
|
-
const Q = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"], Z = ["omit", "same-origin", "include"], ee = ["same-origin", "no-cors", "cors", "navigate"],
|
|
857
|
+
const Q = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"], Z = ["omit", "same-origin", "include"], ee = ["same-origin", "no-cors", "cors", "navigate"], k = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
841
858
|
}, unregister: () => {
|
|
842
|
-
} } : new FinalizationRegistry((r) => o.__wbg_wasmbuilder_free(r, 1)),
|
|
859
|
+
} } : new FinalizationRegistry((r) => o.__wbg_wasmbuilder_free(r, 1)), N = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
843
860
|
}, unregister: () => {
|
|
844
861
|
} } : new FinalizationRegistry((r) => o.__wbg_wasmreader_free(r, 1));
|
|
845
862
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((r) => o.__wbg_wasmsigner_free(r, 1));
|
|
@@ -847,7 +864,7 @@ var be = G((de, C) => {
|
|
|
847
864
|
const e = o.__externref_table_alloc();
|
|
848
865
|
return o.__wbindgen_externrefs.set(e, r), e;
|
|
849
866
|
}
|
|
850
|
-
const
|
|
867
|
+
const z = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
851
868
|
}, unregister: () => {
|
|
852
869
|
} } : new FinalizationRegistry((r) => o.__wbindgen_destroy_closure(r.a, r.b));
|
|
853
870
|
function x(r) {
|
|
@@ -905,7 +922,7 @@ ${r.stack}` : n;
|
|
|
905
922
|
function T() {
|
|
906
923
|
return (B === null || B.byteLength === 0) && (B = new Uint8Array(o.memory.buffer)), B;
|
|
907
924
|
}
|
|
908
|
-
function
|
|
925
|
+
function l(r, e) {
|
|
909
926
|
try {
|
|
910
927
|
return r.apply(this, e);
|
|
911
928
|
} catch (t) {
|
|
@@ -916,7 +933,7 @@ ${r.stack}` : n;
|
|
|
916
933
|
function w(r) {
|
|
917
934
|
return r == null;
|
|
918
935
|
}
|
|
919
|
-
function
|
|
936
|
+
function J(r, e, t) {
|
|
920
937
|
const n = { a: r, b: e, cnt: 1 }, _ = (...c) => {
|
|
921
938
|
n.cnt++;
|
|
922
939
|
const i = n.a;
|
|
@@ -928,10 +945,10 @@ ${r.stack}` : n;
|
|
|
928
945
|
}
|
|
929
946
|
};
|
|
930
947
|
return _._wbg_cb_unref = () => {
|
|
931
|
-
--n.cnt === 0 && (o.__wbindgen_destroy_closure(n.a, n.b), n.a = 0,
|
|
932
|
-
},
|
|
948
|
+
--n.cnt === 0 && (o.__wbindgen_destroy_closure(n.a, n.b), n.a = 0, z.unregister(n));
|
|
949
|
+
}, z.register(_, n, n), _;
|
|
933
950
|
}
|
|
934
|
-
function
|
|
951
|
+
function E(r, e) {
|
|
935
952
|
const t = e(r.length * 4, 4) >>> 0;
|
|
936
953
|
return te().set(r, t / 4), a = r.length, t;
|
|
937
954
|
}
|
|
@@ -959,12 +976,12 @@ ${r.stack}` : n;
|
|
|
959
976
|
const e = o.__wbindgen_externrefs.get(r);
|
|
960
977
|
return o.__externref_table_dealloc(r), e;
|
|
961
978
|
}
|
|
962
|
-
let
|
|
963
|
-
|
|
979
|
+
let O = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
980
|
+
O.decode();
|
|
964
981
|
const ne = 2146435072;
|
|
965
|
-
let
|
|
982
|
+
let U = 0;
|
|
966
983
|
function re(r, e) {
|
|
967
|
-
return
|
|
984
|
+
return U += e, U >= ne && (O = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), O.decode(), U = e), O.decode(T().subarray(r, r + e));
|
|
968
985
|
}
|
|
969
986
|
const j = new TextEncoder();
|
|
970
987
|
"encodeInto" in j || (j.encodeInto = function(r, e) {
|
|
@@ -1032,13 +1049,13 @@ ${r.stack}` : n;
|
|
|
1032
1049
|
get(_, c) {
|
|
1033
1050
|
return (...i) => {
|
|
1034
1051
|
const s = ce(), u = [], g = [];
|
|
1035
|
-
return i.forEach((
|
|
1036
|
-
L(
|
|
1052
|
+
return i.forEach((F) => {
|
|
1053
|
+
L(F) ? (u.push(F.value), g.push(...F.transfer)) : u.push(F);
|
|
1037
1054
|
}), n.postMessage(
|
|
1038
1055
|
{ method: c, args: u, id: s, channelName: r },
|
|
1039
1056
|
{ transfer: g }
|
|
1040
|
-
), new Promise((
|
|
1041
|
-
t.set(s, { resolve:
|
|
1057
|
+
), new Promise((F, P) => {
|
|
1058
|
+
t.set(s, { resolve: F, reject: P });
|
|
1042
1059
|
});
|
|
1043
1060
|
};
|
|
1044
1061
|
}
|
|
@@ -1075,18 +1092,18 @@ ${r.stack}` : n;
|
|
|
1075
1092
|
const e = r.manifests, t = Object.assign(/* @__PURE__ */ Object.create(null), e), n = Object.getPrototypeOf(e);
|
|
1076
1093
|
return n !== null && n !== Object.prototype && r.active_manifest && (t[r.active_manifest] = n), r.manifests = t, r;
|
|
1077
1094
|
}
|
|
1078
|
-
const p = D(),
|
|
1095
|
+
const p = D(), d = D(), V = se();
|
|
1079
1096
|
ie(
|
|
1080
1097
|
ue({
|
|
1081
1098
|
async initWorker(r, e) {
|
|
1082
1099
|
oe({ module: r }), e && $(e);
|
|
1083
1100
|
},
|
|
1084
1101
|
async reader_fromBlob(r, e, t) {
|
|
1085
|
-
const n = await
|
|
1102
|
+
const n = await I.fromBlob(r, e, t);
|
|
1086
1103
|
return p.add(n);
|
|
1087
1104
|
},
|
|
1088
1105
|
async reader_fromBlobFragment(r, e, t, n) {
|
|
1089
|
-
const _ = await
|
|
1106
|
+
const _ = await I.fromBlobFragment(
|
|
1090
1107
|
r,
|
|
1091
1108
|
e,
|
|
1092
1109
|
t,
|
|
@@ -1119,61 +1136,67 @@ ${r.stack}` : n;
|
|
|
1119
1136
|
},
|
|
1120
1137
|
builder_new(r) {
|
|
1121
1138
|
const e = h.new(r);
|
|
1122
|
-
return
|
|
1139
|
+
return d.add(e);
|
|
1123
1140
|
},
|
|
1124
1141
|
builder_fromJson(r, e) {
|
|
1125
1142
|
const t = h.fromJson(r, e);
|
|
1126
|
-
return
|
|
1143
|
+
return d.add(t);
|
|
1127
1144
|
},
|
|
1128
1145
|
builder_fromArchive(r, e) {
|
|
1129
1146
|
const t = h.fromArchive(r, e);
|
|
1130
|
-
return
|
|
1147
|
+
return d.add(t);
|
|
1131
1148
|
},
|
|
1132
1149
|
builder_setIntent(r, e) {
|
|
1133
|
-
|
|
1150
|
+
d.get(r).setIntent(e);
|
|
1134
1151
|
},
|
|
1135
1152
|
builder_addAction(r, e) {
|
|
1136
|
-
|
|
1153
|
+
d.get(r).addAction(e);
|
|
1137
1154
|
},
|
|
1138
1155
|
builder_addAssertion(r, e, t) {
|
|
1139
|
-
|
|
1156
|
+
d.get(r).addAssertion(e, t);
|
|
1140
1157
|
},
|
|
1141
1158
|
builder_addRedaction(r, e, t) {
|
|
1142
|
-
|
|
1159
|
+
d.get(r).addRedaction(e, t);
|
|
1143
1160
|
},
|
|
1144
1161
|
builder_filterActionsAt(r, e) {
|
|
1145
|
-
|
|
1162
|
+
d.get(r).filterActionsAt(Uint32Array.from(e));
|
|
1146
1163
|
},
|
|
1147
1164
|
builder_filterIngredientsAt(r, e) {
|
|
1148
|
-
|
|
1165
|
+
d.get(r).filterIngredientsAt(Uint32Array.from(e));
|
|
1166
|
+
},
|
|
1167
|
+
builder_filterActionsAndIngredientsAt(r, e, t) {
|
|
1168
|
+
d.get(r).filterActionsAndIngredientsAt(
|
|
1169
|
+
Uint32Array.from(e),
|
|
1170
|
+
Uint32Array.from(t)
|
|
1171
|
+
);
|
|
1149
1172
|
},
|
|
1150
1173
|
builder_setRemoteUrl(r, e) {
|
|
1151
|
-
|
|
1174
|
+
d.get(r).setRemoteUrl(e);
|
|
1152
1175
|
},
|
|
1153
1176
|
builder_setNoEmbed(r, e) {
|
|
1154
|
-
|
|
1177
|
+
d.get(r).setNoEmbed(e);
|
|
1155
1178
|
},
|
|
1156
1179
|
builder_setThumbnailFromBlob(r, e, t) {
|
|
1157
|
-
|
|
1180
|
+
d.get(r).setThumbnailFromBlob(e, t);
|
|
1158
1181
|
},
|
|
1159
1182
|
builder_addIngredient(r, e) {
|
|
1160
|
-
|
|
1183
|
+
d.get(r).addIngredient(e);
|
|
1161
1184
|
},
|
|
1162
1185
|
async builder_addIngredientFromBlob(r, e, t, n) {
|
|
1163
|
-
await
|
|
1186
|
+
await d.get(r).addIngredientFromBlob(e, t, n);
|
|
1164
1187
|
},
|
|
1165
1188
|
builder_addResourceFromBlob(r, e, t) {
|
|
1166
|
-
|
|
1189
|
+
d.get(r).addResourceFromBlob(e, t);
|
|
1167
1190
|
},
|
|
1168
1191
|
builder_getDefinition(r) {
|
|
1169
|
-
return
|
|
1192
|
+
return d.get(r).getDefinition();
|
|
1170
1193
|
},
|
|
1171
1194
|
builder_toArchive(r) {
|
|
1172
|
-
const t =
|
|
1195
|
+
const t = d.get(r).toArchive();
|
|
1173
1196
|
return M(t, t.buffer);
|
|
1174
1197
|
},
|
|
1175
1198
|
async builder_sign(r, e, t, n, _) {
|
|
1176
|
-
const i = await
|
|
1199
|
+
const i = await d.get(r).sign(
|
|
1177
1200
|
{
|
|
1178
1201
|
reserveSize: t.reserveSize,
|
|
1179
1202
|
alg: t.alg,
|
|
@@ -1189,7 +1212,7 @@ ${r.stack}` : n;
|
|
|
1189
1212
|
return M(i, i.buffer);
|
|
1190
1213
|
},
|
|
1191
1214
|
async builder_signAndGetManifestBytes(r, e, t, n, _) {
|
|
1192
|
-
const c =
|
|
1215
|
+
const c = d.get(r), { manifest: i, asset: s } = await c.signAndGetManifestBytes(
|
|
1193
1216
|
{
|
|
1194
1217
|
reserveSize: t.reserveSize,
|
|
1195
1218
|
alg: t.alg,
|
|
@@ -1211,7 +1234,7 @@ ${r.stack}` : n;
|
|
|
1211
1234
|
);
|
|
1212
1235
|
},
|
|
1213
1236
|
builder_free(r) {
|
|
1214
|
-
|
|
1237
|
+
d.get(r).free(), d.remove(r);
|
|
1215
1238
|
}
|
|
1216
1239
|
})
|
|
1217
1240
|
);
|
package/dist/index.js
CHANGED