@utoo/web 1.2.0-rc.13 → 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.
@@ -13,15 +13,15 @@ export function init_pack(): void;
13
13
  * @param {string} filter
14
14
  */
15
15
  export function initLogFilter(filter: string): void;
16
+ /**
17
+ * @param {number} worker_id
18
+ */
19
+ export function workerCreated(worker_id: number): void;
16
20
  /**
17
21
  * @param {Function} creator
18
22
  * @param {Function} terminator
19
23
  */
20
24
  export function registerWorkerScheduler(creator: Function, terminator: Function): void;
21
- /**
22
- * @param {number} worker_id
23
- */
24
- export function workerCreated(worker_id: number): void;
25
25
  /**
26
26
  * Entry point for web workers
27
27
  * @param {number} ptr
package/esm/utoo/index.js CHANGED
@@ -271,12 +271,11 @@ export function initLogFilter(filter) {
271
271
  const len0 = WASM_VECTOR_LEN;
272
272
  wasm.initLogFilter(ptr0, len0);
273
273
  }
274
- /**
275
- * @param {Function} creator
276
- * @param {Function} terminator
277
- */
278
- export function registerWorkerScheduler(creator, terminator) {
279
- wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
274
+ function passArray8ToWasm0(arg, malloc) {
275
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
276
+ getUint8ArrayMemory0().set(arg, ptr / 1);
277
+ WASM_VECTOR_LEN = arg.length;
278
+ return ptr;
280
279
  }
281
280
  /**
282
281
  * @param {number} worker_id
@@ -284,11 +283,12 @@ export function registerWorkerScheduler(creator, terminator) {
284
283
  export function workerCreated(worker_id) {
285
284
  wasm.workerCreated(worker_id);
286
285
  }
287
- function passArray8ToWasm0(arg, malloc) {
288
- const ptr = malloc(arg.length * 1, 1) >>> 0;
289
- getUint8ArrayMemory0().set(arg, ptr / 1);
290
- WASM_VECTOR_LEN = arg.length;
291
- return ptr;
286
+ /**
287
+ * @param {Function} creator
288
+ * @param {Function} terminator
289
+ */
290
+ export function registerWorkerScheduler(creator, terminator) {
291
+ wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
292
292
  }
293
293
  /**
294
294
  * Entry point for web workers
@@ -297,11 +297,8 @@ 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_4(arg0, arg1) {
301
- wasm.__wbindgen_export_6(arg0, arg1);
302
- }
303
- function __wbg_adapter_7(arg0, arg1, arg2) {
304
- wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
300
+ function __wbg_adapter_10(arg0, arg1, arg2) {
301
+ wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
305
302
  }
306
303
  let stack_pointer = 128;
307
304
  function addBorrowedObject(obj) {
@@ -310,18 +307,21 @@ function addBorrowedObject(obj) {
310
307
  heap[--stack_pointer] = obj;
311
308
  return stack_pointer;
312
309
  }
313
- function __wbg_adapter_12(arg0, arg1, arg2) {
310
+ function __wbg_adapter_13(arg0, arg1, arg2) {
314
311
  try {
315
- wasm.__wbindgen_export_8(arg0, arg1, addBorrowedObject(arg2));
312
+ wasm.__wbindgen_export_7(arg0, arg1, addBorrowedObject(arg2));
316
313
  }
317
314
  finally {
318
315
  heap[stack_pointer++] = undefined;
319
316
  }
320
317
  }
321
- function __wbg_adapter_27(arg0, arg1, arg2) {
318
+ function __wbg_adapter_18(arg0, arg1) {
319
+ wasm.__wbindgen_export_8(arg0, arg1);
320
+ }
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,14 +1700,14 @@ function __wbg_get_imports() {
1736
1700
  return ret;
1737
1701
  }, arguments);
1738
1702
  };
1739
- imports.wbg.__wbindgen_cast_0336f6e3114862a9 = function (arg0, arg1) {
1740
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8677, function: Function { arguments: [], shim_idx: 1993, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1741
- const ret = makeMutClosure(arg0, arg1, 8677, __wbg_adapter_4);
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);
1742
1706
  return addHeapObject(ret);
1743
1707
  };
1744
- imports.wbg.__wbindgen_cast_1fa25394258c7b5c = function (arg0, arg1) {
1745
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1992, function: Function { arguments: [], shim_idx: 1993, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1746
- const ret = makeMutClosure(arg0, arg1, 1992, __wbg_adapter_4);
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);
1747
1711
  return addHeapObject(ret);
1748
1712
  };
1749
1713
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
@@ -1751,21 +1715,11 @@ function __wbg_get_imports() {
1751
1715
  const ret = getStringFromWasm0(arg0, arg1);
1752
1716
  return addHeapObject(ret);
1753
1717
  };
1754
- imports.wbg.__wbindgen_cast_267b46f6d4f9531c = function (arg0, arg1) {
1755
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8677, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8678, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1756
- const ret = makeMutClosure(arg0, arg1, 8677, __wbg_adapter_7);
1757
- return addHeapObject(ret);
1758
- };
1759
1718
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1760
1719
  // Cast intrinsic for `U64 -> Externref`.
1761
1720
  const ret = BigInt.asUintN(64, arg0);
1762
1721
  return addHeapObject(ret);
1763
1722
  };
1764
- imports.wbg.__wbindgen_cast_71a8823e0cdbb969 = function (arg0, arg1) {
1765
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8677, function: Function { arguments: [Externref], shim_idx: 8678, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1766
- const ret = makeMutClosure(arg0, arg1, 8677, __wbg_adapter_7);
1767
- return addHeapObject(ret);
1768
- };
1769
1723
  imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
1770
1724
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1771
1725
  wasm.__wbindgen_export_4(arg0, arg1 * 4, 4);
@@ -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_b7dc63dcdfc8d728 = function (arg0, arg1) {
1789
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8682, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8683, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1790
- const ret = makeMutClosure(arg0, arg1, 8682, __wbg_adapter_12);
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_ffa04fbd359d627f = function (arg0, arg1) {
1799
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8661, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8662, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1800
- const ret = makeClosure(arg0, arg1, 8661, __wbg_adapter_27);
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.13",
3
+ "version": "1.2.0-rc.15",
4
4
  "module": "esm/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "files": [