@utoo/web 1.2.0-rc.10 → 1.2.0-rc.11
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.
|
@@ -24,7 +24,7 @@ declare class InternalEndpoint implements ProjectEndpoint {
|
|
|
24
24
|
rmdir(path: string, options?: {
|
|
25
25
|
recursive?: boolean;
|
|
26
26
|
}): Promise<void>;
|
|
27
|
-
gzip(files: PackFile[]): Promise<Uint8Array<
|
|
27
|
+
gzip(files: PackFile[]): Promise<Uint8Array<ArrayBuffer>>;
|
|
28
28
|
sigMd5(content: Uint8Array): Promise<string>;
|
|
29
29
|
}
|
|
30
30
|
declare const internalEndpoint: InternalEndpoint;
|
|
@@ -48,7 +48,8 @@ class InternalEndpoint {
|
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
ret = await ProjectInternal.read(path);
|
|
51
|
-
|
|
51
|
+
const copied = ret.slice(0);
|
|
52
|
+
return comlink.transfer(copied, [copied.buffer]);
|
|
52
53
|
}
|
|
53
54
|
return ret;
|
|
54
55
|
}
|
|
@@ -121,7 +122,8 @@ class InternalEndpoint {
|
|
|
121
122
|
async gzip(files) {
|
|
122
123
|
await this.wasmInit;
|
|
123
124
|
const ret = await ProjectInternal.gzip(files);
|
|
124
|
-
|
|
125
|
+
const copied = ret.slice(0);
|
|
126
|
+
return comlink.transfer(copied, [copied.buffer]);
|
|
125
127
|
}
|
|
126
128
|
async sigMd5(content) {
|
|
127
129
|
await this.wasmInit;
|
package/esm/utoo/index.js
CHANGED
|
@@ -297,11 +297,11 @@ 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
|
|
301
|
-
wasm.__wbindgen_export_6(arg0, arg1
|
|
300
|
+
function __wbg_adapter_8(arg0, arg1) {
|
|
301
|
+
wasm.__wbindgen_export_6(arg0, arg1);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
wasm.__wbindgen_export_7(arg0, arg1);
|
|
303
|
+
function __wbg_adapter_19(arg0, arg1, arg2) {
|
|
304
|
+
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
|
|
305
305
|
}
|
|
306
306
|
let stack_pointer = 128;
|
|
307
307
|
function addBorrowedObject(obj) {
|
|
@@ -310,7 +310,7 @@ function addBorrowedObject(obj) {
|
|
|
310
310
|
heap[--stack_pointer] = obj;
|
|
311
311
|
return stack_pointer;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function __wbg_adapter_24(arg0, arg1, arg2) {
|
|
314
314
|
try {
|
|
315
315
|
wasm.__wbindgen_export_8(arg0, arg1, addBorrowedObject(arg2));
|
|
316
316
|
}
|
|
@@ -1738,12 +1738,12 @@ function __wbg_get_imports() {
|
|
|
1738
1738
|
};
|
|
1739
1739
|
imports.wbg.__wbindgen_cast_0336f6e3114862a9 = function (arg0, arg1) {
|
|
1740
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,
|
|
1741
|
+
const ret = makeMutClosure(arg0, arg1, 8677, __wbg_adapter_8);
|
|
1742
1742
|
return addHeapObject(ret);
|
|
1743
1743
|
};
|
|
1744
1744
|
imports.wbg.__wbindgen_cast_1fa25394258c7b5c = function (arg0, arg1) {
|
|
1745
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,
|
|
1746
|
+
const ret = makeMutClosure(arg0, arg1, 1992, __wbg_adapter_8);
|
|
1747
1747
|
return addHeapObject(ret);
|
|
1748
1748
|
};
|
|
1749
1749
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
@@ -1753,7 +1753,7 @@ function __wbg_get_imports() {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
imports.wbg.__wbindgen_cast_267b46f6d4f9531c = function (arg0, arg1) {
|
|
1755
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,
|
|
1756
|
+
const ret = makeMutClosure(arg0, arg1, 8677, __wbg_adapter_19);
|
|
1757
1757
|
return addHeapObject(ret);
|
|
1758
1758
|
};
|
|
1759
1759
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
@@ -1763,7 +1763,7 @@ function __wbg_get_imports() {
|
|
|
1763
1763
|
};
|
|
1764
1764
|
imports.wbg.__wbindgen_cast_71a8823e0cdbb969 = function (arg0, arg1) {
|
|
1765
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,
|
|
1766
|
+
const ret = makeMutClosure(arg0, arg1, 8677, __wbg_adapter_19);
|
|
1767
1767
|
return addHeapObject(ret);
|
|
1768
1768
|
};
|
|
1769
1769
|
imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
|
|
@@ -1787,7 +1787,7 @@ function __wbg_get_imports() {
|
|
|
1787
1787
|
};
|
|
1788
1788
|
imports.wbg.__wbindgen_cast_b7dc63dcdfc8d728 = function (arg0, arg1) {
|
|
1789
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,
|
|
1790
|
+
const ret = makeMutClosure(arg0, arg1, 8682, __wbg_adapter_24);
|
|
1791
1791
|
return addHeapObject(ret);
|
|
1792
1792
|
};
|
|
1793
1793
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
package/esm/utoo/index_bg.wasm
CHANGED
|
Binary file
|