@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.
@@ -729,6 +729,13 @@ class Document {
729
729
  const ret = wasm.document_id(this.__wbg_ptr);
730
730
  return Identifier.__wrap(ret);
731
731
  }
732
+ /**
733
+ * @returns {Promise<Capability[]>}
734
+ */
735
+ members() {
736
+ const ret = wasm.document_members(this.__wbg_ptr);
737
+ return ret;
738
+ }
732
739
  /**
733
740
  * @returns {Agent}
734
741
  */
@@ -1668,6 +1675,15 @@ class Keyhive {
1668
1675
  const ret = wasm.keyhive_revokeMember(this.__wbg_ptr, to_revoke.__wbg_ptr, retain_all_other_members, membered.__wbg_ptr);
1669
1676
  return ret;
1670
1677
  }
1678
+ /**
1679
+ * @param {DocumentId} doc_id
1680
+ * @returns {Promise<Membership[]>}
1681
+ */
1682
+ revokedMembersForDoc(doc_id) {
1683
+ _assertClass(doc_id, DocumentId);
1684
+ const ret = wasm.keyhive_revokedMembersForDoc(this.__wbg_ptr, doc_id.__wbg_ptr);
1685
+ return ret;
1686
+ }
1671
1687
  /**
1672
1688
  * @param {ShareKey} prekey
1673
1689
  * @returns {Promise<ShareKey>}
@@ -2132,6 +2148,13 @@ class SignedDelegation {
2132
2148
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2133
2149
  return v1;
2134
2150
  }
2151
+ /**
2152
+ * @returns {Identifier}
2153
+ */
2154
+ get subjectId() {
2155
+ const ret = wasm.signeddelegation_subjectId(this.__wbg_ptr);
2156
+ return Identifier.__wrap(ret);
2157
+ }
2135
2158
  /**
2136
2159
  * @returns {boolean}
2137
2160
  */
