@utoo/web 1.2.6 → 1.2.7
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/loaderWorker.js +1 -1
- package/esm/project/InternalProject.js +1 -2
- package/esm/utoo/index.d.ts +2 -3
- package/esm/utoo/index.js +57 -71
- package/esm/utoo/index_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -26,9 +26,8 @@ class InternalEndpoint {
|
|
|
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
28
|
async install(packageLock, options) {
|
|
29
|
-
var _a;
|
|
30
29
|
await this.wasmInit;
|
|
31
|
-
await ProjectInternal.install(packageLock, options === null || options === void 0 ? void 0 : options.maxConcurrentDownloads
|
|
30
|
+
await ProjectInternal.install(packageLock, options === null || options === void 0 ? void 0 : options.maxConcurrentDownloads);
|
|
32
31
|
return;
|
|
33
32
|
}
|
|
34
33
|
async build() {
|
package/esm/utoo/index.d.ts
CHANGED
|
@@ -203,11 +203,10 @@ 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
|
|
207
|
-
* @param {string[]} omit
|
|
206
|
+
* @param {number | null} [max_concurrent_downloads]
|
|
208
207
|
* @returns {Promise<void>}
|
|
209
208
|
*/
|
|
210
|
-
static install(package_lock: string, max_concurrent_downloads
|
|
209
|
+
static install(package_lock: string, max_concurrent_downloads?: number | null): Promise<void>;
|
|
211
210
|
/**
|
|
212
211
|
* @param {string} path
|
|
213
212
|
*/
|
package/esm/utoo/index.js
CHANGED
|
@@ -192,15 +192,6 @@ 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
|
-
}
|
|
204
195
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
205
196
|
if (realloc === undefined) {
|
|
206
197
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -264,25 +255,25 @@ if (cachedTextEncoder) {
|
|
|
264
255
|
};
|
|
265
256
|
}
|
|
266
257
|
let WASM_VECTOR_LEN = 0;
|
|
267
|
-
function
|
|
268
|
-
wasm.__wasm_bindgen_func_elem_22473(arg0, arg1);
|
|
269
|
-
}
|
|
270
|
-
function __wasm_bindgen_func_elem_83121(arg0, arg1, arg2) {
|
|
271
|
-
wasm.__wasm_bindgen_func_elem_83121(arg0, arg1, addHeapObject(arg2));
|
|
272
|
-
}
|
|
273
|
-
function __wasm_bindgen_func_elem_83372(arg0, arg1, arg2) {
|
|
274
|
-
wasm.__wasm_bindgen_func_elem_83372(arg0, arg1, addHeapObject(arg2));
|
|
275
|
-
}
|
|
276
|
-
function __wasm_bindgen_func_elem_83427(arg0, arg1, arg2) {
|
|
258
|
+
function __wasm_bindgen_func_elem_83557(arg0, arg1, arg2) {
|
|
277
259
|
try {
|
|
278
|
-
wasm.
|
|
260
|
+
wasm.__wasm_bindgen_func_elem_83557(arg0, arg1, addBorrowedObject(arg2));
|
|
279
261
|
}
|
|
280
262
|
finally {
|
|
281
263
|
heap[stack_pointer++] = undefined;
|
|
282
264
|
}
|
|
283
265
|
}
|
|
284
|
-
function
|
|
285
|
-
wasm.
|
|
266
|
+
function __wasm_bindgen_func_elem_83502(arg0, arg1, arg2) {
|
|
267
|
+
wasm.__wasm_bindgen_func_elem_83502(arg0, arg1, addHeapObject(arg2));
|
|
268
|
+
}
|
|
269
|
+
function __wasm_bindgen_func_elem_83305(arg0, arg1, arg2) {
|
|
270
|
+
wasm.__wasm_bindgen_func_elem_83305(arg0, arg1, addHeapObject(arg2));
|
|
271
|
+
}
|
|
272
|
+
function __wasm_bindgen_func_elem_22659(arg0, arg1) {
|
|
273
|
+
wasm.__wasm_bindgen_func_elem_22659(arg0, arg1);
|
|
274
|
+
}
|
|
275
|
+
function __wasm_bindgen_func_elem_3429(arg0, arg1, arg2, arg3) {
|
|
276
|
+
wasm.__wasm_bindgen_func_elem_3429(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
286
277
|
}
|
|
287
278
|
const __wbindgen_enum_DirEntryType = ["file", "directory"];
|
|
288
279
|
const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
|
|
@@ -791,16 +782,13 @@ export class Project {
|
|
|
791
782
|
/**
|
|
792
783
|
* Install dependencies - downloads tgz files only, extracts on-demand when files are read
|
|
793
784
|
* @param {string} package_lock
|
|
794
|
-
* @param {number | null
|
|
795
|
-
* @param {string[]} omit
|
|
785
|
+
* @param {number | null} [max_concurrent_downloads]
|
|
796
786
|
* @returns {Promise<void>}
|
|
797
787
|
*/
|
|
798
|
-
static install(package_lock, max_concurrent_downloads
|
|
788
|
+
static install(package_lock, max_concurrent_downloads) {
|
|
799
789
|
const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
800
790
|
const len0 = WASM_VECTOR_LEN;
|
|
801
|
-
const
|
|
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);
|
|
791
|
+
const ret = wasm.project_install(ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0);
|
|
804
792
|
return takeObject(ret);
|
|
805
793
|
}
|
|
806
794
|
/**
|
|
@@ -1238,6 +1226,10 @@ function __wbg_get_imports(memory) {
|
|
|
1238
1226
|
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1239
1227
|
}, arguments);
|
|
1240
1228
|
};
|
|
1229
|
+
imports.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9 = function (arg0) {
|
|
1230
|
+
const ret = getObject(arg0).arrayBuffer();
|
|
1231
|
+
return addHeapObject(ret);
|
|
1232
|
+
};
|
|
1241
1233
|
imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function () {
|
|
1242
1234
|
return handleError(function (arg0) {
|
|
1243
1235
|
const ret = getObject(arg0).arrayBuffer();
|
|
@@ -1264,7 +1256,13 @@ function __wbg_get_imports(memory) {
|
|
|
1264
1256
|
return addHeapObject(ret);
|
|
1265
1257
|
}, arguments);
|
|
1266
1258
|
};
|
|
1267
|
-
imports.wbg.
|
|
1259
|
+
imports.wbg.__wbg_call_c8baa5c5e72d274e = function () {
|
|
1260
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1261
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1262
|
+
return addHeapObject(ret);
|
|
1263
|
+
}, arguments);
|
|
1264
|
+
};
|
|
1265
|
+
imports.wbg.__wbg_changedHandle_857ee3de52efb55d = function (arg0) {
|
|
1268
1266
|
const ret = getObject(arg0).changedHandle;
|
|
1269
1267
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1270
1268
|
};
|
|
@@ -1541,7 +1539,7 @@ function __wbg_get_imports(memory) {
|
|
|
1541
1539
|
const ret = new Map();
|
|
1542
1540
|
return addHeapObject(ret);
|
|
1543
1541
|
};
|
|
1544
|
-
imports.wbg.
|
|
1542
|
+
imports.wbg.__wbg_new_d0e1b5fdb5f4db8b = function (arg0) {
|
|
1545
1543
|
const ret = new FileSystemObserver(getObject(arg0));
|
|
1546
1544
|
return addHeapObject(ret);
|
|
1547
1545
|
};
|
|
@@ -1556,7 +1554,7 @@ function __wbg_get_imports(memory) {
|
|
|
1556
1554
|
const a = state0.a;
|
|
1557
1555
|
state0.a = 0;
|
|
1558
1556
|
try {
|
|
1559
|
-
return
|
|
1557
|
+
return __wasm_bindgen_func_elem_3429(a, state0.b, arg0, arg1);
|
|
1560
1558
|
}
|
|
1561
1559
|
finally {
|
|
1562
1560
|
state0.a = a;
|
|
@@ -1619,15 +1617,11 @@ function __wbg_get_imports(memory) {
|
|
|
1619
1617
|
const ret = getObject(arg0).now();
|
|
1620
1618
|
return ret;
|
|
1621
1619
|
};
|
|
1622
|
-
imports.wbg.__wbg_now_2c95c9de01293173 = function (arg0) {
|
|
1623
|
-
const ret = getObject(arg0).now();
|
|
1624
|
-
return ret;
|
|
1625
|
-
};
|
|
1626
1620
|
imports.wbg.__wbg_now_69d776cd24f5215b = function () {
|
|
1627
1621
|
const ret = Date.now();
|
|
1628
1622
|
return ret;
|
|
1629
1623
|
};
|
|
1630
|
-
imports.wbg.
|
|
1624
|
+
imports.wbg.__wbg_observe_f1be8f54c7884c74 = function (arg0, arg1, arg2) {
|
|
1631
1625
|
const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
|
|
1632
1626
|
return addHeapObject(ret);
|
|
1633
1627
|
};
|
|
@@ -1639,10 +1633,6 @@ function __wbg_get_imports(memory) {
|
|
|
1639
1633
|
const ret = getObject(arg0).performance;
|
|
1640
1634
|
return addHeapObject(ret);
|
|
1641
1635
|
};
|
|
1642
|
-
imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function (arg0) {
|
|
1643
|
-
const ret = getObject(arg0).performance;
|
|
1644
|
-
return addHeapObject(ret);
|
|
1645
|
-
};
|
|
1646
1636
|
imports.wbg.__wbg_postMessage_07504dbe15265d5c = function () {
|
|
1647
1637
|
return handleError(function (arg0, arg1) {
|
|
1648
1638
|
getObject(arg0).postMessage(getObject(arg1));
|
|
@@ -1671,7 +1661,7 @@ function __wbg_get_imports(memory) {
|
|
|
1671
1661
|
const ret = Math.random();
|
|
1672
1662
|
return ret;
|
|
1673
1663
|
};
|
|
1674
|
-
imports.wbg.
|
|
1664
|
+
imports.wbg.__wbg_relativePathComponents_cdef565cac5db69f = function (arg0) {
|
|
1675
1665
|
const ret = getObject(arg0).relativePathComponents;
|
|
1676
1666
|
return addHeapObject(ret);
|
|
1677
1667
|
};
|
|
@@ -1683,7 +1673,7 @@ function __wbg_get_imports(memory) {
|
|
|
1683
1673
|
const ret = Promise.resolve(getObject(arg0));
|
|
1684
1674
|
return addHeapObject(ret);
|
|
1685
1675
|
};
|
|
1686
|
-
imports.wbg.
|
|
1676
|
+
imports.wbg.__wbg_root_722ea46a4dfaf891 = function (arg0) {
|
|
1687
1677
|
const ret = getObject(arg0).root;
|
|
1688
1678
|
return addHeapObject(ret);
|
|
1689
1679
|
};
|
|
@@ -1737,10 +1727,10 @@ function __wbg_get_imports(memory) {
|
|
|
1737
1727
|
imports.wbg.__wbg_set_onmessage_deb94985de696ac7 = function (arg0, arg1) {
|
|
1738
1728
|
getObject(arg0).onmessage = getObject(arg1);
|
|
1739
1729
|
};
|
|
1740
|
-
imports.wbg.
|
|
1730
|
+
imports.wbg.__wbg_set_recursive_7437584ba1ac1fb1 = function (arg0, arg1) {
|
|
1741
1731
|
getObject(arg0).recursive = arg1 !== 0;
|
|
1742
1732
|
};
|
|
1743
|
-
imports.wbg.
|
|
1733
|
+
imports.wbg.__wbg_set_recursive_7ac0b14755335bfb = function (arg0, arg1) {
|
|
1744
1734
|
getObject(arg0).recursive = arg1 !== 0;
|
|
1745
1735
|
};
|
|
1746
1736
|
imports.wbg.__wbg_set_signal_e89be862d0091009 = function (arg0, arg1) {
|
|
@@ -1812,10 +1802,6 @@ function __wbg_get_imports(memory) {
|
|
|
1812
1802
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
1813
1803
|
return addHeapObject(ret);
|
|
1814
1804
|
};
|
|
1815
|
-
imports.wbg.__wbg_timeOrigin_9f29a08704a944d0 = function (arg0) {
|
|
1816
|
-
const ret = getObject(arg0).timeOrigin;
|
|
1817
|
-
return ret;
|
|
1818
|
-
};
|
|
1819
1805
|
imports.wbg.__wbg_toString_f07112df359c997f = function (arg0) {
|
|
1820
1806
|
const ret = getObject(arg0).toString();
|
|
1821
1807
|
return addHeapObject(ret);
|
|
@@ -1825,7 +1811,7 @@ function __wbg_get_imports(memory) {
|
|
|
1825
1811
|
getObject(arg0).truncate(arg1 >>> 0);
|
|
1826
1812
|
}, arguments);
|
|
1827
1813
|
};
|
|
1828
|
-
imports.wbg.
|
|
1814
|
+
imports.wbg.__wbg_type_47e8c2ef7c7eb249 = function (arg0) {
|
|
1829
1815
|
const ret = getObject(arg0).type;
|
|
1830
1816
|
return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
|
|
1831
1817
|
};
|
|
@@ -1870,9 +1856,14 @@ function __wbg_get_imports(memory) {
|
|
|
1870
1856
|
const ret = WebWorkerTermination.__wrap(arg0);
|
|
1871
1857
|
return addHeapObject(ret);
|
|
1872
1858
|
};
|
|
1873
|
-
imports.wbg.
|
|
1874
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1875
|
-
const ret =
|
|
1859
|
+
imports.wbg.__wbindgen_cast_07ca1b08f0f22a74 = function (arg0, arg1) {
|
|
1860
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7374, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7375, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1861
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83304, __wasm_bindgen_func_elem_83305);
|
|
1862
|
+
return addHeapObject(ret);
|
|
1863
|
+
};
|
|
1864
|
+
imports.wbg.__wbindgen_cast_16c7055768e85421 = function (arg0, arg1) {
|
|
1865
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1858, function: Function { arguments: [], shim_idx: 1859, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1866
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22657, __wasm_bindgen_func_elem_22659);
|
|
1876
1867
|
return addHeapObject(ret);
|
|
1877
1868
|
};
|
|
1878
1869
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
@@ -1885,19 +1876,9 @@ function __wbg_get_imports(memory) {
|
|
|
1885
1876
|
const ret = BigInt.asUintN(64, arg0);
|
|
1886
1877
|
return addHeapObject(ret);
|
|
1887
1878
|
};
|
|
1888
|
-
imports.wbg.
|
|
1889
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1890
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1891
|
-
return addHeapObject(ret);
|
|
1892
|
-
};
|
|
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_83120, __wasm_bindgen_func_elem_83372);
|
|
1879
|
+
imports.wbg.__wbindgen_cast_526f6cf5a04a75f0 = function (arg0, arg1) {
|
|
1880
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7398, function: Function { arguments: [], shim_idx: 1859, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1881
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83564, __wasm_bindgen_func_elem_22659);
|
|
1901
1882
|
return addHeapObject(ret);
|
|
1902
1883
|
};
|
|
1903
1884
|
imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
|
|
@@ -1907,19 +1888,24 @@ function __wbg_get_imports(memory) {
|
|
|
1907
1888
|
const ret = v0;
|
|
1908
1889
|
return addHeapObject(ret);
|
|
1909
1890
|
};
|
|
1891
|
+
imports.wbg.__wbindgen_cast_867fdad215adce91 = function (arg0, arg1) {
|
|
1892
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7395, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1893
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83556, __wasm_bindgen_func_elem_83557);
|
|
1894
|
+
return addHeapObject(ret);
|
|
1895
|
+
};
|
|
1910
1896
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
|
|
1911
1897
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1912
1898
|
const ret = arg0;
|
|
1913
1899
|
return addHeapObject(ret);
|
|
1914
1900
|
};
|
|
1915
|
-
imports.wbg.
|
|
1916
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1917
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1901
|
+
imports.wbg.__wbindgen_cast_b333f8337f70b5bc = function (arg0, arg1) {
|
|
1902
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7374, function: Function { arguments: [Externref], shim_idx: 7391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1903
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83304, __wasm_bindgen_func_elem_83502);
|
|
1918
1904
|
return addHeapObject(ret);
|
|
1919
1905
|
};
|
|
1920
|
-
imports.wbg.
|
|
1921
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1922
|
-
const ret =
|
|
1906
|
+
imports.wbg.__wbindgen_cast_c9653213b8a5441e = function (arg0, arg1) {
|
|
1907
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7374, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1908
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83304, __wasm_bindgen_func_elem_83502);
|
|
1923
1909
|
return addHeapObject(ret);
|
|
1924
1910
|
};
|
|
1925
1911
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
package/esm/utoo/index_bg.wasm
CHANGED
|
Binary file
|