@utoo/web 1.2.0-rc.7 → 1.2.0-rc.8

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 init_log_filter(filter: string): void;
16
- /**
17
- * @param {number} worker_id
18
- */
19
- export function workerCreated(worker_id: number): void;
20
16
  /**
21
17
  * @param {Function} creator
22
18
  * @param {Function} terminator
23
19
  */
24
20
  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,11 +271,12 @@ export function init_log_filter(filter) {
271
271
  const len0 = WASM_VECTOR_LEN;
272
272
  wasm.init_log_filter(ptr0, len0);
273
273
  }
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;
274
+ /**
275
+ * @param {Function} creator
276
+ * @param {Function} terminator
277
+ */
278
+ export function registerWorkerScheduler(creator, terminator) {
279
+ wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
279
280
  }
280
281
  /**
281
282
  * @param {number} worker_id
@@ -283,12 +284,11 @@ function passArray8ToWasm0(arg, malloc) {
283
284
  export function workerCreated(worker_id) {
284
285
  wasm.workerCreated(worker_id);
285
286
  }
286
- /**
287
- * @param {Function} creator
288
- * @param {Function} terminator
289
- */
290
- export function registerWorkerScheduler(creator, terminator) {
291
- wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
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;
292
292
  }
293
293
  /**
294
294
  * Entry point for web workers
@@ -297,13 +297,13 @@ 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_4(arg0, arg1, arg2) {
300
+ function __wbg_adapter_6(arg0, arg1, arg2) {
301
301
  wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
302
302
  }
303
303
  function __wbg_adapter_11(arg0, arg1) {
304
304
  wasm.__wbindgen_export_7(arg0, arg1);
305
305
  }
306
- function __wbg_adapter_18(arg0, arg1, arg2) {
306
+ function __wbg_adapter_16(arg0, arg1, arg2) {
307
307
  wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
308
308
  }
309
309
  let stack_pointer = 128;
@@ -313,7 +313,7 @@ function addBorrowedObject(obj) {
313
313
  heap[--stack_pointer] = obj;
314
314
  return stack_pointer;
315
315
  }
316
- function __wbg_adapter_23(arg0, arg1, arg2) {
316
+ function __wbg_adapter_25(arg0, arg1, arg2) {
317
317
  try {
318
318
  wasm.__wbindgen_export_9(arg0, arg1, addBorrowedObject(arg2));
319
319
  }
@@ -1046,7 +1046,7 @@ function __wbg_get_imports() {
1046
1046
  return addHeapObject(ret);
1047
1047
  }, arguments);
1048
1048
  };
1049
- imports.wbg.__wbg_changedHandle_9ac6171cf620f861 = function (arg0) {
1049
+ imports.wbg.__wbg_changedHandle_c9e2f89f142062e6 = function (arg0) {
1050
1050
  const ret = getObject(arg0).changedHandle;
1051
1051
  return addHeapObject(ret);
1052
1052
  };
@@ -1327,10 +1327,6 @@ function __wbg_get_imports() {
1327
1327
  const ret = new Map();
1328
1328
  return addHeapObject(ret);
1329
1329
  };
1330
- imports.wbg.__wbg_new_61e1f224687df92d = function (arg0) {
1331
- const ret = new FileSystemObserver(getObject(arg0));
1332
- return addHeapObject(ret);
1333
- };
1334
1330
  imports.wbg.__wbg_new_638ebfaedbf32a5e = function (arg0) {
1335
1331
  const ret = new Uint8Array(getObject(arg0));
1336
1332
  return addHeapObject(ret);
@@ -1351,6 +1347,10 @@ function __wbg_get_imports() {
1351
1347
  return addHeapObject(ret);
1352
1348
  }, arguments);
1353
1349
  };
1350
+ imports.wbg.__wbg_new_d2e51de36a0e4764 = function (arg0) {
1351
+ const ret = new FileSystemObserver(getObject(arg0));
1352
+ return addHeapObject(ret);
1353
+ };
1354
1354
  imports.wbg.__wbg_new_f6e53210afea8e45 = function () {
1355
1355
  return handleError(function () {
1356
1356
  const ret = new Headers();
@@ -1411,7 +1411,7 @@ function __wbg_get_imports() {
1411
1411
  const ret = Date.now();
1412
1412
  return ret;
1413
1413
  };
1414
- imports.wbg.__wbg_observe_4d40e63195da8748 = function (arg0, arg1, arg2) {
1414
+ imports.wbg.__wbg_observe_a0978eb3d8eeac7a = function (arg0, arg1, arg2) {
1415
1415
  const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1416
1416
  return addHeapObject(ret);
1417
1417
  };
@@ -1463,7 +1463,7 @@ function __wbg_get_imports() {
1463
1463
  return ret;
1464
1464
  }, arguments);
1465
1465
  };
1466
- imports.wbg.__wbg_relativePathComponents_e11d94d1d3b8277c = function (arg0) {
1466
+ imports.wbg.__wbg_relativePathComponents_e5d23d3c74d6be58 = function (arg0) {
1467
1467
  const ret = getObject(arg0).relativePathComponents;
1468
1468
  return addHeapObject(ret);
1469
1469
  };
@@ -1531,7 +1531,7 @@ function __wbg_get_imports() {
1531
1531
  imports.wbg.__wbg_setrecursive_072599988d5f7e8d = function (arg0, arg1) {
1532
1532
  getObject(arg0).recursive = arg1 !== 0;
1533
1533
  };
1534
- imports.wbg.__wbg_setrecursive_8266308232855fe7 = function (arg0, arg1) {
1534
+ imports.wbg.__wbg_setrecursive_3a1cc4daad3e7e08 = function (arg0, arg1) {
1535
1535
  getObject(arg0).recursive = arg1 !== 0;
1536
1536
  };
1537
1537
  imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function (arg0, arg1) {
@@ -1612,7 +1612,7 @@ function __wbg_get_imports() {
1612
1612
  getObject(arg0).truncate(arg1 >>> 0);
1613
1613
  }, arguments);
1614
1614
  };
1615
- imports.wbg.__wbg_type_53ab342163438035 = function (arg0) {
1615
+ imports.wbg.__wbg_type_71184712a0bdfe7d = function (arg0) {
1616
1616
  const ret = getObject(arg0).type;
1617
1617
  return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1618
1618
  };
@@ -1745,7 +1745,12 @@ function __wbg_get_imports() {
1745
1745
  };
1746
1746
  imports.wbg.__wbindgen_cast_0ca71f183bd17ba7 = function (arg0, arg1) {
1747
1747
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8631, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8632, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1748
- const ret = makeMutClosure(arg0, arg1, 8631, __wbg_adapter_23);
1748
+ const ret = makeMutClosure(arg0, arg1, 8631, __wbg_adapter_25);
1749
+ return addHeapObject(ret);
1750
+ };
1751
+ imports.wbg.__wbindgen_cast_13db378acd3080f2 = function (arg0, arg1) {
1752
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8626, function: Function { arguments: [], shim_idx: 615, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1753
+ const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_11);
1749
1754
  return addHeapObject(ret);
1750
1755
  };
1751
1756
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
@@ -1774,17 +1779,12 @@ function __wbg_get_imports() {
1774
1779
  };
1775
1780
  imports.wbg.__wbindgen_cast_7b3678bd8e0fb80b = function (arg0, arg1) {
1776
1781
  // 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`.
1777
- const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_4);
1782
+ const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_6);
1778
1783
  return addHeapObject(ret);
1779
1784
  };
1780
1785
  imports.wbg.__wbindgen_cast_884165a22f3e9702 = function (arg0, arg1) {
1781
1786
  // Cast intrinsic for `Closure(Closure { dtor_idx: 8626, function: Function { arguments: [Externref], shim_idx: 8627, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1782
- const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_4);
1783
- return addHeapObject(ret);
1784
- };
1785
- imports.wbg.__wbindgen_cast_8b2c5f11dff5b9ba = function (arg0, arg1) {
1786
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8626, function: Function { arguments: [], shim_idx: 599, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1787
- const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_11);
1787
+ const ret = makeMutClosure(arg0, arg1, 8626, __wbg_adapter_6);
1788
1788
  return addHeapObject(ret);
1789
1789
  };
1790
1790
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
@@ -1792,14 +1792,9 @@ function __wbg_get_imports() {
1792
1792
  const ret = arg0;
1793
1793
  return addHeapObject(ret);
1794
1794
  };
1795
- imports.wbg.__wbindgen_cast_9f714a98b1af7c37 = function (arg0, arg1) {
1796
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8610, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8611, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1797
- const ret = makeClosure(arg0, arg1, 8610, __wbg_adapter_18);
1798
- return addHeapObject(ret);
1799
- };
1800
- imports.wbg.__wbindgen_cast_a5ee8c63b746891b = function (arg0, arg1) {
1801
- // Cast intrinsic for `Closure(Closure { dtor_idx: 598, function: Function { arguments: [], shim_idx: 599, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1802
- const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_11);
1795
+ imports.wbg.__wbindgen_cast_9bbbede3cf028e02 = function (arg0, arg1) {
1796
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 614, function: Function { arguments: [], shim_idx: 615, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1797
+ const ret = makeMutClosure(arg0, arg1, 614, __wbg_adapter_11);
1803
1798
  return addHeapObject(ret);
1804
1799
  };
1805
1800
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
@@ -1807,6 +1802,11 @@ function __wbg_get_imports() {
1807
1802
  const ret = arg0;
1808
1803
  return addHeapObject(ret);
1809
1804
  };
1805
+ imports.wbg.__wbindgen_cast_dc9e1191bb955710 = function (arg0, arg1) {
1806
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8617, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8618, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1807
+ const ret = makeClosure(arg0, arg1, 8617, __wbg_adapter_16);
1808
+ return addHeapObject(ret);
1809
+ };
1810
1810
  imports.wbg.__wbindgen_link_dd5153a359f2e504 = function (arg0) {
1811
1811
  const val = `onmessage = function (ev) {
1812
1812
  let [ia, index, value] = ev.data;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/web",
3
- "version": "1.2.0-rc.7",
3
+ "version": "1.2.0-rc.8",
4
4
  "module": "esm/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "files": [