@@ -2545,63 +2568,63 @@ exports.setPanicHook = setPanicHook;
2545
2568
  function __wbg_get_imports() {
2546
2569
  const import0 = {
2547
2570
  __proto__: null,
2548
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
2571
+ __wbg_Error_2e59b1b37a9a34c3: function(arg0, arg1) {
2549
2572
  const ret = Error(getStringFromWasm0(arg0, arg1));
2550
2573
  return ret;
2551
2574
  },
2552
- __wbg___wasm_refgen_toJsChangeId_575379d1a4e0664d: function(arg0) {
2575
+ __wbg___wasm_refgen_toJsChangeId_6ccc69ca295f07d8: function(arg0) {
2553
2576
  const ret = arg0.__wasm_refgen_toJsChangeId();
2554
2577
  _assertClass(ret, ChangeId);
2555
2578
  var ptr1 = ret.__destroy_into_raw();
2556
2579
  return ptr1;
2557
2580
  },
2558
- __wbg___wasm_refgen_toJsDocument_d553d6cbafec2867: function(arg0) {
2581
+ __wbg___wasm_refgen_toJsDocument_403a685db7b2e2de: function(arg0) {
2559
2582
  const ret = arg0.__wasm_refgen_toJsDocument();
2560
2583
  _assertClass(ret, Document);
2561
2584
  var ptr1 = ret.__destroy_into_raw();
2562
2585
  return ptr1;
2563
2586
  },
2564
- __wbg___wasm_refgen_toJsPeer_18f01647a0cd64bc: function(arg0) {
2587
+ __wbg___wasm_refgen_toJsPeer_4156830842f18fa5: function(arg0) {
2565
2588
  const ret = arg0.__wasm_refgen_toJsPeer();
2566
2589
  _assertClass(ret, Peer);
2567
2590
  var ptr1 = ret.__destroy_into_raw();
2568
2591
  return ptr1;
2569
2592
  },
2570
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
2593
+ __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
2571
2594
  const ret = debugString(arg1);
2572
2595
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2573
2596
  const len1 = WASM_VECTOR_LEN;
2574
2597
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2575
2598
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2576
2599
  },
2577
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
2600
+ __wbg___wbindgen_is_function_49868bde5eb1e745: function(arg0) {
2578
2601
  const ret = typeof(arg0) === 'function';
2579
2602
  return ret;
2580
2603
  },
2581
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
2604
+ __wbg___wbindgen_is_object_40c5a80572e8f9d3: function(arg0) {
2582
2605
  const val = arg0;
2583
2606
  const ret = typeof(val) === 'object' && val !== null;
2584
2607
  return ret;
2585
2608
  },
2586
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
2609
+ __wbg___wbindgen_is_string_b29b5c5a8065ba1a: function(arg0) {
2587
2610
  const ret = typeof(arg0) === 'string';
2588
2611
  return ret;
2589
2612
  },
2590
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
2613
+ __wbg___wbindgen_is_undefined_c0cca72b82b86f4d: function(arg0) {
2591
2614
  const ret = arg0 === undefined;
2592
2615
  return ret;
2593
2616
  },
2594
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
2617
+ __wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
2595
2618
  throw new Error(getStringFromWasm0(arg0, arg1));
2596
2619
  },
2597
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
2620
+ __wbg__wbg_cb_unref_3c3b4f651835fbcb: function(arg0) {
2598
2621
  arg0._wbg_cb_unref();
2599
2622
  },
2600
2623
  __wbg_access_new: function(arg0) {
2601
2624
  const ret = Access.__wrap(arg0);
2602
2625
  return ret;
2603
2626
  },
2604
- __wbg_add_fe24b809ecd53906: function(arg0, arg1) {
2627
+ __wbg_add_f56ec7ea7f056912: function(arg0, arg1) {
2605
2628
  const ret = arg0.add(arg1);
2606
2629
  return ret;
2607
2630
  },
@@ -2617,7 +2640,7 @@ function __wbg_get_imports() {
2617
2640
  const ret = Archive.__wrap(arg0);
2618
2641
  return ret;
2619
2642
  },
2620
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
2643
+ __wbg_call_d578befcc3145dee: function() { return handleError(function (arg0, arg1, arg2) {
2621
2644
  const ret = arg0.call(arg1, arg2);
2622
2645
  return ret;
2623
2646
  }, arguments); },
@@ -2720,11 +2743,11 @@ function __wbg_get_imports() {
2720
2743
  const ret = Event.__wrap(arg0);
2721
2744
  return ret;
2722
2745
  },
2723
- __wbg_exportKey_c43b919dba5a1db2: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2746
+ __wbg_exportKey_99bb9b98984e3a4e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2724
2747
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
2725
2748
  return ret;
2726
2749
  }, arguments); },
2727
- __wbg_generateKey_96afd66c8fa9121f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2750
+ __wbg_generateKey_2d4760a0496c6109: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2728
2751
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
2729
2752
  return ret;
2730
2753
  }, arguments); },
@@ -2735,19 +2758,19 @@ function __wbg_get_imports() {
2735
2758
  __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
2736
2759
  arg0.getRandomValues(arg1);
2737
2760
  }, arguments); },
2738
- __wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
2739
- const ret = Reflect.get(arg0, arg1);
2740
- return ret;
2741
- }, arguments); },
2742
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
2761
+ __wbg_get_4848e350b40afc16: function(arg0, arg1) {
2743
2762
  const ret = arg0[arg1 >>> 0];
2744
2763
  return ret;
2745
2764
  },
2746
- __wbg_get_private_key_4010ec7c01b9492f: function(arg0) {
2765
+ __wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
2766
+ const ret = Reflect.get(arg0, arg1);
2767
+ return ret;
2768
+ }, arguments); },
2769
+ __wbg_get_private_key_eba5c3b94a6582ab: function(arg0) {
2747
2770
  const ret = arg0.privateKey;
2748
2771
  return ret;
2749
2772
  },
