@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.
@@ -716,6 +716,13 @@ export class Document {
716
716
  const ret = wasm.document_id(this.__wbg_ptr);
717
717
  return Identifier.__wrap(ret);
718
718
  }
719
+ /**
720
+ * @returns {Promise<Capability[]>}
721
+ */
722
+ members() {
723
+ const ret = wasm.document_members(this.__wbg_ptr);
724
+ return ret;
725
+ }
719
726
  /**
720
727
  * @returns {Agent}
721
728
  */
@@ -1642,6 +1649,15 @@ export class Keyhive {
1642
1649
  const ret = wasm.keyhive_revokeMember(this.__wbg_ptr, to_revoke.__wbg_ptr, retain_all_other_members, membered.__wbg_ptr);
1643
1650
  return ret;
1644
1651
  }
1652
+ /**
1653
+ * @param {DocumentId} doc_id
1654
+ * @returns {Promise<Membership[]>}
1655
+ */
1656
+ revokedMembersForDoc(doc_id) {
1657
+ _assertClass(doc_id, DocumentId);
1658
+ const ret = wasm.keyhive_revokedMembersForDoc(this.__wbg_ptr, doc_id.__wbg_ptr);
1659
+ return ret;
1660
+ }
1645
1661
  /**
1646
1662
  * @param {ShareKey} prekey
1647
1663
  * @returns {Promise<ShareKey>}
@@ -2098,6 +2114,13 @@ export class SignedDelegation {
2098
2114
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2099
2115
  return v1;
2100
2116
  }
2117
+ /**
2118
+ * @returns {Identifier}
2119
+ */
2120
+ get subjectId() {
2121
+ const ret = wasm.signeddelegation_subjectId(this.__wbg_ptr);
2122
+ return Identifier.__wrap(ret);
2123
+ }
2101
2124
  /**
2102
2125
  * @returns {boolean}
2103
2126
  */
