@utoo/web 1.2.0-rc.4 → 1.2.0-rc.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.
package/esm/utoo/index.js CHANGED
@@ -297,15 +297,6 @@ function passArray8ToWasm0(arg, malloc) {
297
297
  export function wasm_thread_entry_point(ptr) {
298
298
  wasm.wasm_thread_entry_point(ptr);
299
299
  }
300
- function __wbg_adapter_6(arg0, arg1, arg2) {
301
- wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
302
- }
303
- function __wbg_adapter_15(arg0, arg1) {
304
- wasm.__wbindgen_export_7(arg0, arg1);
305
- }
306
- function __wbg_adapter_18(arg0, arg1, arg2) {
307
- wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
308
- }
309
300
  let stack_pointer = 128;
310
301
  function addBorrowedObject(obj) {
311
302
  if (stack_pointer == 1)
@@ -313,14 +304,23 @@ function addBorrowedObject(obj) {
313
304
  heap[--stack_pointer] = obj;
314
305
  return stack_pointer;
315
306
  }
316
- function __wbg_adapter_29(arg0, arg1, arg2) {
307
+ function __wbg_adapter_4(arg0, arg1, arg2) {
317
308
  try {
318
- wasm.__wbindgen_export_9(arg0, arg1, addBorrowedObject(arg2));
309
+ wasm.__wbindgen_export_6(arg0, arg1, addBorrowedObject(arg2));
319
310
  }
320
311
  finally {
321
312
  heap[stack_pointer++] = undefined;
322
313
  }
323
314
  }
315
+ function __wbg_adapter_19(arg0, arg1, arg2) {
316
+ wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
317
+ }
318
+ function __wbg_adapter_22(arg0, arg1, arg2) {
319
+ wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
320
+ }
321
+ function __wbg_adapter_27(arg0, arg1) {
322
+ wasm.__wbindgen_export_9(arg0, arg1);
323
+ }
324
324
  function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
325
325
  wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
326
326
  }
@@ -1743,7 +1743,7 @@ function __wbg_get_imports() {
1743
1743
  };
1744
1744
  imports.wbg.__wbindgen_cast_147f62ca53704375 = function (arg0, arg1) {
1745
1745
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8608, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8609, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1746
- const ret = makeClosure(arg0, arg1, 8608, __wbg_adapter_18);
1746
+ const ret = makeClosure(arg0, arg1, 8608, __wbg_adapter_19);
1747
1747
  return addHeapObject(ret);
1748
1748
  };
1749
1749
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
@@ -1753,7 +1753,7 @@ function __wbg_get_imports() {
1753
1753
  };
1754
1754
  imports.wbg.__wbindgen_cast_320e55bca3a693f6 = function (arg0, arg1) {
1755
1755
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8608, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8631, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1756
- const ret = makeMutClosure(arg0, arg1, 8608, __wbg_adapter_29);
1756
+ const ret = makeMutClosure(arg0, arg1, 8608, __wbg_adapter_4);
1757
1757
  return addHeapObject(ret);
1758
1758
  };
1759
1759
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
@@ -1763,7 +1763,7 @@ function __wbg_get_imports() {
1763
1763
  };
1764
1764
  imports.wbg.__wbindgen_cast_6c005a14a1fbf1c5 = function (arg0, arg1) {
1765
1765
  // Cast intrinsic for `Closure(Closure { dtor_idx: 595, function: Function { arguments: [], shim_idx: 596, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1766
- const ret = makeMutClosure(arg0, arg1, 595, __wbg_adapter_15);
1766
+ const ret = makeMutClosure(arg0, arg1, 595, __wbg_adapter_27);
1767
1767
  return addHeapObject(ret);
1768
1768
  };
1769
1769
  imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
@@ -1782,12 +1782,12 @@ function __wbg_get_imports() {
1782
1782
  };
1783
1783
  imports.wbg.__wbindgen_cast_7b3678bd8e0fb80b = function (arg0, arg1) {
1784
1784
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8626, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8627, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1785
- const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_6);
1785
+ const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_22);
1786
1786
  return addHeapObject(ret);
1787
1787
  };
1788
1788
  imports.wbg.__wbindgen_cast_884165a22f3e9702 = function (arg0, arg1) {
1789
1789
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8626, function: Function { arguments: [Externref], shim_idx: 8627, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1790
- const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_6);
1790
+ const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_22);
1791
1791
  return addHeapObject(ret);
1792
1792
  };
1793
1793
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
@@ -1797,7 +1797,7 @@ function __wbg_get_imports() {
1797
1797
  };
1798
1798
  imports.wbg.__wbindgen_cast_c112ec0eb88c0f62 = function (arg0, arg1) {
1799
1799
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8626, function: Function { arguments: [], shim_idx: 596, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1800
- const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_15);
1800
+ const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_27);
1801
1801
  return addHeapObject(ret);
1802
1802
  };
1803
1803
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
@@ -1829,7 +1829,7 @@ function __wbg_get_imports() {
1829
1829
  return imports;
1830
1830
  }
1831
1831
  function __wbg_init_memory(imports, memory) {
1832
- imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 130, maximum: 16384, shared: true });
1832
+ imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 130, maximum: 65536, shared: true });
1833
1833
  }
1834
1834
  function __wbg_finalize_init(instance, module, thread_stack_size) {
1835
1835
  wasm = instance.exports;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/web",
3
- "version": "1.2.0-rc.4",
3
+ "version": "1.2.0-rc.5",
4
4
  "module": "esm/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "bindgen-build:local": "wasm-bindgen ../../target/wasm32-unknown-unknown/release-local/utoo_wasm.wasm --out-dir src/utoo --out-name index --target web",
16
16
  "pretsc": "npm run build --workspace @utoo/pack-shared",
17
17
  "tsc": "rm -rf esm && tsc -p ./tsconfig.json",
18
- "dev": "npm run build-wasm -- --profile wasm-dev && npm run bindgen-dev && npm run tsc && cp src/utoo/index_bg.wasm esm/utoo",
18
+ "dev": "npm run build-wasm -- --profile wasm-dev && npm run bindgen-dev && npm run tsc && npm run build-loaderWorker && cp src/utoo/index_bg.wasm esm/utoo",
19
19
  "dev:pm": "npm run build-wasm:pm -- --profile wasm-dev && npm run bindgen-dev && npm run tsc && cp src/utoo/index_bg.wasm esm/utoo",
20
20
  "wasm-opt": "wasm-opt src/utoo/index_bg.wasm -o esm/utoo/index_bg.wasm --enable-threads --enable-bulk-memory --enable-nontrapping-float-to-int -Oz",
21
21
  "build": "npm run build-wasm -- --release && npm run bindgen-build && npm run tsc && npm run build-loaderWorker && npm run wasm-opt",