@utoo/web 1.2.5-rc.1 → 1.2.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.
@@ -1,9 +1,9 @@
1
- import { DepsOptions, PackFile, ProjectEndpoint, Stats } from "../types";
1
+ import { DepsOptions, InstallOptions, PackFile, ProjectEndpoint, Stats } from "../types";
2
2
  export declare class ForkedProject implements ProjectEndpoint {
3
3
  private endpoint;
4
4
  constructor(port: MessagePort);
5
5
  deps(options?: DepsOptions): Promise<string>;
6
- install(packageLock: string, maxConcurrentDownloads?: number): Promise<void>;
6
+ install(packageLock: string, options?: InstallOptions): Promise<void>;
7
7
  build(): Promise<import("..").BuildOutput>;
8
8
  readFile(path: string, encoding?: "utf8"): Promise<any>;
9
9
  writeFile(path: string, content: string | Uint8Array, encoding?: "utf8"): Promise<void>;
@@ -8,8 +8,8 @@ export class ForkedProject {
8
8
  async deps(options) {
9
9
  return await this.endpoint.deps(options);
10
10
  }
11
- async install(packageLock, maxConcurrentDownloads) {
12
- return await this.endpoint.install(packageLock, maxConcurrentDownloads);
11
+ async install(packageLock, options) {
12
+ return await this.endpoint.install(packageLock, options);
13
13
  }
14
14
  async build() {
15
15
  return await this.endpoint.build();
@@ -1,4 +1,4 @@
1
- import { DepsOptions, PackFile, ProjectEndpoint, ProjectOptions, Stats } from "../types";
1
+ import { DepsOptions, InstallOptions, PackFile, ProjectEndpoint, ProjectOptions, Stats } from "../types";
2
2
  import initWasm from "../utoo";
3
3
  declare class InternalEndpoint implements ProjectEndpoint {
4
4
  wasmInit?: ReturnType<typeof initWasm>;
@@ -6,7 +6,7 @@ declare class InternalEndpoint implements ProjectEndpoint {
6
6
  loaderWorkerPoolInitialized: boolean;
7
7
  mount(opt: Omit<ProjectOptions, "workerUrl" | "serviceWorker">): Promise<void>;
8
8
  deps(options?: DepsOptions): Promise<string>;
9
- install(packageLock: string, maxConcurrentDownloads?: number): Promise<void>;
9
+ install(packageLock: string, options?: InstallOptions): Promise<void>;
10
10
  build(): Promise<any>;
11
11
  readFile(path: string, encoding?: "utf8"): Promise<any>;
12
12
  writeFile(path: string, content: string | Uint8Array, _encoding?: "utf8"): Promise<void>;
@@ -25,9 +25,10 @@ class InternalEndpoint {
25
25
  await this.wasmInit;
26
26
  return await ProjectInternal.deps((_a = options === null || options === void 0 ? void 0 : options.registry) !== null && _a !== void 0 ? _a : undefined, (_b = options === null || options === void 0 ? void 0 : options.concurrency) !== null && _b !== void 0 ? _b : undefined);
27
27
  }
28
- async install(packageLock, maxConcurrentDownloads) {
28
+ async install(packageLock, options) {
29
+ var _a;
29
30
  await this.wasmInit;
30
- await ProjectInternal.install(packageLock, maxConcurrentDownloads);
31
+ await ProjectInternal.install(packageLock, options === null || options === void 0 ? void 0 : options.maxConcurrentDownloads, (_a = options === null || options === void 0 ? void 0 : options.omit) !== null && _a !== void 0 ? _a : []);
31
32
  return;
32
33
  }
33
34
  async build() {
@@ -1,4 +1,4 @@
1
- import { BuildOutput, DepsOptions, Dirent, PackFile, ProjectEndpoint, ProjectOptions, ServiceWorkerOptions, Stats } from "../types";
1
+ import { BuildOutput, DepsOptions, Dirent, InstallOptions, PackFile, ProjectEndpoint, ProjectOptions, ServiceWorkerOptions, Stats } from "../types";
2
2
  export declare class Project implements ProjectEndpoint {
3
3
  #private;
4
4
  private options;
@@ -10,7 +10,7 @@ export declare class Project implements ProjectEndpoint {
10
10
  installServiceWorker(): Promise<void>;
11
11
  mount(): Promise<void>;
12
12
  deps(options?: DepsOptions): Promise<string>;
13
- install(packageLock: string, maxConcurrentDownloads?: number): Promise<void>;
13
+ install(packageLock: string, options?: InstallOptions): Promise<void>;
14
14
  build(): Promise<BuildOutput>;
15
15
  readFile(path: string, encoding?: "utf8"): Promise<any>;
16
16
  writeFile(path: string, content: string | Uint8Array, encoding?: "utf8"): Promise<void>;
@@ -69,9 +69,9 @@ export class Project {
69
69
  await __classPrivateFieldGet(this, _Project_mount, "f");
70
70
  return await this.remote.deps(options);
71
71
  }
72
- async install(packageLock, maxConcurrentDownloads) {
72
+ async install(packageLock, options) {
73
73
  await __classPrivateFieldGet(this, _Project_mount, "f");
74
- return await this.remote.install(packageLock, maxConcurrentDownloads);
74
+ return await this.remote.install(packageLock, options);
75
75
  }
76
76
  async build() {
77
77
  await __classPrivateFieldGet(this, _Project_mount, "f");
package/esm/types.d.ts CHANGED
@@ -59,9 +59,15 @@ export interface DepsOptions {
59
59
  registry?: string | null;
60
60
  concurrency?: number | null;
61
61
  }
62
+ export type OmitType = "dev" | "optional";
63
+ export interface InstallOptions {
64
+ maxConcurrentDownloads?: number;
65
+ /** Dependency types to omit. Default: [] */
66
+ omit?: OmitType[];
67
+ }
62
68
  export interface ProjectEndpoint {
63
69
  deps: (options?: DepsOptions) => Promise<string>;
64
- install: (packageLock: string, maxConcurrentDownloads?: number) => Promise<void>;
70
+ install: (packageLock: string, options?: InstallOptions) => Promise<void>;
65
71
  build: () => Promise<BuildOutput>;
66
72
  readFile(path: string): Promise<Uint8Array>;
67
73
  readFile(path: string, encoding?: "utf8"): Promise<string>;
@@ -203,10 +203,11 @@ export class Project {
203
203
  /**
204
204
  * Install dependencies - downloads tgz files only, extracts on-demand when files are read
205
205
  * @param {string} package_lock
206
- * @param {number | null} [max_concurrent_downloads]
206
+ * @param {number | null | undefined} max_concurrent_downloads
207
+ * @param {string[]} omit
207
208
  * @returns {Promise<void>}
208
209
  */
209
- static install(package_lock: string, max_concurrent_downloads?: number | null): Promise<void>;
210
+ static install(package_lock: string, max_concurrent_downloads: number | null | undefined, omit: string[]): Promise<void>;
210
211
  /**
211
212
  * @param {string} path
212
213
  */
package/esm/utoo/index.js CHANGED
@@ -192,6 +192,15 @@ function makeMutClosure(arg0, arg1, dtor, f) {
192
192
  CLOSURE_DTORS.register(real, state, state);
193
193
  return real;
194
194
  }
195
+ function passArrayJsValueToWasm0(array, malloc) {
196
+ const ptr = malloc(array.length * 4, 4) >>> 0;
197
+ const mem = getDataViewMemory0();
198
+ for (let i = 0; i < array.length; i++) {
199
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
200
+ }
201
+ WASM_VECTOR_LEN = array.length;
202
+ return ptr;
203
+ }
195
204
  function passStringToWasm0(arg, malloc, realloc) {
196
205
  if (realloc === undefined) {
197
206
  const buf = cachedTextEncoder.encode(arg);
@@ -255,25 +264,25 @@ if (cachedTextEncoder) {
255
264
  };
256
265
  }
257
266
  let WASM_VECTOR_LEN = 0;
258
- function __wasm_bindgen_func_elem_22492(arg0, arg1) {
259
- wasm.__wasm_bindgen_func_elem_22492(arg0, arg1);
267
+ function __wasm_bindgen_func_elem_22473(arg0, arg1) {
268
+ wasm.__wasm_bindgen_func_elem_22473(arg0, arg1);
260
269
  }
261
- function __wasm_bindgen_func_elem_83515(arg0, arg1, arg2) {
270
+ function __wasm_bindgen_func_elem_83370(arg0, arg1, arg2) {
271
+ wasm.__wasm_bindgen_func_elem_83370(arg0, arg1, addHeapObject(arg2));
272
+ }
273
+ function __wasm_bindgen_func_elem_83425(arg0, arg1, arg2) {
262
274
  try {
263
- wasm.__wasm_bindgen_func_elem_83515(arg0, arg1, addBorrowedObject(arg2));
275
+ wasm.__wasm_bindgen_func_elem_83425(arg0, arg1, addBorrowedObject(arg2));
264
276
  }
265
277
  finally {
266
278
  heap[stack_pointer++] = undefined;
267
279
  }
268
280
  }
269
- function __wasm_bindgen_func_elem_83460(arg0, arg1, arg2) {
270
- wasm.__wasm_bindgen_func_elem_83460(arg0, arg1, addHeapObject(arg2));
271
- }
272
- function __wasm_bindgen_func_elem_83306(arg0, arg1, arg2) {
273
- wasm.__wasm_bindgen_func_elem_83306(arg0, arg1, addHeapObject(arg2));
281
+ function __wasm_bindgen_func_elem_83117(arg0, arg1, arg2) {
282
+ wasm.__wasm_bindgen_func_elem_83117(arg0, arg1, addHeapObject(arg2));
274
283
  }
275
- function __wasm_bindgen_func_elem_3407(arg0, arg1, arg2, arg3) {
276
- wasm.__wasm_bindgen_func_elem_3407(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
284
+ function __wasm_bindgen_func_elem_3381(arg0, arg1, arg2, arg3) {
285
+ wasm.__wasm_bindgen_func_elem_3381(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
277
286
  }
278
287
  const __wbindgen_enum_DirEntryType = ["file", "directory"];
279
288
  const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
@@ -782,13 +791,16 @@ export class Project {
782
791
  /**
783
792
  * Install dependencies - downloads tgz files only, extracts on-demand when files are read
784
793
  * @param {string} package_lock
785
- * @param {number | null} [max_concurrent_downloads]
794
+ * @param {number | null | undefined} max_concurrent_downloads
795
+ * @param {string[]} omit
786
796
  * @returns {Promise<void>}
787
797
  */
788
- static install(package_lock, max_concurrent_downloads) {
798
+ static install(package_lock, max_concurrent_downloads, omit) {
789
799
  const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export, wasm.__wbindgen_export2);
790
800
  const len0 = WASM_VECTOR_LEN;
791
- const ret = wasm.project_install(ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0);
801
+ const ptr1 = passArrayJsValueToWasm0(omit, wasm.__wbindgen_export);
802
+ const len1 = WASM_VECTOR_LEN;
803
+ const ret = wasm.project_install(ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0, ptr1, len1);
792
804
  return takeObject(ret);
793
805
  }
794
806
  /**
@@ -1252,7 +1264,7 @@ function __wbg_get_imports(memory) {
1252
1264
  return addHeapObject(ret);
1253
1265
  }, arguments);
1254
1266
  };
1255
- imports.wbg.__wbg_changedHandle_4d8c6b92249a3e27 = function (arg0) {
1267
+ imports.wbg.__wbg_changedHandle_0ce39601f5f9c30e = function (arg0) {
1256
1268
  const ret = getObject(arg0).changedHandle;
1257
1269
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1258
1270
  };
@@ -1263,6 +1275,10 @@ function __wbg_get_imports(memory) {
1263
1275
  imports.wbg.__wbg_close_e350fad820f0e4f1 = function (arg0) {
1264
1276
  getObject(arg0).close();
1265
1277
  };
1278
+ imports.wbg.__wbg_close_fc83f40c91a520a4 = function (arg0) {
1279
+ const ret = getObject(arg0).close();
1280
+ return addHeapObject(ret);
1281
+ };
1266
1282
  imports.wbg.__wbg_createObjectURL_7d9f7f8f41373850 = function () {
1267
1283
  return handleError(function (arg0, arg1) {
1268
1284
  const ret = URL.createObjectURL(getObject(arg1));
@@ -1272,6 +1288,10 @@ function __wbg_get_imports(memory) {
1272
1288
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1273
1289
  }, arguments);
1274
1290
  };
1291
+ imports.wbg.__wbg_createWritable_e8453bacaff844bc = function (arg0) {
1292
+ const ret = getObject(arg0).createWritable();
1293
+ return addHeapObject(ret);
1294
+ };
1275
1295
  imports.wbg.__wbg_createsyncaccesshandleoptions_new = function (arg0) {
1276
1296
  const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
1277
1297
  return addHeapObject(ret);
@@ -1351,17 +1371,15 @@ function __wbg_get_imports(memory) {
1351
1371
  const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1352
1372
  return addHeapObject(ret);
1353
1373
  };
1374
+ imports.wbg.__wbg_getFile_3d12eaf635641f3a = function (arg0) {
1375
+ const ret = getObject(arg0).getFile();
1376
+ return addHeapObject(ret);
1377
+ };
1354
1378
  imports.wbg.__wbg_getRandomValues_80578b2ff2a093ba = function () {
1355
1379
  return handleError(function (arg0) {
1356
1380
  globalThis.crypto.getRandomValues(getObject(arg0));
1357
1381
  }, arguments);
1358
1382
  };
1359
- imports.wbg.__wbg_getSize_1bf196c4094d8f7b = function () {
1360
- return handleError(function (arg0) {
1361
- const ret = getObject(arg0).getSize();
1362
- return ret;
1363
- }, arguments);
1364
- };
1365
1383
  imports.wbg.__wbg_get_6b7bd52aca3f9671 = function (arg0, arg1) {
1366
1384
  const ret = getObject(arg0)[arg1 >>> 0];
1367
1385
  return addHeapObject(ret);
@@ -1509,10 +1527,6 @@ function __wbg_get_imports(memory) {
1509
1527
  const ret = new Uint8Array(getObject(arg0));
1510
1528
  return addHeapObject(ret);
1511
1529
  };
1512
- imports.wbg.__wbg_new_8001e3307a01feca = function (arg0) {
1513
- const ret = new FileSystemObserver(getObject(arg0));
1514
- return addHeapObject(ret);
1515
- };
1516
1530
  imports.wbg.__wbg_new_881a222c65f168fc = function () {
1517
1531
  return handleError(function () {
1518
1532
  const ret = new AbortController();
@@ -1527,6 +1541,10 @@ function __wbg_get_imports(memory) {
1527
1541
  const ret = new Map();
1528
1542
  return addHeapObject(ret);
1529
1543
  };
1544
+ imports.wbg.__wbg_new_d6f88a54b6f7b7a4 = function (arg0) {
1545
+ const ret = new FileSystemObserver(getObject(arg0));
1546
+ return addHeapObject(ret);
1547
+ };
1530
1548
  imports.wbg.__wbg_new_de1e660b88fc921f = function (arg0) {
1531
1549
  const ret = new Int32Array(getObject(arg0));
1532
1550
  return addHeapObject(ret);
@@ -1538,7 +1556,7 @@ function __wbg_get_imports(memory) {
1538
1556
  const a = state0.a;
1539
1557
  state0.a = 0;
1540
1558
  try {
1541
- return __wasm_bindgen_func_elem_3407(a, state0.b, arg0, arg1);
1559
+ return __wasm_bindgen_func_elem_3381(a, state0.b, arg0, arg1);
1542
1560
  }
1543
1561
  finally {
1544
1562
  state0.a = a;
@@ -1609,7 +1627,7 @@ function __wbg_get_imports(memory) {
1609
1627
  const ret = Date.now();
1610
1628
  return ret;
1611
1629
  };
1612
- imports.wbg.__wbg_observe_e8235923767a3bbd = function (arg0, arg1, arg2) {
1630
+ imports.wbg.__wbg_observe_816bf97ae9b1a9ff = function (arg0, arg1, arg2) {
1613
1631
  const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1614
1632
  return addHeapObject(ret);
1615
1633
  };
@@ -1653,19 +1671,7 @@ function __wbg_get_imports(memory) {
1653
1671
  const ret = Math.random();
1654
1672
  return ret;
1655
1673
  };
1656
- imports.wbg.__wbg_read_0063be96fda4ddbb = function () {
1657
- return handleError(function (arg0, arg1, arg2, arg3) {
1658
- const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
1659
- return ret;
1660
- }, arguments);
1661
- };
1662
- imports.wbg.__wbg_read_f7fc3494244667a2 = function () {
1663
- return handleError(function (arg0, arg1, arg2) {
1664
- const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2));
1665
- return ret;
1666
- }, arguments);
1667
- };
1668
- imports.wbg.__wbg_relativePathComponents_bf57d17d1baeacbf = function (arg0) {
1674
+ imports.wbg.__wbg_relativePathComponents_e37247a2031eeec1 = function (arg0) {
1669
1675
  const ret = getObject(arg0).relativePathComponents;
1670
1676
  return addHeapObject(ret);
1671
1677
  };
@@ -1677,7 +1683,7 @@ function __wbg_get_imports(memory) {
1677
1683
  const ret = Promise.resolve(getObject(arg0));
1678
1684
  return addHeapObject(ret);
1679
1685
  };
1680
- imports.wbg.__wbg_root_ebd46cfbf4e9ba1a = function (arg0) {
1686
+ imports.wbg.__wbg_root_ff301faf8126f41e = function (arg0) {
1681
1687
  const ret = getObject(arg0).root;
1682
1688
  return addHeapObject(ret);
1683
1689
  };
@@ -1697,9 +1703,6 @@ function __wbg_get_imports(memory) {
1697
1703
  imports.wbg.__wbg_set_7df433eea03a5c14 = function (arg0, arg1, arg2) {
1698
1704
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1699
1705
  };
1700
- imports.wbg.__wbg_set_at_8ed309b95b9da8e8 = function (arg0, arg1) {
1701
- getObject(arg0).at = arg1;
1702
- };
1703
1706
  imports.wbg.__wbg_set_body_8e743242d6076a4f = function (arg0, arg1) {
1704
1707
  getObject(arg0).body = getObject(arg1);
1705
1708
  };
@@ -1734,10 +1737,10 @@ function __wbg_get_imports(memory) {
1734
1737
  imports.wbg.__wbg_set_onmessage_deb94985de696ac7 = function (arg0, arg1) {
1735
1738
  getObject(arg0).onmessage = getObject(arg1);
1736
1739
  };
1737
- imports.wbg.__wbg_set_recursive_38cb17f25aad7488 = function (arg0, arg1) {
1740
+ imports.wbg.__wbg_set_recursive_7ac0b14755335bfb = function (arg0, arg1) {
1738
1741
  getObject(arg0).recursive = arg1 !== 0;
1739
1742
  };
1740
- imports.wbg.__wbg_set_recursive_7ac0b14755335bfb = function (arg0, arg1) {
1743
+ imports.wbg.__wbg_set_recursive_80f40a5f9f0d08b6 = function (arg0, arg1) {
1741
1744
  getObject(arg0).recursive = arg1 !== 0;
1742
1745
  };
1743
1746
  imports.wbg.__wbg_set_signal_e89be862d0091009 = function (arg0, arg1) {
@@ -1822,7 +1825,7 @@ function __wbg_get_imports(memory) {
1822
1825
  getObject(arg0).truncate(arg1 >>> 0);
1823
1826
  }, arguments);
1824
1827
  };
1825
- imports.wbg.__wbg_type_d3d1c61e705de78a = function (arg0) {
1828
+ imports.wbg.__wbg_type_248a74d60fcb6433 = function (arg0) {
1826
1829
  const ret = getObject(arg0).type;
1827
1830
  return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1828
1831
  };
@@ -1867,41 +1870,34 @@ function __wbg_get_imports(memory) {
1867
1870
  const ret = WebWorkerTermination.__wrap(arg0);
1868
1871
  return addHeapObject(ret);
1869
1872
  };
1870
- imports.wbg.__wbg_write_168f9ac956b6841e = function () {
1871
- return handleError(function (arg0, arg1, arg2) {
1872
- const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2));
1873
- return ret;
1874
- }, arguments);
1875
- };
1876
- imports.wbg.__wbg_write_f87f327ea3e1dd4b = function () {
1877
- return handleError(function (arg0, arg1, arg2, arg3) {
1878
- const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
1879
- return ret;
1880
- }, arguments);
1873
+ imports.wbg.__wbindgen_cast_1b8e0aaf75797659 = function (arg0, arg1) {
1874
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7384, function: Function { arguments: [], shim_idx: 1847, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1875
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83432, __wasm_bindgen_func_elem_22473);
1876
+ return addHeapObject(ret);
1881
1877
  };
1882
1878
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
1883
1879
  // Cast intrinsic for `Ref(String) -> Externref`.
1884
1880
  const ret = getStringFromWasm0(arg0, arg1);
1885
1881
  return addHeapObject(ret);
1886
1882
  };
1887
- imports.wbg.__wbindgen_cast_24151994ab599825 = function (arg0, arg1) {
1888
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7400, function: Function { arguments: [], shim_idx: 1844, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1889
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83522, __wasm_bindgen_func_elem_22492);
1890
- return addHeapObject(ret);
1891
- };
1892
1883
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1893
1884
  // Cast intrinsic for `U64 -> Externref`.
1894
1885
  const ret = BigInt.asUintN(64, arg0);
1895
1886
  return addHeapObject(ret);
1896
1887
  };
1897
- imports.wbg.__wbindgen_cast_4a2df782abbae365 = function (arg0, arg1) {
1898
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7367, function: Function { arguments: [Externref], shim_idx: 7393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1899
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83305, __wasm_bindgen_func_elem_83460);
1888
+ imports.wbg.__wbindgen_cast_528f16a631193d95 = function (arg0, arg1) {
1889
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7381, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7382, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1890
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83424, __wasm_bindgen_func_elem_83425);
1900
1891
  return addHeapObject(ret);
1901
1892
  };
1902
- imports.wbg.__wbindgen_cast_6141575974feb411 = function (arg0, arg1) {
1903
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7367, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1904
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83305, __wasm_bindgen_func_elem_83460);
1893
+ imports.wbg.__wbindgen_cast_650a3c971946a2fe = function (arg0, arg1) {
1894
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1846, function: Function { arguments: [], shim_idx: 1847, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1895
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22471, __wasm_bindgen_func_elem_22473);
1896
+ return addHeapObject(ret);
1897
+ };
1898
+ imports.wbg.__wbindgen_cast_652fa2a9e6efce74 = function (arg0, arg1) {
1899
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7360, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7377, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1900
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83116, __wasm_bindgen_func_elem_83370);
1905
1901
  return addHeapObject(ret);
1906
1902
  };
1907
1903
  imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
@@ -1916,24 +1912,19 @@ function __wbg_get_imports(memory) {
1916
1912
  const ret = arg0;
1917
1913
  return addHeapObject(ret);
1918
1914
  };
1919
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1920
- // Cast intrinsic for `F64 -> Externref`.
1921
- const ret = arg0;
1922
- return addHeapObject(ret);
1923
- };
1924
- imports.wbg.__wbindgen_cast_e0f26635a91a834f = function (arg0, arg1) {
1925
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7367, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7368, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1926
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83305, __wasm_bindgen_func_elem_83306);
1915
+ imports.wbg.__wbindgen_cast_cccd96d16911d371 = function (arg0, arg1) {
1916
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7360, function: Function { arguments: [Externref], shim_idx: 7377, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1917
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83116, __wasm_bindgen_func_elem_83370);
1927
1918
  return addHeapObject(ret);
1928
1919
  };
1929
- imports.wbg.__wbindgen_cast_f6b84b3b4941c320 = function (arg0, arg1) {
1930
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7397, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7398, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1931
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83514, __wasm_bindgen_func_elem_83515);
1920
+ imports.wbg.__wbindgen_cast_d3216154c60fbbf7 = function (arg0, arg1) {
1921
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7360, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7361, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1922
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83116, __wasm_bindgen_func_elem_83117);
1932
1923
  return addHeapObject(ret);
1933
1924
  };
1934
- imports.wbg.__wbindgen_cast_ff41f3fc65a5b1b5 = function (arg0, arg1) {
1935
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1843, function: Function { arguments: [], shim_idx: 1844, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1936
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22490, __wasm_bindgen_func_elem_22492);
1925
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1926
+ // Cast intrinsic for `F64 -> Externref`.
1927
+ const ret = arg0;
1937
1928
  return addHeapObject(ret);
1938
1929
  };
1939
1930
  imports.wbg.__wbindgen_link_203404ece0e9bab9 = function (arg0) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/web",
3
- "version": "1.2.5-rc.1",
3
+ "version": "1.2.5",
4
4
  "module": "esm/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "files": [