@@ -2504,63 +2527,63 @@ export function setPanicHook() {
2504
2527
  function __wbg_get_imports() {
2505
2528
  const import0 = {
2506
2529
  __proto__: null,
2507
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
2530
+ __wbg_Error_2e59b1b37a9a34c3: function(arg0, arg1) {
2508
2531
  const ret = Error(getStringFromWasm0(arg0, arg1));
2509
2532
  return ret;
2510
2533
  },
2511
- __wbg___wasm_refgen_toJsChangeId_575379d1a4e0664d: function(arg0) {
2534
+ __wbg___wasm_refgen_toJsChangeId_6ccc69ca295f07d8: function(arg0) {
2512
2535
  const ret = arg0.__wasm_refgen_toJsChangeId();
2513
2536
  _assertClass(ret, ChangeId);
2514
2537
  var ptr1 = ret.__destroy_into_raw();
2515
2538
  return ptr1;
2516
2539
  },
2517
- __wbg___wasm_refgen_toJsDocument_d553d6cbafec2867: function(arg0) {
2540
+ __wbg___wasm_refgen_toJsDocument_403a685db7b2e2de: function(arg0) {
2518
2541
  const ret = arg0.__wasm_refgen_toJsDocument();
2519
2542
  _assertClass(ret, Document);
2520
2543
  var ptr1 = ret.__destroy_into_raw();
2521
2544
  return ptr1;
2522
2545
  },
2523
- __wbg___wasm_refgen_toJsPeer_18f01647a0cd64bc: function(arg0) {
2546
+ __wbg___wasm_refgen_toJsPeer_4156830842f18fa5: function(arg0) {
2524
2547
  const ret = arg0.__wasm_refgen_toJsPeer();
2525
2548
  _assertClass(ret, Peer);
2526
2549
  var ptr1 = ret.__destroy_into_raw();
2527
2550
  return ptr1;
2528
2551
  },
2529
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
2552
+ __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
2530
2553
  const ret = debugString(arg1);
2531
2554
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2532
2555
  const len1 = WASM_VECTOR_LEN;
2533
2556
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2534
2557
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2535
2558
  },
2536
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
2559
+ __wbg___wbindgen_is_function_49868bde5eb1e745: function(arg0) {
2537
2560
  const ret = typeof(arg0) === 'function';
2538
2561
  return ret;
2539
2562
  },
2540
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
2563
+ __wbg___wbindgen_is_object_40c5a80572e8f9d3: function(arg0) {
2541
2564
  const val = arg0;
2542
2565
  const ret = typeof(val) === 'object' && val !== null;
2543
2566
  return ret;
2544
2567
  },
2545
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
2568
+ __wbg___wbindgen_is_string_b29b5c5a8065ba1a: function(arg0) {
2546
2569
  const ret = typeof(arg0) === 'string';
2547
2570
  return ret;
2548
2571
  },
2549
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
2572
+ __wbg___wbindgen_is_undefined_c0cca72b82b86f4d: function(arg0) {
2550
2573
  const ret = arg0 === undefined;
2551
2574
  return ret;
2552
2575
  },
2553
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
2576
+ __wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
2554
2577
  throw new Error(getStringFromWasm0(arg0, arg1));
2555
2578
  },
2556
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
2579
+ __wbg__wbg_cb_unref_3c3b4f651835fbcb: function(arg0) {
2557
2580
  arg0._wbg_cb_unref();
2558
2581
  },
2559
2582
  __wbg_access_new: function(arg0) {
2560
2583
  const ret = Access.__wrap(arg0);
2561
2584
  return ret;
2562
2585
  },
2563
- __wbg_add_fe24b809ecd53906: function(arg0, arg1) {
2586
+ __wbg_add_f56ec7ea7f056912: function(arg0, arg1) {
2564
2587
  const ret = arg0.add(arg1);
2565
2588
  return ret;
2566
2589
  },
@@ -2576,7 +2599,7 @@ function __wbg_get_imports() {
2576
2599
  const ret = Archive.__wrap(arg0);
2577
2600
  return ret;
2578
2601
  },
2579
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
2602
+ __wbg_call_d578befcc3145dee: function() { return handleError(function (arg0, arg1, arg2) {
2580
2603
  const ret = arg0.call(arg1, arg2);
2581
2604
  return ret;
2582
2605
  }, arguments); },
@@ -2679,11 +2702,11 @@ function __wbg_get_imports() {
2679
2702
  const ret = Event.__wrap(arg0);
2680
2703
  return ret;
2681
2704
  },
2682
- __wbg_exportKey_c43b919dba5a1db2: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2705
+ __wbg_exportKey_99bb9b98984e3a4e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2683
2706
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
2684
2707
  return ret;
2685
2708
  }, arguments); },
2686
- __wbg_generateKey_96afd66c8fa9121f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2709
+ __wbg_generateKey_2d4760a0496c6109: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2687
2710
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
2688
2711
  return ret;
2689
2712
  }, arguments); },
@@ -2694,19 +2717,19 @@ function __wbg_get_imports() {
2694
2717
  __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
2695
2718
  arg0.getRandomValues(arg1);
2696
2719
  }, arguments); },
2697
- __wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
2698
- const ret = Reflect.get(arg0, arg1);
2699
- return ret;
2700
- }, arguments); },
2701
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
2720
+ __wbg_get_4848e350b40afc16: function(arg0, arg1) {
2702
2721
  const ret = arg0[arg1 >>> 0];
2703
2722
  return ret;
2704
2723
  },
2705
- __wbg_get_private_key_4010ec7c01b9492f: function(arg0) {
2724
+ __wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
2725
+ const ret = Reflect.get(arg0, arg1);
2726
+ return ret;
2727
+ }, arguments); },
2728
+ __wbg_get_private_key_eba5c3b94a6582ab: function(arg0) {
2706
2729
  const ret = arg0.privateKey;
2707
2730
  return ret;
2708
2731
  },