2750
- __wbg_get_public_key_dcea0d78f1697f0b: function(arg0) {
2773
+ __wbg_get_public_key_cce0ab3bb2aaaec4: function(arg0) {
2751
2774
  const ret = arg0.publicKey;
2752
2775
  return ret;
2753
2776
  },
@@ -2759,7 +2782,7 @@ function __wbg_get_imports() {
2759
2782
  const ret = Individual.__wrap(arg0);
2760
2783
  return ret;
2761
2784
  },
2762
- __wbg_instanceof_Crypto_5c2a4c15287b0332: function(arg0) {
2785
+ __wbg_instanceof_Crypto_f4b23f832118da8c: function(arg0) {
2763
2786
  let result;
2764
2787
  try {
2765
2788
  result = arg0 instanceof Crypto;
@@ -2773,11 +2796,11 @@ function __wbg_get_imports() {
2773
2796
  const ret = Keyhive.__wrap(arg0);
2774
2797
  return ret;
2775
2798
  },
2776
- __wbg_length_b3416cf66a5452c8: function(arg0) {
2799
+ __wbg_length_0c32cb8543c8e4c8: function(arg0) {
2777
2800
  const ret = arg0.length;
2778
2801
  return ret;
2779
2802
  },
2780
- __wbg_length_ea16607d7b61445b: function(arg0) {
2803
+ __wbg_length_6e821edde497a532: function(arg0) {
2781
2804
  const ret = arg0.length;
2782
2805
  return ret;
2783
2806
  },
@@ -2834,38 +2857,38 @@ function __wbg_get_imports() {
2834
2857
  const ret = new Error();
2835
2858
  return ret;
2836
2859
  },
2837
- __wbg_new_49d5571bd3f0c4d4: function() {
2860
+ __wbg_new_44794e13e79fc463: function(arg0) {
2861
+ const ret = new Set(arg0);
2862
+ return ret;
2863
+ },
2864
+ __wbg_new_99cabae501c0a8a0: function() {
2838
2865
  const ret = new Map();
2839
2866
  return ret;
2840
2867
  },
2841
- __wbg_new_5f486cdf45a04d78: function(arg0) {
2868
+ __wbg_new_a560378ea1240b14: function(arg0) {
2842
2869
  const ret = new Uint8Array(arg0);
2843
2870
  return ret;
2844
2871
  },
2845
- __wbg_new_76edacb349be146a: function(arg0) {
2846
- const ret = new Set(arg0);
2872
+ __wbg_new_e3b04b4d53d1b593: function(arg0, arg1) {
2873
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2847
2874
  return ret;
2848
2875
  },
2849
- __wbg_new_a70fbab9066b301f: function() {
2876
+ __wbg_new_f3c9df4f38f3f798: function() {
2850
2877
  const ret = new Array();
2851
2878
  return ret;
2852
2879
  },
2853
- __wbg_new_d15cb560a6a0e5f0: function(arg0, arg1) {
2854
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2855
- return ret;
2856
- },
2857
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
2880
+ __wbg_new_from_slice_2580ff33d0d10520: function(arg0, arg1) {
2858
2881
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2859
2882
  return ret;
2860
2883
  },
2861
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
2884
+ __wbg_new_typed_14d7cc391ce53d2c: function(arg0, arg1) {
2862
2885
  try {
2863
2886
  var state0 = {a: arg0, b: arg1};
2864
2887
  var cb0 = (arg0, arg1) => {
2865
2888
  const a = state0.a;
2866
2889
  state0.a = 0;
2867
2890
  try {
2868
- return wasm_bindgen__convert__closures_____invoke__h2aa9fdfff8d5a8ab(a, state0.b, arg0, arg1);
2891
+ return wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(a, state0.b, arg0, arg1);
2869
2892
  } finally {
2870
2893
  state0.a = a;
2871
2894
  }
@@ -2873,10 +2896,10 @@ function __wbg_get_imports() {
2873
2896
  const ret = new Promise(cb0);
2874
2897
  return ret;
2875
2898
  } finally {
2876
- state0.a = state0.b = 0;
2899
+ state0.a = 0;
2877
2900
  }
2878
2901
  },
2879
- __wbg_new_with_length_825018a1616e9e55: function(arg0) {
2902
+ __wbg_new_with_length_9cedd08484b73942: function(arg0) {
2880
2903
  const ret = new Uint8Array(arg0 >>> 0);
2881
2904
  return ret;
2882
2905
  },
@@ -2888,18 +2911,18 @@ function __wbg_get_imports() {
2888
2911
  const ret = arg0.process;
2889
2912
  return ret;
2890
2913
  },
2891
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
2914
+ __wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
2892
2915
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2893
2916
  },
2894
- __wbg_push_e87b0e732085a946: function(arg0, arg1) {
2917
+ __wbg_push_6bdbc990be5ac37b: function(arg0, arg1) {
2895
2918
  const ret = arg0.push(arg1);
2896
2919
  return ret;
2897
2920
  },
2898
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
2921
+ __wbg_queueMicrotask_abaf92f0bd4e80a4: function(arg0) {
2899
2922
  const ret = arg0.queueMicrotask;
2900
2923
  return ret;
2901
2924
  },
2902
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
2925
+ __wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
2903
2926
  queueMicrotask(arg0);
2904
2927
  },
2905
2928
  __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
@@ -2909,22 +2932,22 @@ function __wbg_get_imports() {
2909
2932
  const ret = module.require;
2910
2933
  return ret;
2911
2934
  }, arguments); },
2912
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
2935
+ __wbg_resolve_0a79de24e9d2267b: function(arg0) {
2913
2936
  const ret = Promise.resolve(arg0);
2914
2937
  return ret;
2915
2938
  },
2916
- __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
2939
+ __wbg_set_08463b1df38a7e29: function(arg0, arg1, arg2) {
2917
2940
  const ret = arg0.set(arg1, arg2);
2918
2941
  return ret;
2919
2942
  },
2920
- __wbg_set_name_7ef37fe858379aaf: function(arg0, arg1, arg2) {
2943
+ __wbg_set_name_ab9c98596fd7310a: function(arg0, arg1, arg2) {
2921
2944
  arg0.name = getStringFromWasm0(arg1, arg2);
2922
2945
  },
2923
2946
  __wbg_sharekey_new: function(arg0) {
2924
2947
  const ret = ShareKey.__wrap(arg0);
2925
2948
  return ret;
2926
2949
  },
2927
- __wbg_sign_a34d057afd14c54d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2950
+ __wbg_sign_f4e7637ee82f1e2b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2928
2951
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
2929
2952
  return ret;
2930
2953
  }, arguments); },
@@ -2951,19 +2974,19 @@ function __wbg_get_imports() {
2951
2974
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2952
2975
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2953
2976
  },
2954
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
2955
- const ret = typeof global === 'undefined' ? null : global;
2977
+ __wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f: function() {
2978
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2956
2979
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2957
2980
  },
2958
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
2959
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2981
+ __wbg_static_accessor_GLOBAL_f2e0f995a21329ff: function() {
2982
+ const ret = typeof global === 'undefined' ? null : global;
2960
2983
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2961
2984
  },
2962
- __wbg_static_accessor_SELF_f207c857566db248: function() {
2985
+ __wbg_static_accessor_SELF_24f78b6d23f286ea: function() {
2963
2986
  const ret = typeof self === 'undefined' ? null : self;
2964
2987
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2965
2988
  },
2966
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
2989
+ __wbg_static_accessor_WINDOW_59fd959c540fe405: function() {
2967
2990
  const ret = typeof window === 'undefined' ? null : window;
2968
2991
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2969
2992
  },
@@ -2971,11 +2994,11 @@ function __wbg_get_imports() {
2971
2994
  const ret = Stats.__wrap(arg0);
2972
2995
  return ret;
2973
2996
  },
2974
- __wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
2997
+ __wbg_subarray_0f98d3fb634508ad: function(arg0, arg1, arg2) {
2975
2998
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2976
2999
  return ret;
2977
3000
  },
2978
- __wbg_subtle_c060fa3eb5c6248d: function(arg0) {
3001
+ __wbg_subtle_6b7d3b117f3b8d57: function(arg0) {
2979
3002
  const ret = arg0.subtle;
2980
3003
  return ret;
2981
3004
  },
@@ -2983,12 +3006,12 @@ function __wbg_get_imports() {
2983
3006
  const ret = Summary.__wrap(arg0);
2984
3007
  return ret;
2985
3008
  },
2986
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
2987
- const ret = arg0.then(arg1);
3009
+ __wbg_then_00eed3ac0b8e82cb: function(arg0, arg1, arg2) {
3010
+ const ret = arg0.then(arg1, arg2);
2988
3011
  return ret;
2989
3012
  },
2990
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
2991
- const ret = arg0.then(arg1, arg2);
3013
+ __wbg_then_a0c8db0381c8994c: function(arg0, arg1) {
3014
+ const ret = arg0.then(arg1);
2992
3015
  return ret;
2993
3016
  },
2994
3017
  __wbg_versions_276b2795b1c6a219: function(arg0) {
@@ -3018,8 +3041,8 @@ function __wbg_get_imports() {
3018
3041
  }
3019
3042
  },
3020
3043
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
3021
- // Cast intrinsic for `Closure(Closure { dtor_idx: 487, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3022
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h056ce8b8b10a09c1, wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35);
3044
+ // 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`.
3045
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7);
3023
3046
  return ret;
3024
3047
  },
3025
3048
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
@@ -3104,15 +3127,15 @@ function __wbg_get_imports() {
3104
3127
  };
3105
3128
  }
3106
3129
 
3107
- function wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35(arg0, arg1, arg2) {
3108
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35(arg0, arg1, arg2);
3130
+ function wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2) {
3131
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2);
3109
3132
  if (ret[1]) {
3110
3133
  throw takeFromExternrefTable0(ret[0]);
3111
3134
  }
3112
3135
  }
3113
3136
 
3114
- function wasm_bindgen__convert__closures_____invoke__h2aa9fdfff8d5a8ab(arg0, arg1, arg2, arg3) {
3115
- wasm.wasm_bindgen__convert__closures_____invoke__h2aa9fdfff8d5a8ab(arg0, arg1, arg2, arg3);
3137
+ function wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3) {
3138
+ wasm.wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3);
3116
3139
  }
3117
3140
 
3118
3141
  const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -3250,7 +3273,7 @@ function _assertClass(instance, klass) {
3250
3273
 
3251
3274
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
3252
3275
  ? { register: () => {}, unregister: () => {} }
3253
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
3276
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
3254
3277
 
3255
3278
  function debugString(val) {
3256
3279
  // primitive types
@@ -3367,8 +3390,8 @@ function isLikeNone(x) {
3367
3390
  return x === undefined || x === null;
3368
3391
  }
3369
3392
 
3370
- function makeMutClosure(arg0, arg1, dtor, f) {
3371
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
3393
+ function makeMutClosure(arg0, arg1, f) {
3394
+ const state = { a: arg0, b: arg1, cnt: 1 };
3372
3395
  const real = (...args) => {
3373
3396
 
3374
3397
  // First up with a closure we increment the internal reference
@@ -3386,7 +3409,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
3386
3409
  };
3387
3410
  real._wbg_cb_unref = () => {
3388
3411
  if (--state.cnt === 0) {
3389
- state.dtor(state.a, state.b);
3412
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
3390
3413
  state.a = 0;
3391
3414
  CLOSURE_DTORS.unregister(state);
3392
3415
  }
Binary file