@utoo/web 1.2.0-rc.14 → 1.2.0-rc.15

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
@@ -208,6 +208,15 @@ function makeMutClosure(arg0, arg1, dtor, f) {
208
208
  CLOSURE_DTORS.register(real, state, state);
209
209
  return real;
210
210
  }
211
+ function getArrayJsValueFromWasm0(ptr, len) {
212
+ ptr = ptr >>> 0;
213
+ const mem = getDataViewMemory0();
214
+ const result = [];
215
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
216
+ result.push(takeObject(mem.getUint32(i, true)));
217
+ }
218
+ return result;
219
+ }
211
220
  function makeClosure(arg0, arg1, dtor, f) {
212
221
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
213
222
  const real = (...args) => {
@@ -230,15 +239,6 @@ function makeClosure(arg0, arg1, dtor, f) {
230
239
  CLOSURE_DTORS.register(real, state, state);
231
240
  return real;
232
241
  }
233
- function getArrayJsValueFromWasm0(ptr, len) {
234
- ptr = ptr >>> 0;
235
- const mem = getDataViewMemory0();
236
- const result = [];
237
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
238
- result.push(takeObject(mem.getUint32(i, true)));
239
- }
240
- return result;
241
- }
242
242
  function _assertClass(instance, klass) {
243
243
  if (!(instance instanceof klass)) {
244
244
  throw new Error(`expected instance of ${klass.name}`);
@@ -297,6 +297,9 @@ export function registerWorkerScheduler(creator, terminator) {
297
297
  export function wasm_thread_entry_point(ptr) {
298
298
  wasm.wasm_thread_entry_point(ptr);
299
299
  }
300
+ function __wbg_adapter_10(arg0, arg1, arg2) {
301
+ wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
302
+ }
300
303
  let stack_pointer = 128;
301
304
  function addBorrowedObject(obj) {
302
305
  if (stack_pointer == 1)
@@ -304,24 +307,21 @@ function addBorrowedObject(obj) {
304
307
  heap[--stack_pointer] = obj;
305
308
  return stack_pointer;
306
309
  }
307
- function __wbg_adapter_4(arg0, arg1, arg2) {
310
+ function __wbg_adapter_13(arg0, arg1, arg2) {
308
311
  try {
309
- wasm.__wbindgen_export_6(arg0, arg1, addBorrowedObject(arg2));
312
+ wasm.__wbindgen_export_7(arg0, arg1, addBorrowedObject(arg2));
310
313
  }
311
314
  finally {
312
315
  heap[stack_pointer++] = undefined;
313
316
  }
314
317
  }
315
- function __wbg_adapter_9(arg0, arg1, arg2) {
316
- wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
317
- }
318
- function __wbg_adapter_12(arg0, arg1) {
318
+ function __wbg_adapter_18(arg0, arg1) {
319
319
  wasm.__wbindgen_export_8(arg0, arg1);
320
320
  }
321
- function __wbg_adapter_27(arg0, arg1, arg2) {
321
+ function __wbg_adapter_21(arg0, arg1, arg2) {
322
322
  wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2));
323
323
  }
324
- function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
324
+ function __wbg_adapter_92(arg0, arg1, arg2, arg3) {
325
325
  wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
326
326
  }
327
327
  const __wbindgen_enum_DirEntryType = ["file", "directory"];
@@ -991,10 +991,6 @@ function __wbg_get_imports() {
991
991
  const ret = Error(getStringFromWasm0(arg0, arg1));
992
992
  return addHeapObject(ret);
993
993
  };
994
- imports.wbg.__wbg_Number_998bea33bd87c3e0 = function (arg0) {
995
- const ret = Number(getObject(arg0));
996
- return ret;
997
- };
998
994
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
999
995
  const ret = String(getObject(arg1));
1000
996
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -1159,10 +1155,6 @@ function __wbg_get_imports() {
1159
1155
  return addHeapObject(ret);
1160
1156
  }, arguments);
1161
1157
  };
1162
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
1163
- const ret = getObject(arg0)[getObject(arg1)];
1164
- return addHeapObject(ret);
1165
- };
1166
1158
  imports.wbg.__wbg_has_b89e451f638123e3 = function () {
1167
1159
  return handleError(function (arg0, arg1) {
1168
1160
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
@@ -1179,17 +1171,6 @@ function __wbg_get_imports() {
1179
1171
  imports.wbg.__wbg_info_6cf68c1a86a92f6a = function (arg0) {
1180
1172
  console.info(getObject(arg0));
1181
1173
  };
1182
- imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function (arg0) {
1183
- let result;
1184
- try {
1185
- result = getObject(arg0) instanceof ArrayBuffer;
1186
- }
1187
- catch (_) {
1188
- result = false;
1189
- }
1190
- const ret = result;
1191
- return ret;
1192
- };
1193
1174
  imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a054a9af652220ba = function (arg0) {
1194
1175
  let result;
1195
1176
  try {
@@ -1249,10 +1230,6 @@ function __wbg_get_imports() {
1249
1230
  const ret = Array.isArray(getObject(arg0));
1250
1231
  return ret;
1251
1232
  };
1252
- imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function (arg0) {
1253
- const ret = Number.isSafeInteger(getObject(arg0));
1254
- return ret;
1255
- };
1256
1233
  imports.wbg.__wbg_iterator_f370b34483c71a1c = function () {
1257
1234
  const ret = Symbol.iterator;
1258
1235
  return addHeapObject(ret);
@@ -1303,7 +1280,7 @@ function __wbg_get_imports() {
1303
1280
  const a = state0.a;
1304
1281
  state0.a = 0;
1305
1282
  try {
1306
- return __wbg_adapter_94(a, state0.b, arg0, arg1);
1283
+ return __wbg_adapter_92(a, state0.b, arg0, arg1);
1307
1284
  }
1308
1285
  finally {
1309
1286
  state0.a = a;
@@ -1642,11 +1619,6 @@ function __wbg_get_imports() {
1642
1619
  const ret = WasmTaskMessage.__wrap(arg0);
1643
1620
  return addHeapObject(ret);
1644
1621
  };
1645
- imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function (arg0) {
1646
- const v = getObject(arg0);
1647
- const ret = typeof (v) === 'boolean' ? v : undefined;
1648
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1649
- };
1650
1622
  imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function (arg0) {
1651
1623
  const obj = getObject(arg0).original;
1652
1624
  if (obj.cnt-- == 1) {
@@ -1663,10 +1635,6 @@ function __wbg_get_imports() {
1663
1635
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1664
1636
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1665
1637
  };
1666
- imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function (arg0, arg1) {
1667
- const ret = getObject(arg0) in getObject(arg1);
1668
- return ret;
1669
- };
1670
1638
  imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function (arg0) {
1671
1639
  const ret = typeof (getObject(arg0)) === 'function';
1672
1640
  return ret;
@@ -1684,10 +1652,6 @@ function __wbg_get_imports() {
1684
1652
  const ret = getObject(arg0) === undefined;
1685
1653
  return ret;
1686
1654
  };
1687
- imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function (arg0, arg1) {
1688
- const ret = getObject(arg0) == getObject(arg1);
1689
- return ret;
1690
- };
1691
1655
  imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function () {
1692
1656
  const ret = wasm.memory;
1693
1657
  return addHeapObject(ret);
@@ -1736,19 +1700,14 @@ function __wbg_get_imports() {
1736
1700
  return ret;
1737
1701
  }, arguments);
1738
1702
  };
1739
- imports.wbg.__wbindgen_cast_07f92778ebb7194b = function (arg0, arg1) {
1740
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8679, function: Function { arguments: [Externref], shim_idx: 8680, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1741
- const ret = makeMutClosure(arg0, arg1, 8679, __wbg_adapter_9);
1742
- return addHeapObject(ret);
1743
- };
1744
- imports.wbg.__wbindgen_cast_1a17115a89edae02 = function (arg0, arg1) {
1745
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8663, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8664, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1746
- const ret = makeClosure(arg0, arg1, 8663, __wbg_adapter_27);
1703
+ imports.wbg.__wbindgen_cast_00f6bf70aca6942b = function (arg0, arg1) {
1704
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8676, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8677, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1705
+ const ret = makeMutClosure(arg0, arg1, 8676, __wbg_adapter_21);
1747
1706
  return addHeapObject(ret);
1748
1707
  };
1749
- imports.wbg.__wbindgen_cast_1ce8880aad03523b = function (arg0, arg1) {
1750
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1994, function: Function { arguments: [], shim_idx: 1995, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1751
- const ret = makeMutClosure(arg0, arg1, 1994, __wbg_adapter_12);
1708
+ imports.wbg.__wbindgen_cast_0e8130195cfa0680 = function (arg0, arg1) {
1709
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1993, function: Function { arguments: [], shim_idx: 1994, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1710
+ const ret = makeMutClosure(arg0, arg1, 1993, __wbg_adapter_18);
1752
1711
  return addHeapObject(ret);
1753
1712
  };
1754
1713
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
@@ -1756,11 +1715,6 @@ function __wbg_get_imports() {
1756
1715
  const ret = getStringFromWasm0(arg0, arg1);
1757
1716
  return addHeapObject(ret);
1758
1717
  };
1759
- imports.wbg.__wbindgen_cast_3c81c10f5ca88e38 = function (arg0, arg1) {
1760
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8679, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8680, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1761
- const ret = makeMutClosure(arg0, arg1, 8679, __wbg_adapter_9);
1762
- return addHeapObject(ret);
1763
- };
1764
1718
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1765
1719
  // Cast intrinsic for `U64 -> Externref`.
1766
1720
  const ret = BigInt.asUintN(64, arg0);
@@ -1780,14 +1734,24 @@ function __wbg_get_imports() {
1780
1734
  const ret = v0;
1781
1735
  return addHeapObject(ret);
1782
1736
  };
1737
+ imports.wbg.__wbindgen_cast_8f79b23164e7b5b8 = function (arg0, arg1) {
1738
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8676, function: Function { arguments: [Externref], shim_idx: 8677, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1739
+ const ret = makeMutClosure(arg0, arg1, 8676, __wbg_adapter_21);
1740
+ return addHeapObject(ret);
1741
+ };
1783
1742
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
1784
1743
  // Cast intrinsic for `I64 -> Externref`.
1785
1744
  const ret = arg0;
1786
1745
  return addHeapObject(ret);
1787
1746
  };
1788
- imports.wbg.__wbindgen_cast_ac9494c52c8ec587 = function (arg0, arg1) {
1789
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8684, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8685, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1790
- const ret = makeMutClosure(arg0, arg1, 8684, __wbg_adapter_4);
1747
+ imports.wbg.__wbindgen_cast_c3053c956401fd5f = function (arg0, arg1) {
1748
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8676, function: Function { arguments: [], shim_idx: 1994, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1749
+ const ret = makeMutClosure(arg0, arg1, 8676, __wbg_adapter_18);
1750
+ return addHeapObject(ret);
1751
+ };
1752
+ imports.wbg.__wbindgen_cast_cd121cce33f0a432 = function (arg0, arg1) {
1753
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8681, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8682, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1754
+ const ret = makeMutClosure(arg0, arg1, 8681, __wbg_adapter_13);
1791
1755
  return addHeapObject(ret);
1792
1756
  };
1793
1757
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
@@ -1795,9 +1759,9 @@ function __wbg_get_imports() {
1795
1759
  const ret = arg0;
1796
1760
  return addHeapObject(ret);
1797
1761
  };
1798
- imports.wbg.__wbindgen_cast_dcd82812a61fba21 = function (arg0, arg1) {
1799
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8679, function: Function { arguments: [], shim_idx: 1995, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1800
- const ret = makeMutClosure(arg0, arg1, 8679, __wbg_adapter_12);
1762
+ imports.wbg.__wbindgen_cast_e16fdfdf70306fd4 = function (arg0, arg1) {
1763
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8660, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8661, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1764
+ const ret = makeClosure(arg0, arg1, 8660, __wbg_adapter_10);
1801
1765
  return addHeapObject(ret);
1802
1766
  };
1803
1767
  imports.wbg.__wbindgen_link_dd5153a359f2e504 = function (arg0) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/web",
3
- "version": "1.2.0-rc.14",
3
+ "version": "1.2.0-rc.15",
4
4
  "module": "esm/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "files": [