@keyhive/keyhive 0.0.0-alpha.55e → 0.0.0-alpha.56b
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 +3 -0
- package/pkg/keyhive_wasm_bg.js +92 -69
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +140 -137
- package/pkg/package.json +1 -1
- package/pkg-node/keyhive_wasm.d.ts +3 -0
- package/pkg-node/keyhive_wasm.js +92 -69
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +140 -137
- package/pkg-node/package.json +1 -1
- package/pkg-slim/keyhive_wasm.d.ts +143 -137
- package/pkg-slim/keyhive_wasm.js +92 -69
- 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 +140 -137
- package/pkg-slim/package.json +1 -1
package/package.json
CHANGED
package/pkg/keyhive_wasm.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export class Document {
|
|
|
142
142
|
* Upcasts; to the JS-import type for [`JsDocument`].
|
|
143
143
|
*/
|
|
144
144
|
__wasm_refgen_toJsDocument(): Document;
|
|
145
|
+
members(): Promise<Capability[]>;
|
|
145
146
|
toAgent(): Agent;
|
|
146
147
|
toMembered(): Membered;
|
|
147
148
|
toPeer(): Peer;
|
|
@@ -306,6 +307,7 @@ export class Keyhive {
|
|
|
306
307
|
reachableDocs(): Promise<Summary[]>;
|
|
307
308
|
receiveContactCard(contact_card: ContactCard): Promise<Individual>;
|
|
308
309
|
revokeMember(to_revoke: Agent, retain_all_other_members: boolean, membered: Membered): Promise<SignedRevocation[]>;
|
|
310
|
+
revokedMembersForDoc(doc_id: DocumentId): Promise<Membership[]>;
|
|
309
311
|
rotatePrekey(prekey: ShareKey): Promise<ShareKey>;
|
|
310
312
|
stats(): Promise<Stats>;
|
|
311
313
|
toArchive(): Promise<Archive>;
|
|
@@ -393,6 +395,7 @@ export class SignedDelegation {
|
|
|
393
395
|
verify(): boolean;
|
|
394
396
|
readonly delegation: Delegation;
|
|
395
397
|
readonly signature: Uint8Array;
|
|
398
|
+
readonly subjectId: Identifier;
|
|
396
399
|
readonly verifyingKey: Uint8Array;
|
|
397
400
|
}
|
|
398
401
|
|
package/pkg/keyhive_wasm_bg.js
CHANGED
|
@@ -714,6 +714,13 @@ export class Document {
|
|
|
714
714
|
const ret = wasm.document_id(this.__wbg_ptr);
|
|
715
715
|
return Identifier.__wrap(ret);
|
|
716
716
|
}
|
|
717
|
+
/**
|
|
718
|
+
* @returns {Promise<Capability[]>}
|
|
719
|
+
*/
|
|
720
|
+
members() {
|
|
721
|
+
const ret = wasm.document_members(this.__wbg_ptr);
|
|
722
|
+
return ret;
|
|
723
|
+
}
|
|
717
724
|
/**
|
|
718
725
|
* @returns {Agent}
|
|
719
726
|
*/
|
|
@@ -1640,6 +1647,15 @@ export class Keyhive {
|
|
|
1640
1647
|
const ret = wasm.keyhive_revokeMember(this.__wbg_ptr, to_revoke.__wbg_ptr, retain_all_other_members, membered.__wbg_ptr);
|
|
1641
1648
|
return ret;
|
|
1642
1649
|
}
|
|
1650
|
+
/**
|
|
1651
|
+
* @param {DocumentId} doc_id
|
|
1652
|
+
* @returns {Promise<Membership[]>}
|
|
1653
|
+
*/
|
|
1654
|
+
revokedMembersForDoc(doc_id) {
|
|
1655
|
+
_assertClass(doc_id, DocumentId);
|
|
1656
|
+
const ret = wasm.keyhive_revokedMembersForDoc(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1657
|
+
return ret;
|
|
1658
|
+
}
|
|
1643
1659
|
/**
|
|
1644
1660
|
* @param {ShareKey} prekey
|
|
1645
1661
|
* @returns {Promise<ShareKey>}
|
|
@@ -2096,6 +2112,13 @@ export class SignedDelegation {
|
|
|
2096
2112
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2097
2113
|
return v1;
|
|
2098
2114
|
}
|
|
2115
|
+
/**
|
|
2116
|
+
* @returns {Identifier}
|
|
2117
|
+
*/
|
|
2118
|
+
get subjectId() {
|
|
2119
|
+
const ret = wasm.signeddelegation_subjectId(this.__wbg_ptr);
|
|
2120
|
+
return Identifier.__wrap(ret);
|
|
2121
|
+
}
|
|
2099
2122
|
/**
|
|
2100
2123
|
* @returns {boolean}
|
|
2101
2124
|
*/
|
|
@@ -2498,63 +2521,63 @@ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
|
2498
2521
|
export function setPanicHook() {
|
|
2499
2522
|
wasm.setPanicHook();
|
|
2500
2523
|
}
|
|
2501
|
-
export function
|
|
2524
|
+
export function __wbg_Error_2e59b1b37a9a34c3(arg0, arg1) {
|
|
2502
2525
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2503
2526
|
return ret;
|
|
2504
2527
|
}
|
|
2505
|
-
export function
|
|
2528
|
+
export function __wbg___wasm_refgen_toJsChangeId_6ccc69ca295f07d8(arg0) {
|
|
2506
2529
|
const ret = arg0.__wasm_refgen_toJsChangeId();
|
|
2507
2530
|
_assertClass(ret, ChangeId);
|
|
2508
2531
|
var ptr1 = ret.__destroy_into_raw();
|
|
2509
2532
|
return ptr1;
|
|
2510
2533
|
}
|
|
2511
|
-
export function
|
|
2534
|
+
export function __wbg___wasm_refgen_toJsDocument_403a685db7b2e2de(arg0) {
|
|
2512
2535
|
const ret = arg0.__wasm_refgen_toJsDocument();
|
|
2513
2536
|
_assertClass(ret, Document);
|
|
2514
2537
|
var ptr1 = ret.__destroy_into_raw();
|
|
2515
2538
|
return ptr1;
|
|
2516
2539
|
}
|
|
2517
|
-
export function
|
|
2540
|
+
export function __wbg___wasm_refgen_toJsPeer_4156830842f18fa5(arg0) {
|
|
2518
2541
|
const ret = arg0.__wasm_refgen_toJsPeer();
|
|
2519
2542
|
_assertClass(ret, Peer);
|
|
2520
2543
|
var ptr1 = ret.__destroy_into_raw();
|
|
2521
2544
|
return ptr1;
|
|
2522
2545
|
}
|
|
2523
|
-
export function
|
|
2546
|
+
export function __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57(arg0, arg1) {
|
|
2524
2547
|
const ret = debugString(arg1);
|
|
2525
2548
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2526
2549
|
const len1 = WASM_VECTOR_LEN;
|
|
2527
2550
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2528
2551
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2529
2552
|
}
|
|
2530
|
-
export function
|
|
2553
|
+
export function __wbg___wbindgen_is_function_49868bde5eb1e745(arg0) {
|
|
2531
2554
|
const ret = typeof(arg0) === 'function';
|
|
2532
2555
|
return ret;
|
|
2533
2556
|
}
|
|
2534
|
-
export function
|
|
2557
|
+
export function __wbg___wbindgen_is_object_40c5a80572e8f9d3(arg0) {
|
|
2535
2558
|
const val = arg0;
|
|
2536
2559
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2537
2560
|
return ret;
|
|
2538
2561
|
}
|
|
2539
|
-
export function
|
|
2562
|
+
export function __wbg___wbindgen_is_string_b29b5c5a8065ba1a(arg0) {
|
|
2540
2563
|
const ret = typeof(arg0) === 'string';
|
|
2541
2564
|
return ret;
|
|
2542
2565
|
}
|
|
2543
|
-
export function
|
|
2566
|
+
export function __wbg___wbindgen_is_undefined_c0cca72b82b86f4d(arg0) {
|
|
2544
2567
|
const ret = arg0 === undefined;
|
|
2545
2568
|
return ret;
|
|
2546
2569
|
}
|
|
2547
|
-
export function
|
|
2570
|
+
export function __wbg___wbindgen_throw_81fc77679af83bc6(arg0, arg1) {
|
|
2548
2571
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2549
2572
|
}
|
|
2550
|
-
export function
|
|
2573
|
+
export function __wbg__wbg_cb_unref_3c3b4f651835fbcb(arg0) {
|
|
2551
2574
|
arg0._wbg_cb_unref();
|
|
2552
2575
|
}
|
|
2553
2576
|
export function __wbg_access_new(arg0) {
|
|
2554
2577
|
const ret = Access.__wrap(arg0);
|
|
2555
2578
|
return ret;
|
|
2556
2579
|
}
|
|
2557
|
-
export function
|
|
2580
|
+
export function __wbg_add_f56ec7ea7f056912(arg0, arg1) {
|
|
2558
2581
|
const ret = arg0.add(arg1);
|
|
2559
2582
|
return ret;
|
|
2560
2583
|
}
|
|
@@ -2570,7 +2593,7 @@ export function __wbg_archive_new(arg0) {
|
|
|
2570
2593
|
const ret = Archive.__wrap(arg0);
|
|
2571
2594
|
return ret;
|
|
2572
2595
|
}
|
|
2573
|
-
export function
|
|
2596
|
+
export function __wbg_call_d578befcc3145dee() { return handleError(function (arg0, arg1, arg2) {
|
|
2574
2597
|
const ret = arg0.call(arg1, arg2);
|
|
2575
2598
|
return ret;
|
|
2576
2599
|
}, arguments); }
|
|
@@ -2673,11 +2696,11 @@ export function __wbg_event_new(arg0) {
|
|
|
2673
2696
|
const ret = Event.__wrap(arg0);
|
|
2674
2697
|
return ret;
|
|
2675
2698
|
}
|
|
2676
|
-
export function
|
|
2699
|
+
export function __wbg_exportKey_99bb9b98984e3a4e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2677
2700
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
2678
2701
|
return ret;
|
|
2679
2702
|
}, arguments); }
|
|
2680
|
-
export function
|
|
2703
|
+
export function __wbg_generateKey_2d4760a0496c6109() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2681
2704
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
2682
2705
|
return ret;
|
|
2683
2706
|
}, arguments); }
|
|
@@ -2688,19 +2711,19 @@ export function __wbg_generatewebcryptoerror_new(arg0) {
|
|
|
2688
2711
|
export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
|
|
2689
2712
|
arg0.getRandomValues(arg1);
|
|
2690
2713
|
}, arguments); }
|
|
2691
|
-
export function
|
|
2692
|
-
const ret = Reflect.get(arg0, arg1);
|
|
2693
|
-
return ret;
|
|
2694
|
-
}, arguments); }
|
|
2695
|
-
export function __wbg_get_a8ee5c45dabc1b3b(arg0, arg1) {
|
|
2714
|
+
export function __wbg_get_4848e350b40afc16(arg0, arg1) {
|
|
2696
2715
|
const ret = arg0[arg1 >>> 0];
|
|
2697
2716
|
return ret;
|
|
2698
2717
|
}
|
|
2699
|
-
export function
|
|
2718
|
+
export function __wbg_get_f96702c6245e4ef9() { return handleError(function (arg0, arg1) {
|
|
2719
|
+
const ret = Reflect.get(arg0, arg1);
|
|
2720
|
+
return ret;
|
|
2721
|
+
}, arguments); }
|
|
2722
|
+
export function __wbg_get_private_key_eba5c3b94a6582ab(arg0) {
|
|
2700
2723
|
const ret = arg0.privateKey;
|
|
2701
2724
|
return ret;
|
|
2702
2725
|
}
|
|
2703
|
-
export function
|
|
2726
|
+
export function __wbg_get_public_key_cce0ab3bb2aaaec4(arg0) {
|
|
2704
2727
|
const ret = arg0.publicKey;
|
|
2705
2728
|
return ret;
|
|
2706
2729
|
}
|
|
@@ -2712,7 +2735,7 @@ export function __wbg_individual_new(arg0) {
|
|
|
2712
2735
|
const ret = Individual.__wrap(arg0);
|
|
2713
2736
|
return ret;
|
|
2714
2737
|
}
|
|
2715
|
-
export function
|
|
2738
|
+
export function __wbg_instanceof_Crypto_f4b23f832118da8c(arg0) {
|
|
2716
2739
|
let result;
|
|
2717
2740
|
try {
|
|
2718
2741
|
result = arg0 instanceof Crypto;
|
|
@@ -2726,11 +2749,11 @@ export function __wbg_keyhive_new(arg0) {
|
|
|
2726
2749
|
const ret = Keyhive.__wrap(arg0);
|
|
2727
2750
|
return ret;
|
|
2728
2751
|
}
|
|
2729
|
-
export function
|
|
2752
|
+
export function __wbg_length_0c32cb8543c8e4c8(arg0) {
|
|
2730
2753
|
const ret = arg0.length;
|
|
2731
2754
|
return ret;
|
|
2732
2755
|
}
|
|
2733
|
-
export function
|
|
2756
|
+
export function __wbg_length_6e821edde497a532(arg0) {
|
|
2734
2757
|
const ret = arg0.length;
|
|
2735
2758
|
return ret;
|
|
2736
2759
|
}
|
|
@@ -2787,38 +2810,38 @@ export function __wbg_new_227d7c05414eb861() {
|
|
|
2787
2810
|
const ret = new Error();
|
|
2788
2811
|
return ret;
|
|
2789
2812
|
}
|
|
2790
|
-
export function
|
|
2813
|
+
export function __wbg_new_44794e13e79fc463(arg0) {
|
|
2814
|
+
const ret = new Set(arg0);
|
|
2815
|
+
return ret;
|
|
2816
|
+
}
|
|
2817
|
+
export function __wbg_new_99cabae501c0a8a0() {
|
|
2791
2818
|
const ret = new Map();
|
|
2792
2819
|
return ret;
|
|
2793
2820
|
}
|
|
2794
|
-
export function
|
|
2821
|
+
export function __wbg_new_a560378ea1240b14(arg0) {
|
|
2795
2822
|
const ret = new Uint8Array(arg0);
|
|
2796
2823
|
return ret;
|
|
2797
2824
|
}
|
|
2798
|
-
export function
|
|
2799
|
-
const ret = new
|
|
2825
|
+
export function __wbg_new_e3b04b4d53d1b593(arg0, arg1) {
|
|
2826
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2800
2827
|
return ret;
|
|
2801
2828
|
}
|
|
2802
|
-
export function
|
|
2829
|
+
export function __wbg_new_f3c9df4f38f3f798() {
|
|
2803
2830
|
const ret = new Array();
|
|
2804
2831
|
return ret;
|
|
2805
2832
|
}
|
|
2806
|
-
export function
|
|
2807
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2808
|
-
return ret;
|
|
2809
|
-
}
|
|
2810
|
-
export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
|
|
2833
|
+
export function __wbg_new_from_slice_2580ff33d0d10520(arg0, arg1) {
|
|
2811
2834
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2812
2835
|
return ret;
|
|
2813
2836
|
}
|
|
2814
|
-
export function
|
|
2837
|
+
export function __wbg_new_typed_14d7cc391ce53d2c(arg0, arg1) {
|
|
2815
2838
|
try {
|
|
2816
2839
|
var state0 = {a: arg0, b: arg1};
|
|
2817
2840
|
var cb0 = (arg0, arg1) => {
|
|
2818
2841
|
const a = state0.a;
|
|
2819
2842
|
state0.a = 0;
|
|
2820
2843
|
try {
|
|
2821
|
-
return
|
|
2844
|
+
return wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(a, state0.b, arg0, arg1);
|
|
2822
2845
|
} finally {
|
|
2823
2846
|
state0.a = a;
|
|
2824
2847
|
}
|
|
@@ -2826,10 +2849,10 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
|
|
|
2826
2849
|
const ret = new Promise(cb0);
|
|
2827
2850
|
return ret;
|
|
2828
2851
|
} finally {
|
|
2829
|
-
state0.a =
|
|
2852
|
+
state0.a = 0;
|
|
2830
2853
|
}
|
|
2831
2854
|
}
|
|
2832
|
-
export function
|
|
2855
|
+
export function __wbg_new_with_length_9cedd08484b73942(arg0) {
|
|
2833
2856
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2834
2857
|
return ret;
|
|
2835
2858
|
}
|
|
@@ -2841,18 +2864,18 @@ export function __wbg_process_44c7a14e11e9f69e(arg0) {
|
|
|
2841
2864
|
const ret = arg0.process;
|
|
2842
2865
|
return ret;
|
|
2843
2866
|
}
|
|
2844
|
-
export function
|
|
2867
|
+
export function __wbg_prototypesetcall_3e05eb9545565046(arg0, arg1, arg2) {
|
|
2845
2868
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2846
2869
|
}
|
|
2847
|
-
export function
|
|
2870
|
+
export function __wbg_push_6bdbc990be5ac37b(arg0, arg1) {
|
|
2848
2871
|
const ret = arg0.push(arg1);
|
|
2849
2872
|
return ret;
|
|
2850
2873
|
}
|
|
2851
|
-
export function
|
|
2874
|
+
export function __wbg_queueMicrotask_abaf92f0bd4e80a4(arg0) {
|
|
2852
2875
|
const ret = arg0.queueMicrotask;
|
|
2853
2876
|
return ret;
|
|
2854
2877
|
}
|
|
2855
|
-
export function
|
|
2878
|
+
export function __wbg_queueMicrotask_df5a6dac26d818f3(arg0) {
|
|
2856
2879
|
queueMicrotask(arg0);
|
|
2857
2880
|
}
|
|
2858
2881
|
export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
|
|
@@ -2862,22 +2885,22 @@ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function (
|
|
|
2862
2885
|
const ret = module.require;
|
|
2863
2886
|
return ret;
|
|
2864
2887
|
}, arguments); }
|
|
2865
|
-
export function
|
|
2888
|
+
export function __wbg_resolve_0a79de24e9d2267b(arg0) {
|
|
2866
2889
|
const ret = Promise.resolve(arg0);
|
|
2867
2890
|
return ret;
|
|
2868
2891
|
}
|
|
2869
|
-
export function
|
|
2892
|
+
export function __wbg_set_08463b1df38a7e29(arg0, arg1, arg2) {
|
|
2870
2893
|
const ret = arg0.set(arg1, arg2);
|
|
2871
2894
|
return ret;
|
|
2872
2895
|
}
|
|
2873
|
-
export function
|
|
2896
|
+
export function __wbg_set_name_ab9c98596fd7310a(arg0, arg1, arg2) {
|
|
2874
2897
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
2875
2898
|
}
|
|
2876
2899
|
export function __wbg_sharekey_new(arg0) {
|
|
2877
2900
|
const ret = ShareKey.__wrap(arg0);
|
|
2878
2901
|
return ret;
|
|
2879
2902
|
}
|
|
2880
|
-
export function
|
|
2903
|
+
export function __wbg_sign_f4e7637ee82f1e2b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2881
2904
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2882
2905
|
return ret;
|
|
2883
2906
|
}, arguments); }
|
|
@@ -2904,19 +2927,19 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
2904
2927
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2905
2928
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2906
2929
|
}
|
|
2907
|
-
export function
|
|
2908
|
-
const ret = typeof
|
|
2930
|
+
export function __wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f() {
|
|
2931
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2909
2932
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2910
2933
|
}
|
|
2911
|
-
export function
|
|
2912
|
-
const ret = typeof
|
|
2934
|
+
export function __wbg_static_accessor_GLOBAL_f2e0f995a21329ff() {
|
|
2935
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2913
2936
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2914
2937
|
}
|
|
2915
|
-
export function
|
|
2938
|
+
export function __wbg_static_accessor_SELF_24f78b6d23f286ea() {
|
|
2916
2939
|
const ret = typeof self === 'undefined' ? null : self;
|
|
2917
2940
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2918
2941
|
}
|
|
2919
|
-
export function
|
|
2942
|
+
export function __wbg_static_accessor_WINDOW_59fd959c540fe405() {
|
|
2920
2943
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2921
2944
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2922
2945
|
}
|
|
@@ -2924,11 +2947,11 @@ export function __wbg_stats_new(arg0) {
|
|
|
2924
2947
|
const ret = Stats.__wrap(arg0);
|
|
2925
2948
|
return ret;
|
|
2926
2949
|
}
|
|
2927
|
-
export function
|
|
2950
|
+
export function __wbg_subarray_0f98d3fb634508ad(arg0, arg1, arg2) {
|
|
2928
2951
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2929
2952
|
return ret;
|
|
2930
2953
|
}
|
|
2931
|
-
export function
|
|
2954
|
+
export function __wbg_subtle_6b7d3b117f3b8d57(arg0) {
|
|
2932
2955
|
const ret = arg0.subtle;
|
|
2933
2956
|
return ret;
|
|
2934
2957
|
}
|
|
@@ -2936,12 +2959,12 @@ export function __wbg_summary_new(arg0) {
|
|
|
2936
2959
|
const ret = Summary.__wrap(arg0);
|
|
2937
2960
|
return ret;
|
|
2938
2961
|
}
|
|
2939
|
-
export function
|
|
2940
|
-
const ret = arg0.then(arg1);
|
|
2962
|
+
export function __wbg_then_00eed3ac0b8e82cb(arg0, arg1, arg2) {
|
|
2963
|
+
const ret = arg0.then(arg1, arg2);
|
|
2941
2964
|
return ret;
|
|
2942
2965
|
}
|
|
2943
|
-
export function
|
|
2944
|
-
const ret = arg0.then(arg1
|
|
2966
|
+
export function __wbg_then_a0c8db0381c8994c(arg0, arg1) {
|
|
2967
|
+
const ret = arg0.then(arg1);
|
|
2945
2968
|
return ret;
|
|
2946
2969
|
}
|
|
2947
2970
|
export function __wbg_versions_276b2795b1c6a219(arg0) {
|
|
@@ -2971,8 +2994,8 @@ export function __wbg_warn_9d7408e9659996aa(arg0, arg1, arg2, arg3, arg4, arg5,
|
|
|
2971
2994
|
}
|
|
2972
2995
|
}
|
|
2973
2996
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2974
|
-
// Cast intrinsic for `Closure(Closure {
|
|
2975
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2997
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 704, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2998
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7);
|
|
2976
2999
|
return ret;
|
|
2977
3000
|
}
|
|
2978
3001
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
@@ -3050,15 +3073,15 @@ export function __wbindgen_init_externref_table() {
|
|
|
3050
3073
|
table.set(offset + 2, true);
|
|
3051
3074
|
table.set(offset + 3, false);
|
|
3052
3075
|
}
|
|
3053
|
-
function
|
|
3054
|
-
const ret = wasm.
|
|
3076
|
+
function wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2) {
|
|
3077
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2);
|
|
3055
3078
|
if (ret[1]) {
|
|
3056
3079
|
throw takeFromExternrefTable0(ret[0]);
|
|
3057
3080
|
}
|
|
3058
3081
|
}
|
|
3059
3082
|
|
|
3060
|
-
function
|
|
3061
|
-
wasm.
|
|
3083
|
+
function wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3) {
|
|
3084
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3);
|
|
3062
3085
|
}
|
|
3063
3086
|
|
|
3064
3087
|
const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3196,7 +3219,7 @@ function _assertClass(instance, klass) {
|
|
|
3196
3219
|
|
|
3197
3220
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
3198
3221
|
? { register: () => {}, unregister: () => {} }
|
|
3199
|
-
: new FinalizationRegistry(state =>
|
|
3222
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
3200
3223
|
|
|
3201
3224
|
function debugString(val) {
|
|
3202
3225
|
// primitive types
|
|
@@ -3313,8 +3336,8 @@ function isLikeNone(x) {
|
|
|
3313
3336
|
return x === undefined || x === null;
|
|
3314
3337
|
}
|
|
3315
3338
|
|
|
3316
|
-
function makeMutClosure(arg0, arg1,
|
|
3317
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
3339
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
3340
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3318
3341
|
const real = (...args) => {
|
|
3319
3342
|
|
|
3320
3343
|
// First up with a closure we increment the internal reference
|
|
@@ -3332,7 +3355,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
3332
3355
|
};
|
|
3333
3356
|
real._wbg_cb_unref = () => {
|
|
3334
3357
|
if (--state.cnt === 0) {
|
|
3335
|
-
|
|
3358
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3336
3359
|
state.a = 0;
|
|
3337
3360
|
CLOSURE_DTORS.unregister(state);
|
|
3338
3361
|
}
|
package/pkg/keyhive_wasm_bg.wasm
CHANGED
|
Binary file
|