@loro-dev/flock-wasm 0.1.4 → 0.1.5

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.
@@ -197,16 +197,6 @@ function debugString(val) {
197
197
  // TODO we could test for more things here, like `Set`s and `Map`s.
198
198
  return className;
199
199
  }
200
- /**
201
- * Initializes the WASM module.
202
- *
203
- * This function is automatically called when the WASM module is loaded.
204
- * It sets up the panic hook to route Rust panics to the JavaScript console.
205
- */
206
- export function start() {
207
- wasm.start();
208
- }
209
-
210
200
  /**
211
201
  * Drains the pending callback queue, invoking all enqueued callbacks.
212
202
  *
@@ -220,6 +210,16 @@ export function callPendingEvents() {
220
210
  wasm.callPendingEvents();
221
211
  }
222
212
 
213
+ /**
214
+ * Initializes the WASM module.
215
+ *
216
+ * This function is automatically called when the WASM module is loaded.
217
+ * It sets up the panic hook to route Rust panics to the JavaScript console.
218
+ */
219
+ export function start() {
220
+ wasm.start();
221
+ }
222
+
223
223
  function takeFromExternrefTable0(idx) {
224
224
  const value = wasm.__wbindgen_export_4.get(idx);
225
225
  wasm.__externref_table_dealloc(idx);
@@ -244,7 +244,7 @@ function passArray8ToWasm0(arg, malloc) {
244
244
  return ptr;
245
245
  }
246
246
  function __wbg_adapter_56(arg0, arg1, arg2) {
247
- wasm.closure34_externref_shim(arg0, arg1, arg2);
247
+ wasm.closure43_externref_shim(arg0, arg1, arg2);
248
248
  }
249
249
 
250
250
  const RawFlockFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -993,8 +993,8 @@ function __wbg_get_imports() {
993
993
  const ret = false;
994
994
  return ret;
995
995
  };
996
- imports.wbg.__wbindgen_closure_wrapper243 = function(arg0, arg1, arg2) {
997
- const ret = makeMutClosure(arg0, arg1, 35, __wbg_adapter_56);
996
+ imports.wbg.__wbindgen_closure_wrapper303 = function(arg0, arg1, arg2) {
997
+ const ret = makeMutClosure(arg0, arg1, 44, __wbg_adapter_56);
998
998
  return ret;
999
999
  };
1000
1000
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/base64/index.js CHANGED
@@ -241,7 +241,7 @@ function decodeVersionVectorBinary(bytes) {
241
241
  return decodeLegacyVersionVector(bytes);
242
242
  }
243
243
  function encodeVersionVectorForFfi(vv) {
244
- if (!vv) {
244
+ if (!vv || Object.keys(vv).length === 0) {
245
245
  return undefined;
246
246
  }
247
247
  const raw = {};