@utoo/web 0.0.1-alpha.11 → 0.0.1-alpha.13
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/utoo/index.js
CHANGED
|
@@ -200,15 +200,15 @@ function debugString(val) {
|
|
|
200
200
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
201
201
|
return className;
|
|
202
202
|
}
|
|
203
|
+
export function init_pack() {
|
|
204
|
+
wasm.init_pack();
|
|
205
|
+
}
|
|
203
206
|
function passArray8ToWasm0(arg, malloc) {
|
|
204
207
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
205
208
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
206
209
|
WASM_VECTOR_LEN = arg.length;
|
|
207
210
|
return ptr;
|
|
208
211
|
}
|
|
209
|
-
export function init_pack() {
|
|
210
|
-
wasm.init_pack();
|
|
211
|
-
}
|
|
212
212
|
/**
|
|
213
213
|
* Entry point for web workers
|
|
214
214
|
* @param {number} ptr
|
|
@@ -222,9 +222,6 @@ function __wbg_adapter_46(arg0, arg1) {
|
|
|
222
222
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
223
223
|
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
|
|
224
224
|
}
|
|
225
|
-
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
226
|
-
wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
|
|
227
|
-
}
|
|
228
225
|
let stack_pointer = 128;
|
|
229
226
|
function addBorrowedObject(obj) {
|
|
230
227
|
if (stack_pointer == 1)
|
|
@@ -232,19 +229,16 @@ function addBorrowedObject(obj) {
|
|
|
232
229
|
heap[--stack_pointer] = obj;
|
|
233
230
|
return stack_pointer;
|
|
234
231
|
}
|
|
235
|
-
function
|
|
232
|
+
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
236
233
|
try {
|
|
237
|
-
wasm.
|
|
234
|
+
wasm.__wbindgen_export_8(arg0, arg1, addBorrowedObject(arg2));
|
|
238
235
|
}
|
|
239
236
|
finally {
|
|
240
237
|
heap[stack_pointer++] = undefined;
|
|
241
238
|
}
|
|
242
239
|
}
|
|
243
|
-
function
|
|
244
|
-
wasm.
|
|
245
|
-
}
|
|
246
|
-
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
247
|
-
wasm.__wbindgen_export_11(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
240
|
+
function __wbg_adapter_107(arg0, arg1, arg2, arg3) {
|
|
241
|
+
wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
248
242
|
}
|
|
249
243
|
const __wbindgen_enum_DirEntryType = ["file", "directory"];
|
|
250
244
|
const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
|
|
@@ -800,7 +794,7 @@ function __wbg_get_imports() {
|
|
|
800
794
|
const a = state0.a;
|
|
801
795
|
state0.a = 0;
|
|
802
796
|
try {
|
|
803
|
-
return
|
|
797
|
+
return __wbg_adapter_107(a, state0.b, arg0, arg1);
|
|
804
798
|
}
|
|
805
799
|
finally {
|
|
806
800
|
state0.a = a;
|
|
@@ -1156,28 +1150,28 @@ function __wbg_get_imports() {
|
|
|
1156
1150
|
const ret = false;
|
|
1157
1151
|
return ret;
|
|
1158
1152
|
};
|
|
1159
|
-
imports.wbg.
|
|
1160
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1153
|
+
imports.wbg.__wbindgen_closure_wrapper163125 = function (arg0, arg1, arg2) {
|
|
1154
|
+
const ret = makeMutClosure(arg0, arg1, 9521, __wbg_adapter_49);
|
|
1161
1155
|
return addHeapObject(ret);
|
|
1162
1156
|
};
|
|
1163
|
-
imports.wbg.
|
|
1164
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1157
|
+
imports.wbg.__wbindgen_closure_wrapper163127 = function (arg0, arg1, arg2) {
|
|
1158
|
+
const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_49);
|
|
1165
1159
|
return addHeapObject(ret);
|
|
1166
1160
|
};
|
|
1167
|
-
imports.wbg.
|
|
1168
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1161
|
+
imports.wbg.__wbindgen_closure_wrapper168916 = function (arg0, arg1, arg2) {
|
|
1162
|
+
const ret = makeMutClosure(arg0, arg1, 9521, __wbg_adapter_49);
|
|
1169
1163
|
return addHeapObject(ret);
|
|
1170
1164
|
};
|
|
1171
|
-
imports.wbg.
|
|
1172
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1165
|
+
imports.wbg.__wbindgen_closure_wrapper168970 = function (arg0, arg1, arg2) {
|
|
1166
|
+
const ret = makeMutClosure(arg0, arg1, 9524, __wbg_adapter_56);
|
|
1173
1167
|
return addHeapObject(ret);
|
|
1174
1168
|
};
|
|
1175
|
-
imports.wbg.
|
|
1176
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1169
|
+
imports.wbg.__wbindgen_closure_wrapper168993 = function (arg0, arg1, arg2) {
|
|
1170
|
+
const ret = makeMutClosure(arg0, arg1, 9528, __wbg_adapter_46);
|
|
1177
1171
|
return addHeapObject(ret);
|
|
1178
1172
|
};
|
|
1179
|
-
imports.wbg.
|
|
1180
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1173
|
+
imports.wbg.__wbindgen_closure_wrapper30076 = function (arg0, arg1, arg2) {
|
|
1174
|
+
const ret = makeMutClosure(arg0, arg1, 1976, __wbg_adapter_46);
|
|
1181
1175
|
return addHeapObject(ret);
|
|
1182
1176
|
};
|
|
1183
1177
|
imports.wbg.__wbindgen_debug_string = function (arg0, arg1) {
|
|
@@ -1274,7 +1268,7 @@ function __wbg_get_imports() {
|
|
|
1274
1268
|
return imports;
|
|
1275
1269
|
}
|
|
1276
1270
|
function __wbg_init_memory(imports, memory) {
|
|
1277
|
-
imports.wbg.memory = memory || new WebAssembly.Memory({ initial:
|
|
1271
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 199, maximum: 16384, shared: true });
|
|
1278
1272
|
}
|
|
1279
1273
|
function __wbg_finalize_init(instance, module, thread_stack_size) {
|
|
1280
1274
|
wasm = instance.exports;
|
package/esm/utoo/index_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/web",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.13",
|
|
4
4
|
"module": "esm/index.js",
|
|
5
5
|
"types": "esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"build-wasm": "cargo build -p utoo-wasm --target wasm32-unknown-unknown -Z build-std=panic_abort,std",
|
|
12
12
|
"build-wasm:pm": "cargo build -p utoo-wasm --target wasm32-unknown-unknown --no-default-features -Z build-std=panic_abort,std",
|
|
13
13
|
"bindgen-dev": "wasm-bindgen ../../target/wasm32-unknown-unknown/wasm-dev/utoo_wasm.wasm --out-dir src/utoo --out-name index --target web --debug --keep-debug --no-demangle",
|
|
14
|
-
"bindgen-build": "wasm-bindgen ../../target/wasm32-unknown-unknown/
|
|
14
|
+
"bindgen-build": "wasm-bindgen ../../target/wasm32-unknown-unknown/release/utoo_wasm.wasm --out-dir src/utoo --out-name index --target web",
|
|
15
15
|
"tsx": "rm -rf esm && tsc -p ./tsconfig.json",
|
|
16
16
|
"dev": "npm run build-wasm -- --profile wasm-dev && npm run bindgen-dev && npm run tsx && cp src/utoo/index_bg.wasm esm/utoo",
|
|
17
17
|
"dev:pm": "npm run build-wasm:pm -- --profile wasm-dev && npm run bindgen-dev && npm run tsx && cp src/utoo/index_bg.wasm esm/utoo",
|
|
18
18
|
"wasm-opt": "wasm-opt src/utoo/index_bg.wasm -o esm/utoo/index_bg.wasm --enable-threads --enable-bulk-memory --enable-nontrapping-float-to-int -Oz",
|
|
19
|
-
"build": "npm run build-wasm -- --
|
|
19
|
+
"build": "npm run build-wasm -- --release && npm run bindgen-build && npm run tsx && npm run wasm-opt",
|
|
20
20
|
"prepublishOnly": "npm run build"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
File without changes
|
|
File without changes
|