2709
- __wbg_get_public_key_dcea0d78f1697f0b: function(arg0) {
2732
+ __wbg_get_public_key_cce0ab3bb2aaaec4: function(arg0) {
2710
2733
  const ret = arg0.publicKey;
2711
2734
  return ret;
2712
2735
  },
@@ -2718,7 +2741,7 @@ function __wbg_get_imports() {
2718
2741
  const ret = Individual.__wrap(arg0);
2719
2742
  return ret;
2720
2743
  },
2721
- __wbg_instanceof_Crypto_5c2a4c15287b0332: function(arg0) {
2744
+ __wbg_instanceof_Crypto_f4b23f832118da8c: function(arg0) {
2722
2745
  let result;
2723
2746
  try {
2724
2747
  result = arg0 instanceof Crypto;
@@ -2732,11 +2755,11 @@ function __wbg_get_imports() {
2732
2755
  const ret = Keyhive.__wrap(arg0);
2733
2756
  return ret;
2734
2757
  },
2735
- __wbg_length_b3416cf66a5452c8: function(arg0) {
2758
+ __wbg_length_0c32cb8543c8e4c8: function(arg0) {
2736
2759
  const ret = arg0.length;
2737
2760
  return ret;
2738
2761
  },
2739
- __wbg_length_ea16607d7b61445b: function(arg0) {
2762
+ __wbg_length_6e821edde497a532: function(arg0) {
2740
2763
  const ret = arg0.length;
2741
2764
  return ret;
2742
2765
  },
@@ -2793,38 +2816,38 @@ function __wbg_get_imports() {
2793
2816
  const ret = new Error();
2794
2817
  return ret;
2795
2818
  },
2796
- __wbg_new_49d5571bd3f0c4d4: function() {
2819
+ __wbg_new_44794e13e79fc463: function(arg0) {
2820
+ const ret = new Set(arg0);
2821
+ return ret;
2822
+ },
2823
+ __wbg_new_99cabae501c0a8a0: function() {
2797
2824
  const ret = new Map();
2798
2825
  return ret;
2799
2826
  },
2800
- __wbg_new_5f486cdf45a04d78: function(arg0) {
2827
+ __wbg_new_a560378ea1240b14: function(arg0) {
2801
2828
  const ret = new Uint8Array(arg0);
2802
2829
  return ret;
2803
2830
  },
2804
- __wbg_new_76edacb349be146a: function(arg0) {
2805
- const ret = new Set(arg0);
2831
+ __wbg_new_e3b04b4d53d1b593: function(arg0, arg1) {
2832
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2806
2833
  return ret;
2807
2834
  },
2808
- __wbg_new_a70fbab9066b301f: function() {
2835
+ __wbg_new_f3c9df4f38f3f798: function() {
2809
2836
  const ret = new Array();
2810
2837
  return ret;
2811
2838
  },
2812
- __wbg_new_d15cb560a6a0e5f0: function(arg0, arg1) {
2813
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2814
- return ret;
2815
- },
2816
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
2839
+ __wbg_new_from_slice_2580ff33d0d10520: function(arg0, arg1) {
2817
2840
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2818
2841
  return ret;
2819
2842
  },
2820
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
2843
+ __wbg_new_typed_14d7cc391ce53d2c: function(arg0, arg1) {
2821
2844
  try {
2822
2845
  var state0 = {a: arg0, b: arg1};
2823
2846
  var cb0 = (arg0, arg1) => {
2824
2847
  const a = state0.a;
2825
2848
  state0.a = 0;
2826
2849
  try {
2827
- return wasm_bindgen__convert__closures_____invoke__h2aa9fdfff8d5a8ab(a, state0.b, arg0, arg1);
2850
+ return wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(a, state0.b, arg0, arg1);
2828
2851
  } finally {
2829
2852
  state0.a = a;
2830
2853
  }
@@ -2832,10 +2855,10 @@ function __wbg_get_imports() {
2832
2855
  const ret = new Promise(cb0);
2833
2856
  return ret;
2834
2857
  } finally {
2835
- state0.a = state0.b = 0;
2858
+ state0.a = 0;
2836
2859
  }
2837
2860
  },
2838
- __wbg_new_with_length_825018a1616e9e55: function(arg0) {
2861
+ __wbg_new_with_length_9cedd08484b73942: function(arg0) {
2839
2862
  const ret = new Uint8Array(arg0 >>> 0);
2840
2863
  return ret;
2841
2864
  },
@@ -2847,18 +2870,18 @@ function __wbg_get_imports() {
2847
2870
  const ret = arg0.process;
2848
2871
  return ret;
2849
2872
  },
2850
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
2873
+ __wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
2851
2874
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2852
2875
  },
2853
- __wbg_push_e87b0e732085a946: function(arg0, arg1) {
2876
+ __wbg_push_6bdbc990be5ac37b: function(arg0, arg1) {
2854
2877
  const ret = arg0.push(arg1);
2855
2878
  return ret;
2856
2879
  },
2857
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
2880
+ __wbg_queueMicrotask_abaf92f0bd4e80a4: function(arg0) {
2858
2881
  const ret = arg0.queueMicrotask;
2859
2882
  return ret;
2860
2883
  },
2861
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
2884
+ __wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
2862
2885
  queueMicrotask(arg0);
2863
2886
  },
2864
2887
  __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
@@ -2868,22 +2891,22 @@ function __wbg_get_imports() {
2868
2891
  const ret = module.require;
2869
2892
  return ret;
2870
2893
  }, arguments); },
2871
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
2894
+ __wbg_resolve_0a79de24e9d2267b: function(arg0) {
2872
2895
  const ret = Promise.resolve(arg0);
2873
2896
  return ret;
2874
2897
  },
2875
- __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
2898
+ __wbg_set_08463b1df38a7e29: function(arg0, arg1, arg2) {
2876
2899
  const ret = arg0.set(arg1, arg2);
2877
2900
  return ret;
2878
2901
  },
2879
- __wbg_set_name_7ef37fe858379aaf: function(arg0, arg1, arg2) {
2902
+ __wbg_set_name_ab9c98596fd7310a: function(arg0, arg1, arg2) {
2880
2903
  arg0.name = getStringFromWasm0(arg1, arg2);
2881
2904
  },
2882
2905
  __wbg_sharekey_new: function(arg0) {
2883
2906
  const ret = ShareKey.__wrap(arg0);
2884
2907
  return ret;
2885
2908
  },
2886
- __wbg_sign_a34d057afd14c54d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2909
+ __wbg_sign_f4e7637ee82f1e2b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2887
2910
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
2888
2911
  return ret;
2889
2912
  }, arguments); },
@@ -2910,19 +2933,19 @@ function __wbg_get_imports() {
2910
2933
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2911
2934
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2912
2935
  },
2913
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
2914
- const ret = typeof global === 'undefined' ? null : global;
2936
+ __wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f: function() {
2937
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2915
2938
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2916
2939
  },
2917
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
2918
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2940
+ __wbg_static_accessor_GLOBAL_f2e0f995a21329ff: function() {
2941
+ const ret = typeof global === 'undefined' ? null : global;
2919
2942
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2920
2943
  },
2921
- __wbg_static_accessor_SELF_f207c857566db248: function() {
2944
+ __wbg_static_accessor_SELF_24f78b6d23f286ea: function() {
2922
2945
  const ret = typeof self === 'undefined' ? null : self;
2923
2946
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2924
2947
  },
2925
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
2948
+ __wbg_static_accessor_WINDOW_59fd959c540fe405: function() {
2926
2949
  const ret = typeof window === 'undefined' ? null : window;
2927
2950
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2928
2951
  },
@@ -2930,11 +2953,11 @@ function __wbg_get_imports() {
2930
2953
  const ret = Stats.__wrap(arg0);
2931
2954
  return ret;
2932
2955
  },
2933
- __wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
2956
+ __wbg_subarray_0f98d3fb634508ad: function(arg0, arg1, arg2) {
2934
2957
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2935
2958
  return ret;
2936
2959
  },
2937
- __wbg_subtle_c060fa3eb5c6248d: function(arg0) {
2960
+ __wbg_subtle_6b7d3b117f3b8d57: function(arg0) {
2938
2961
  const ret = arg0.subtle;
2939
2962
  return ret;
2940
2963
  },
@@ -2942,12 +2965,12 @@ function __wbg_get_imports() {
2942
2965
  const ret = Summary.__wrap(arg0);
2943
2966
  return ret;
2944
2967
  },
2945
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
2946
- const ret = arg0.then(arg1);
2968
+ __wbg_then_00eed3ac0b8e82cb: function(arg0, arg1, arg2) {
2969
+ const ret = arg0.then(arg1, arg2);
2947
2970
  return ret;
2948
2971
  },
2949
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
2950
- const ret = arg0.then(arg1, arg2);
2972
+ __wbg_then_a0c8db0381c8994c: function(arg0, arg1) {
2973
+ const ret = arg0.then(arg1);
2951
2974
  return ret;
2952
2975
  },
2953
2976
  __wbg_versions_276b2795b1c6a219: function(arg0) {
@@ -2977,8 +3000,8 @@ function __wbg_get_imports() {
2977
3000
  }
2978
3001
  },
2979
3002
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2980
- // 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`.
2981
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h056ce8b8b10a09c1, wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35);
3003
+ // 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`.
3004
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7);
2982
3005
  return ret;
2983
3006
  },
2984
3007
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
@@ -3063,15 +3086,15 @@ function __wbg_get_imports() {
3063
3086
  };
3064
3087
  }
3065
3088
 
3066
- function wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35(arg0, arg1, arg2) {
3067
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35(arg0, arg1, arg2);
3089
+ function wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2) {
3090
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2);
3068
3091
  if (ret[1]) {
3069
3092
  throw takeFromExternrefTable0(ret[0]);
3070
3093
  }
3071
3094
  }
3072
3095
 
3073
- function wasm_bindgen__convert__closures_____invoke__h2aa9fdfff8d5a8ab(arg0, arg1, arg2, arg3) {
3074
- wasm.wasm_bindgen__convert__closures_____invoke__h2aa9fdfff8d5a8ab(arg0, arg1, arg2, arg3);
3096
+ function wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3) {
3097
+ wasm.wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3);
3075
3098
  }
3076
3099
 
3077
3100
  const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -3209,7 +3232,7 @@ function _assertClass(instance, klass) {
3209
3232
 
3210
3233
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
3211
3234
  ? { register: () => {}, unregister: () => {} }
3212
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
3235
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
3213
3236
 
3214
3237
  function debugString(val) {
3215
3238
  // primitive types
@@ -3326,8 +3349,8 @@ function isLikeNone(x) {
3326
3349
  return x === undefined || x === null;
3327
3350
  }
3328
3351
 
3329
- function makeMutClosure(arg0, arg1, dtor, f) {
3330
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
3352
+ function makeMutClosure(arg0, arg1, f) {
3353
+ const state = { a: arg0, b: arg1, cnt: 1 };
3331
3354
  const real = (...args) => {
3332
3355
 
3333
3356
  // First up with a closure we increment the internal reference
@@ -3345,7 +3368,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
3345
3368
  };
3346
3369
  real._wbg_cb_unref = () => {
3347
3370
  if (--state.cnt === 0) {
3348
- state.dtor(state.a, state.b);
3371
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
3349
3372
  state.a = 0;
3350
3373
  CLOSURE_DTORS.unregister(state);
3351
3374
  }
Binary file