@loro-dev/flock-wasm 0.1.3 → 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.
@@ -252,7 +252,7 @@ function passArray8ToWasm0(arg, malloc) {
252
252
  return ptr;
253
253
  }
254
254
  function __wbg_adapter_56(arg0, arg1, arg2) {
255
- wasm.closure34_externref_shim(arg0, arg1, arg2);
255
+ wasm.closure43_externref_shim(arg0, arg1, arg2);
256
256
  }
257
257
 
258
258
  const RawFlockFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1008,8 +1008,8 @@ export function __wbindgen_cb_drop(arg0) {
1008
1008
  return ret;
1009
1009
  };
1010
1010
 
1011
- export function __wbindgen_closure_wrapper243(arg0, arg1, arg2) {
1012
- const ret = makeMutClosure(arg0, arg1, 35, __wbg_adapter_56);
1011
+ export function __wbindgen_closure_wrapper303(arg0, arg1, arg2) {
1012
+ const ret = makeMutClosure(arg0, arg1, 44, __wbg_adapter_56);
1013
1013
  return ret;
1014
1014
  };
1015
1015
 
Binary file
@@ -36,5 +36,5 @@ export const __wbindgen_export_4: WebAssembly.Table;
36
36
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
37
37
  export const __wbindgen_export_6: WebAssembly.Table;
38
38
  export const __externref_table_dealloc: (a: number) => void;
39
- export const closure34_externref_shim: (a: number, b: number, c: any) => void;
39
+ export const closure43_externref_shim: (a: number, b: number, c: any) => void;
40
40
  export const __wbindgen_start: () => void;
package/bundler/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 = {};
@@ -248,7 +248,7 @@ function passArray8ToWasm0(arg, malloc) {
248
248
  return ptr;
249
249
  }
250
250
  function __wbg_adapter_56(arg0, arg1, arg2) {
251
- wasm.closure34_externref_shim(arg0, arg1, arg2);
251
+ wasm.closure43_externref_shim(arg0, arg1, arg2);
252
252
  }
253
253
 
254
254
  const RawFlockFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1005,8 +1005,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
1005
1005
  return ret;
1006
1006
  };
1007
1007
 
1008
- module.exports.__wbindgen_closure_wrapper243 = function(arg0, arg1, arg2) {
1009
- const ret = makeMutClosure(arg0, arg1, 35, __wbg_adapter_56);
1008
+ module.exports.__wbindgen_closure_wrapper303 = function(arg0, arg1, arg2) {
1009
+ const ret = makeMutClosure(arg0, arg1, 44, __wbg_adapter_56);
1010
1010
  return ret;
1011
1011
  };
1012
1012
 
Binary file
@@ -36,5 +36,5 @@ export const __wbindgen_export_4: WebAssembly.Table;
36
36
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
37
37
  export const __wbindgen_export_6: WebAssembly.Table;
38
38
  export const __externref_table_dealloc: (a: number) => void;
39
- export const closure34_externref_shim: (a: number, b: number, c: any) => void;
39
+ export const closure43_externref_shim: (a: number, b: number, c: any) => void;
40
40
  export const __wbindgen_start: () => void;
package/nodejs/index.js CHANGED
@@ -246,7 +246,7 @@ function decodeVersionVectorBinary(bytes) {
246
246
  return decodeLegacyVersionVector(bytes);
247
247
  }
248
248
  function encodeVersionVectorForFfi(vv) {
249
- if (!vv) {
249
+ if (!vv || Object.keys(vv).length === 0) {
250
250
  return undefined;
251
251
  }
252
252
  const raw = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loro-dev/flock-wasm",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "WASM bindings for flock-rs.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -356,7 +356,7 @@ export interface InitOutput {
356
356
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
357
357
  readonly __wbindgen_export_6: WebAssembly.Table;
358
358
  readonly __externref_table_dealloc: (a: number) => void;
359
- readonly closure34_externref_shim: (a: number, b: number, c: any) => void;
359
+ readonly closure43_externref_shim: (a: number, b: number, c: any) => void;
360
360
  readonly __wbindgen_start: () => void;
361
361
  }
362
362
 
package/web/flock_wasm.js CHANGED
@@ -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) {
Binary file
@@ -36,5 +36,5 @@ export const __wbindgen_export_4: WebAssembly.Table;
36
36
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
37
37
  export const __wbindgen_export_6: WebAssembly.Table;
38
38
  export const __externref_table_dealloc: (a: number) => void;
39
- export const closure34_externref_shim: (a: number, b: number, c: any) => void;
39
+ export const closure43_externref_shim: (a: number, b: number, c: any) => void;
40
40
  export const __wbindgen_start: () => void;
package/web/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 = {};