@keyhive/keyhive 0.0.0-alpha.55e → 0.0.0-alpha.56
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/keyhive_wasm.d.ts +2 -0
- package/pkg/keyhive_wasm_bg.js +82 -66
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +127 -125
- package/pkg/package.json +1 -1
- package/pkg-node/keyhive_wasm.d.ts +2 -0
- package/pkg-node/keyhive_wasm.js +82 -66
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +127 -125
- package/pkg-node/package.json +1 -1
- package/pkg-slim/keyhive_wasm.d.ts +129 -125
- package/pkg-slim/keyhive_wasm.js +82 -66
- package/pkg-slim/keyhive_wasm_bg.wasm +0 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.js +1 -1
- package/pkg-slim/keyhive_wasm_bg.wasm.d.ts +127 -125
- package/pkg-slim/package.json +1 -1
package/package.json
CHANGED
package/pkg/keyhive_wasm.d.ts
CHANGED
|
@@ -306,6 +306,7 @@ export class Keyhive {
|
|
|
306
306
|
reachableDocs(): Promise<Summary[]>;
|
|
307
307
|
receiveContactCard(contact_card: ContactCard): Promise<Individual>;
|
|
308
308
|
revokeMember(to_revoke: Agent, retain_all_other_members: boolean, membered: Membered): Promise<SignedRevocation[]>;
|
|
309
|
+
revokedMembersForDoc(doc_id: DocumentId): Promise<Membership[]>;
|
|
309
310
|
rotatePrekey(prekey: ShareKey): Promise<ShareKey>;
|
|
310
311
|
stats(): Promise<Stats>;
|
|
311
312
|
toArchive(): Promise<Archive>;
|
|
@@ -393,6 +394,7 @@ export class SignedDelegation {
|
|
|
393
394
|
verify(): boolean;
|
|
394
395
|
readonly delegation: Delegation;
|
|
395
396
|
readonly signature: Uint8Array;
|
|
397
|
+
readonly subjectId: Identifier;
|
|
396
398
|
readonly verifyingKey: Uint8Array;
|
|
397
399
|
}
|
|
398
400
|
|
package/pkg/keyhive_wasm_bg.js
CHANGED
|
@@ -1640,6 +1640,15 @@ export class Keyhive {
|
|
|
1640
1640
|
const ret = wasm.keyhive_revokeMember(this.__wbg_ptr, to_revoke.__wbg_ptr, retain_all_other_members, membered.__wbg_ptr);
|
|
1641
1641
|
return ret;
|
|
1642
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
* @param {DocumentId} doc_id
|
|
1645
|
+
* @returns {Promise<Membership[]>}
|
|
1646
|
+
*/
|
|
1647
|
+
revokedMembersForDoc(doc_id) {
|
|
1648
|
+
_assertClass(doc_id, DocumentId);
|
|
1649
|
+
const ret = wasm.keyhive_revokedMembersForDoc(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1650
|
+
return ret;
|
|
1651
|
+
}
|
|
1643
1652
|
/**
|
|
1644
1653
|
* @param {ShareKey} prekey
|
|
1645
1654
|
* @returns {Promise<ShareKey>}
|
|
@@ -2096,6 +2105,13 @@ export class SignedDelegation {
|
|
|
2096
2105
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2097
2106
|
return v1;
|
|
2098
2107
|
}
|
|
2108
|
+
/**
|
|
2109
|
+
* @returns {Identifier}
|
|
2110
|
+
*/
|
|
2111
|
+
get subjectId() {
|
|
2112
|
+
const ret = wasm.signeddelegation_subjectId(this.__wbg_ptr);
|
|
2113
|
+
return Identifier.__wrap(ret);
|
|
2114
|
+
}
|
|
2099
2115
|
/**
|
|
2100
2116
|
* @returns {boolean}
|
|
2101
2117
|
*/
|
|
@@ -2498,63 +2514,63 @@ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
|
2498
2514
|
export function setPanicHook() {
|
|
2499
2515
|
wasm.setPanicHook();
|
|
2500
2516
|
}
|
|
2501
|
-
export function
|
|
2517
|
+
export function __wbg_Error_7c536b7a8123d334(arg0, arg1) {
|
|
2502
2518
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2503
2519
|
return ret;
|
|
2504
2520
|
}
|
|
2505
|
-
export function
|
|
2521
|
+
export function __wbg___wasm_refgen_toJsChangeId_6ccc69ca295f07d8(arg0) {
|
|
2506
2522
|
const ret = arg0.__wasm_refgen_toJsChangeId();
|
|
2507
2523
|
_assertClass(ret, ChangeId);
|
|
2508
2524
|
var ptr1 = ret.__destroy_into_raw();
|
|
2509
2525
|
return ptr1;
|
|
2510
2526
|
}
|
|
2511
|
-
export function
|
|
2527
|
+
export function __wbg___wasm_refgen_toJsDocument_403a685db7b2e2de(arg0) {
|
|
2512
2528
|
const ret = arg0.__wasm_refgen_toJsDocument();
|
|
2513
2529
|
_assertClass(ret, Document);
|
|
2514
2530
|
var ptr1 = ret.__destroy_into_raw();
|
|
2515
2531
|
return ptr1;
|
|
2516
2532
|
}
|
|
2517
|
-
export function
|
|
2533
|
+
export function __wbg___wasm_refgen_toJsPeer_4156830842f18fa5(arg0) {
|
|
2518
2534
|
const ret = arg0.__wasm_refgen_toJsPeer();
|
|
2519
2535
|
_assertClass(ret, Peer);
|
|
2520
2536
|
var ptr1 = ret.__destroy_into_raw();
|
|
2521
2537
|
return ptr1;
|
|
2522
2538
|
}
|
|
2523
|
-
export function
|
|
2539
|
+
export function __wbg___wbindgen_debug_string_8baecc377ad92880(arg0, arg1) {
|
|
2524
2540
|
const ret = debugString(arg1);
|
|
2525
2541
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2526
2542
|
const len1 = WASM_VECTOR_LEN;
|
|
2527
2543
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2528
2544
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2529
2545
|
}
|
|
2530
|
-
export function
|
|
2546
|
+
export function __wbg___wbindgen_is_function_d4c2480b46f29e33(arg0) {
|
|
2531
2547
|
const ret = typeof(arg0) === 'function';
|
|
2532
2548
|
return ret;
|
|
2533
2549
|
}
|
|
2534
|
-
export function
|
|
2550
|
+
export function __wbg___wbindgen_is_object_e04e3a51a90cde43(arg0) {
|
|
2535
2551
|
const val = arg0;
|
|
2536
2552
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2537
2553
|
return ret;
|
|
2538
2554
|
}
|
|
2539
|
-
export function
|
|
2555
|
+
export function __wbg___wbindgen_is_string_3db04af369717583(arg0) {
|
|
2540
2556
|
const ret = typeof(arg0) === 'string';
|
|
2541
2557
|
return ret;
|
|
2542
2558
|
}
|
|
2543
|
-
export function
|
|
2559
|
+
export function __wbg___wbindgen_is_undefined_5957b329897cc39c(arg0) {
|
|
2544
2560
|
const ret = arg0 === undefined;
|
|
2545
2561
|
return ret;
|
|
2546
2562
|
}
|
|
2547
|
-
export function
|
|
2563
|
+
export function __wbg___wbindgen_throw_bd5a70920abf0236(arg0, arg1) {
|
|
2548
2564
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2549
2565
|
}
|
|
2550
|
-
export function
|
|
2566
|
+
export function __wbg__wbg_cb_unref_207c541c2d58dfb3(arg0) {
|
|
2551
2567
|
arg0._wbg_cb_unref();
|
|
2552
2568
|
}
|
|
2553
2569
|
export function __wbg_access_new(arg0) {
|
|
2554
2570
|
const ret = Access.__wrap(arg0);
|
|
2555
2571
|
return ret;
|
|
2556
2572
|
}
|
|
2557
|
-
export function
|
|
2573
|
+
export function __wbg_add_590df1f529090a23(arg0, arg1) {
|
|
2558
2574
|
const ret = arg0.add(arg1);
|
|
2559
2575
|
return ret;
|
|
2560
2576
|
}
|
|
@@ -2570,7 +2586,7 @@ export function __wbg_archive_new(arg0) {
|
|
|
2570
2586
|
const ret = Archive.__wrap(arg0);
|
|
2571
2587
|
return ret;
|
|
2572
2588
|
}
|
|
2573
|
-
export function
|
|
2589
|
+
export function __wbg_call_1aea13500fe8ff6c() { return handleError(function (arg0, arg1, arg2) {
|
|
2574
2590
|
const ret = arg0.call(arg1, arg2);
|
|
2575
2591
|
return ret;
|
|
2576
2592
|
}, arguments); }
|
|
@@ -2673,11 +2689,11 @@ export function __wbg_event_new(arg0) {
|
|
|
2673
2689
|
const ret = Event.__wrap(arg0);
|
|
2674
2690
|
return ret;
|
|
2675
2691
|
}
|
|
2676
|
-
export function
|
|
2692
|
+
export function __wbg_exportKey_f08d6c1fcfc4b54d() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2677
2693
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
2678
2694
|
return ret;
|
|
2679
2695
|
}, arguments); }
|
|
2680
|
-
export function
|
|
2696
|
+
export function __wbg_generateKey_dab8c671b076b4b3() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2681
2697
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
2682
2698
|
return ret;
|
|
2683
2699
|
}, arguments); }
|
|
@@ -2688,19 +2704,19 @@ export function __wbg_generatewebcryptoerror_new(arg0) {
|
|
|
2688
2704
|
export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
|
|
2689
2705
|
arg0.getRandomValues(arg1);
|
|
2690
2706
|
}, arguments); }
|
|
2691
|
-
export function
|
|
2692
|
-
const ret = Reflect.get(arg0, arg1);
|
|
2693
|
-
return ret;
|
|
2694
|
-
}, arguments); }
|
|
2695
|
-
export function __wbg_get_a8ee5c45dabc1b3b(arg0, arg1) {
|
|
2707
|
+
export function __wbg_get_8944f33c9c7f4f6c(arg0, arg1) {
|
|
2696
2708
|
const ret = arg0[arg1 >>> 0];
|
|
2697
2709
|
return ret;
|
|
2698
2710
|
}
|
|
2699
|
-
export function
|
|
2711
|
+
export function __wbg_get_d8a3d51a73d14c8a() { return handleError(function (arg0, arg1) {
|
|
2712
|
+
const ret = Reflect.get(arg0, arg1);
|
|
2713
|
+
return ret;
|
|
2714
|
+
}, arguments); }
|
|
2715
|
+
export function __wbg_get_private_key_4769af84e1490c16(arg0) {
|
|
2700
2716
|
const ret = arg0.privateKey;
|
|
2701
2717
|
return ret;
|
|
2702
2718
|
}
|
|
2703
|
-
export function
|
|
2719
|
+
export function __wbg_get_public_key_bc05e1040a734167(arg0) {
|
|
2704
2720
|
const ret = arg0.publicKey;
|
|
2705
2721
|
return ret;
|
|
2706
2722
|
}
|
|
@@ -2712,7 +2728,7 @@ export function __wbg_individual_new(arg0) {
|
|
|
2712
2728
|
const ret = Individual.__wrap(arg0);
|
|
2713
2729
|
return ret;
|
|
2714
2730
|
}
|
|
2715
|
-
export function
|
|
2731
|
+
export function __wbg_instanceof_Crypto_0cb0869fecb76e83(arg0) {
|
|
2716
2732
|
let result;
|
|
2717
2733
|
try {
|
|
2718
2734
|
result = arg0 instanceof Crypto;
|
|
@@ -2726,11 +2742,11 @@ export function __wbg_keyhive_new(arg0) {
|
|
|
2726
2742
|
const ret = Keyhive.__wrap(arg0);
|
|
2727
2743
|
return ret;
|
|
2728
2744
|
}
|
|
2729
|
-
export function
|
|
2745
|
+
export function __wbg_length_090b6aa6235450ba(arg0) {
|
|
2730
2746
|
const ret = arg0.length;
|
|
2731
2747
|
return ret;
|
|
2732
2748
|
}
|
|
2733
|
-
export function
|
|
2749
|
+
export function __wbg_length_713cc1160ce7b5b9(arg0) {
|
|
2734
2750
|
const ret = arg0.length;
|
|
2735
2751
|
return ret;
|
|
2736
2752
|
}
|
|
@@ -2787,38 +2803,38 @@ export function __wbg_new_227d7c05414eb861() {
|
|
|
2787
2803
|
const ret = new Error();
|
|
2788
2804
|
return ret;
|
|
2789
2805
|
}
|
|
2790
|
-
export function
|
|
2791
|
-
const ret = new
|
|
2806
|
+
export function __wbg_new_4774b8d4db1224e4(arg0) {
|
|
2807
|
+
const ret = new Uint8Array(arg0);
|
|
2792
2808
|
return ret;
|
|
2793
2809
|
}
|
|
2794
|
-
export function
|
|
2795
|
-
const ret = new
|
|
2810
|
+
export function __wbg_new_480195ddf7042529() {
|
|
2811
|
+
const ret = new Array();
|
|
2796
2812
|
return ret;
|
|
2797
2813
|
}
|
|
2798
|
-
export function
|
|
2814
|
+
export function __wbg_new_cf09c337e743f6e0(arg0) {
|
|
2799
2815
|
const ret = new Set(arg0);
|
|
2800
2816
|
return ret;
|
|
2801
2817
|
}
|
|
2802
|
-
export function
|
|
2803
|
-
const ret = new
|
|
2818
|
+
export function __wbg_new_d63f24ca072fa278() {
|
|
2819
|
+
const ret = new Map();
|
|
2804
2820
|
return ret;
|
|
2805
2821
|
}
|
|
2806
|
-
export function
|
|
2822
|
+
export function __wbg_new_ebde992a0bf6bdf6(arg0, arg1) {
|
|
2807
2823
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2808
2824
|
return ret;
|
|
2809
2825
|
}
|
|
2810
|
-
export function
|
|
2826
|
+
export function __wbg_new_from_slice_2733a138cec5cdcf(arg0, arg1) {
|
|
2811
2827
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2812
2828
|
return ret;
|
|
2813
2829
|
}
|
|
2814
|
-
export function
|
|
2830
|
+
export function __wbg_new_typed_5101eada2c6754de(arg0, arg1) {
|
|
2815
2831
|
try {
|
|
2816
2832
|
var state0 = {a: arg0, b: arg1};
|
|
2817
2833
|
var cb0 = (arg0, arg1) => {
|
|
2818
2834
|
const a = state0.a;
|
|
2819
2835
|
state0.a = 0;
|
|
2820
2836
|
try {
|
|
2821
|
-
return
|
|
2837
|
+
return wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b(a, state0.b, arg0, arg1);
|
|
2822
2838
|
} finally {
|
|
2823
2839
|
state0.a = a;
|
|
2824
2840
|
}
|
|
@@ -2826,10 +2842,10 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
|
|
|
2826
2842
|
const ret = new Promise(cb0);
|
|
2827
2843
|
return ret;
|
|
2828
2844
|
} finally {
|
|
2829
|
-
state0.a =
|
|
2845
|
+
state0.a = 0;
|
|
2830
2846
|
}
|
|
2831
2847
|
}
|
|
2832
|
-
export function
|
|
2848
|
+
export function __wbg_new_with_length_a90559ebda3954f8(arg0) {
|
|
2833
2849
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2834
2850
|
return ret;
|
|
2835
2851
|
}
|
|
@@ -2841,20 +2857,20 @@ export function __wbg_process_44c7a14e11e9f69e(arg0) {
|
|
|
2841
2857
|
const ret = arg0.process;
|
|
2842
2858
|
return ret;
|
|
2843
2859
|
}
|
|
2844
|
-
export function
|
|
2860
|
+
export function __wbg_prototypesetcall_7dca54d31cb9d2dc(arg0, arg1, arg2) {
|
|
2845
2861
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2846
2862
|
}
|
|
2847
|
-
export function
|
|
2863
|
+
export function __wbg_push_bb0def92a641d074(arg0, arg1) {
|
|
2848
2864
|
const ret = arg0.push(arg1);
|
|
2849
2865
|
return ret;
|
|
2850
2866
|
}
|
|
2851
|
-
export function
|
|
2867
|
+
export function __wbg_queueMicrotask_1f50b4bdf2c98605(arg0) {
|
|
2868
|
+
queueMicrotask(arg0);
|
|
2869
|
+
}
|
|
2870
|
+
export function __wbg_queueMicrotask_805204511f79bee8(arg0) {
|
|
2852
2871
|
const ret = arg0.queueMicrotask;
|
|
2853
2872
|
return ret;
|
|
2854
2873
|
}
|
|
2855
|
-
export function __wbg_queueMicrotask_a082d78ce798393e(arg0) {
|
|
2856
|
-
queueMicrotask(arg0);
|
|
2857
|
-
}
|
|
2858
2874
|
export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
|
|
2859
2875
|
arg0.randomFillSync(arg1);
|
|
2860
2876
|
}, arguments); }
|
|
@@ -2862,22 +2878,22 @@ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function (
|
|
|
2862
2878
|
const ret = module.require;
|
|
2863
2879
|
return ret;
|
|
2864
2880
|
}, arguments); }
|
|
2865
|
-
export function
|
|
2881
|
+
export function __wbg_resolve_bb4df27803d377b2(arg0) {
|
|
2866
2882
|
const ret = Promise.resolve(arg0);
|
|
2867
2883
|
return ret;
|
|
2868
2884
|
}
|
|
2869
|
-
export function
|
|
2885
|
+
export function __wbg_set_84911e1f7639680c(arg0, arg1, arg2) {
|
|
2870
2886
|
const ret = arg0.set(arg1, arg2);
|
|
2871
2887
|
return ret;
|
|
2872
2888
|
}
|
|
2873
|
-
export function
|
|
2889
|
+
export function __wbg_set_name_c2ad90badf061d34(arg0, arg1, arg2) {
|
|
2874
2890
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
2875
2891
|
}
|
|
2876
2892
|
export function __wbg_sharekey_new(arg0) {
|
|
2877
2893
|
const ret = ShareKey.__wrap(arg0);
|
|
2878
2894
|
return ret;
|
|
2879
2895
|
}
|
|
2880
|
-
export function
|
|
2896
|
+
export function __wbg_sign_f7b94cef70cf3556() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2881
2897
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2882
2898
|
return ret;
|
|
2883
2899
|
}, arguments); }
|
|
@@ -2904,19 +2920,19 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
2904
2920
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2905
2921
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2906
2922
|
}
|
|
2907
|
-
export function
|
|
2923
|
+
export function __wbg_static_accessor_GLOBAL_44bef9fa6011e260() {
|
|
2908
2924
|
const ret = typeof global === 'undefined' ? null : global;
|
|
2909
2925
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2910
2926
|
}
|
|
2911
|
-
export function
|
|
2927
|
+
export function __wbg_static_accessor_GLOBAL_THIS_13002645baf43d84() {
|
|
2912
2928
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2913
2929
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2914
2930
|
}
|
|
2915
|
-
export function
|
|
2931
|
+
export function __wbg_static_accessor_SELF_91d0abd4d035416c() {
|
|
2916
2932
|
const ret = typeof self === 'undefined' ? null : self;
|
|
2917
2933
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2918
2934
|
}
|
|
2919
|
-
export function
|
|
2935
|
+
export function __wbg_static_accessor_WINDOW_513f857c65724fc7() {
|
|
2920
2936
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2921
2937
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2922
2938
|
}
|
|
@@ -2924,11 +2940,11 @@ export function __wbg_stats_new(arg0) {
|
|
|
2924
2940
|
const ret = Stats.__wrap(arg0);
|
|
2925
2941
|
return ret;
|
|
2926
2942
|
}
|
|
2927
|
-
export function
|
|
2943
|
+
export function __wbg_subarray_fb60755cb1b4a498(arg0, arg1, arg2) {
|
|
2928
2944
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2929
2945
|
return ret;
|
|
2930
2946
|
}
|
|
2931
|
-
export function
|
|
2947
|
+
export function __wbg_subtle_f732bd6d8faf16a3(arg0) {
|
|
2932
2948
|
const ret = arg0.subtle;
|
|
2933
2949
|
return ret;
|
|
2934
2950
|
}
|
|
@@ -2936,11 +2952,11 @@ export function __wbg_summary_new(arg0) {
|
|
|
2936
2952
|
const ret = Summary.__wrap(arg0);
|
|
2937
2953
|
return ret;
|
|
2938
2954
|
}
|
|
2939
|
-
export function
|
|
2955
|
+
export function __wbg_then_d9ebfadd74ddfbb2(arg0, arg1) {
|
|
2940
2956
|
const ret = arg0.then(arg1);
|
|
2941
2957
|
return ret;
|
|
2942
2958
|
}
|
|
2943
|
-
export function
|
|
2959
|
+
export function __wbg_then_f6dedb0d880db23a(arg0, arg1, arg2) {
|
|
2944
2960
|
const ret = arg0.then(arg1, arg2);
|
|
2945
2961
|
return ret;
|
|
2946
2962
|
}
|
|
@@ -2971,8 +2987,8 @@ export function __wbg_warn_9d7408e9659996aa(arg0, arg1, arg2, arg3, arg4, arg5,
|
|
|
2971
2987
|
}
|
|
2972
2988
|
}
|
|
2973
2989
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2974
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2975
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2990
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 690, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2991
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695);
|
|
2976
2992
|
return ret;
|
|
2977
2993
|
}
|
|
2978
2994
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
@@ -3050,15 +3066,15 @@ export function __wbindgen_init_externref_table() {
|
|
|
3050
3066
|
table.set(offset + 2, true);
|
|
3051
3067
|
table.set(offset + 3, false);
|
|
3052
3068
|
}
|
|
3053
|
-
function
|
|
3054
|
-
const ret = wasm.
|
|
3069
|
+
function wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695(arg0, arg1, arg2) {
|
|
3070
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695(arg0, arg1, arg2);
|
|
3055
3071
|
if (ret[1]) {
|
|
3056
3072
|
throw takeFromExternrefTable0(ret[0]);
|
|
3057
3073
|
}
|
|
3058
3074
|
}
|
|
3059
3075
|
|
|
3060
|
-
function
|
|
3061
|
-
wasm.
|
|
3076
|
+
function wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b(arg0, arg1, arg2, arg3) {
|
|
3077
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b(arg0, arg1, arg2, arg3);
|
|
3062
3078
|
}
|
|
3063
3079
|
|
|
3064
3080
|
const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3196,7 +3212,7 @@ function _assertClass(instance, klass) {
|
|
|
3196
3212
|
|
|
3197
3213
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
3198
3214
|
? { register: () => {}, unregister: () => {} }
|
|
3199
|
-
: new FinalizationRegistry(state =>
|
|
3215
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
3200
3216
|
|
|
3201
3217
|
function debugString(val) {
|
|
3202
3218
|
// primitive types
|
|
@@ -3313,8 +3329,8 @@ function isLikeNone(x) {
|
|
|
3313
3329
|
return x === undefined || x === null;
|
|
3314
3330
|
}
|
|
3315
3331
|
|
|
3316
|
-
function makeMutClosure(arg0, arg1,
|
|
3317
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
3332
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
3333
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3318
3334
|
const real = (...args) => {
|
|
3319
3335
|
|
|
3320
3336
|
// First up with a closure we increment the internal reference
|
|
@@ -3332,7 +3348,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
3332
3348
|
};
|
|
3333
3349
|
real._wbg_cb_unref = () => {
|
|
3334
3350
|
if (--state.cnt === 0) {
|
|
3335
|
-
|
|
3351
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3336
3352
|
state.a = 0;
|
|
3337
3353
|
CLOSURE_DTORS.unregister(state);
|
|
3338
3354
|
}
|
package/pkg/keyhive_wasm_bg.wasm
CHANGED
|
Binary file
|