hermes-wasm 1.0.3 → 1.2.1
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/hermes_wasm.d.ts +15 -15
- package/hermes_wasm.js +30 -35
- package/hermes_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/hermes_wasm.d.ts
CHANGED
|
@@ -266,6 +266,14 @@ export interface InitOutput {
|
|
|
266
266
|
readonly ipfsindex_search: (a: number, b: number, c: number, d: number) => any;
|
|
267
267
|
readonly ipfsindex_search_offset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
268
268
|
readonly ipfsindex_with_cache_size: (a: number, b: number, c: number) => number;
|
|
269
|
+
readonly __wbg_indexregistry_free: (a: number, b: number) => void;
|
|
270
|
+
readonly indexregistry_add_remote: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
271
|
+
readonly indexregistry_list: (a: number) => any;
|
|
272
|
+
readonly indexregistry_new: () => number;
|
|
273
|
+
readonly indexregistry_remove: (a: number, b: number, c: number) => void;
|
|
274
|
+
readonly indexregistry_search: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
275
|
+
readonly init: () => void;
|
|
276
|
+
readonly setup_logging: () => void;
|
|
269
277
|
readonly __wbg_remoteindex_free: (a: number, b: number) => void;
|
|
270
278
|
readonly remoteindex_cache_stats: (a: number) => any;
|
|
271
279
|
readonly remoteindex_clear_idb_cache: (a: number) => any;
|
|
@@ -286,14 +294,6 @@ export interface InitOutput {
|
|
|
286
294
|
readonly remoteindex_search: (a: number, b: number, c: number, d: number) => any;
|
|
287
295
|
readonly remoteindex_search_offset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
288
296
|
readonly remoteindex_with_cache_size: (a: number, b: number, c: number) => number;
|
|
289
|
-
readonly __wbg_indexregistry_free: (a: number, b: number) => void;
|
|
290
|
-
readonly indexregistry_add_remote: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
291
|
-
readonly indexregistry_list: (a: number) => any;
|
|
292
|
-
readonly indexregistry_new: () => number;
|
|
293
|
-
readonly indexregistry_remove: (a: number, b: number, c: number) => void;
|
|
294
|
-
readonly indexregistry_search: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
295
|
-
readonly init: () => void;
|
|
296
|
-
readonly setup_logging: () => void;
|
|
297
297
|
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
298
298
|
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
299
299
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -302,13 +302,13 @@ export interface InitOutput {
|
|
|
302
302
|
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
303
303
|
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
304
304
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
readonly
|
|
311
|
-
readonly
|
|
305
|
+
readonly wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut__web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent____Output_______: (a: number, b: number) => void;
|
|
306
|
+
readonly wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
307
|
+
readonly wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut__wasm_bindgen_9620576bde3df5d6___JsValue____Output_______: (a: number, b: number) => void;
|
|
308
|
+
readonly wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue__wasm_bindgen_9620576bde3df5d6___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
309
|
+
readonly wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent_____: (a: number, b: number, c: any) => void;
|
|
310
|
+
readonly wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue_____: (a: number, b: number, c: any) => void;
|
|
311
|
+
readonly wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
312
312
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
313
313
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
314
314
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/hermes_wasm.js
CHANGED
|
@@ -562,11 +562,6 @@ function __wbg_get_imports() {
|
|
|
562
562
|
const ret = arg0 === null;
|
|
563
563
|
return ret;
|
|
564
564
|
},
|
|
565
|
-
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
|
|
566
|
-
const val = arg0;
|
|
567
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
568
|
-
return ret;
|
|
569
|
-
},
|
|
570
565
|
__wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
|
|
571
566
|
const ret = typeof(arg0) === 'string';
|
|
572
567
|
return ret;
|
|
@@ -620,7 +615,7 @@ function __wbg_get_imports() {
|
|
|
620
615
|
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
621
616
|
return ret;
|
|
622
617
|
}, arguments); },
|
|
623
|
-
|
|
618
|
+
__wbg_clearTimeout_3b5c565a5ec539dd: function(arg0) {
|
|
624
619
|
const ret = clearTimeout(arg0);
|
|
625
620
|
return ret;
|
|
626
621
|
},
|
|
@@ -643,6 +638,10 @@ function __wbg_get_imports() {
|
|
|
643
638
|
const ret = arg0.done;
|
|
644
639
|
return ret;
|
|
645
640
|
},
|
|
641
|
+
__wbg_entries_04679661ea6e74fc: function(arg0) {
|
|
642
|
+
const ret = arg0.entries();
|
|
643
|
+
return ret;
|
|
644
|
+
},
|
|
646
645
|
__wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
|
|
647
646
|
let deferred0_0;
|
|
648
647
|
let deferred0_1;
|
|
@@ -657,7 +656,7 @@ function __wbg_get_imports() {
|
|
|
657
656
|
__wbg_error_9a7fe3f932034cde: function(arg0) {
|
|
658
657
|
console.error(arg0);
|
|
659
658
|
},
|
|
660
|
-
|
|
659
|
+
__wbg_fetch_16dcf1cfbbc66b3c: function(arg0) {
|
|
661
660
|
const ret = fetch(arg0);
|
|
662
661
|
return ret;
|
|
663
662
|
},
|
|
@@ -673,6 +672,10 @@ function __wbg_get_imports() {
|
|
|
673
672
|
const ret = arg0.get(arg1);
|
|
674
673
|
return ret;
|
|
675
674
|
}, arguments); },
|
|
675
|
+
__wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
|
|
676
|
+
const ret = arg0[arg1 >>> 0];
|
|
677
|
+
return ret;
|
|
678
|
+
},
|
|
676
679
|
__wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
|
|
677
680
|
const ret = Reflect.get(arg0, arg1);
|
|
678
681
|
return ret;
|
|
@@ -752,8 +755,8 @@ function __wbg_get_imports() {
|
|
|
752
755
|
const ret = result;
|
|
753
756
|
return ret;
|
|
754
757
|
},
|
|
755
|
-
|
|
756
|
-
const ret =
|
|
758
|
+
__wbg_isArray_d314bb98fcf08331: function(arg0) {
|
|
759
|
+
const ret = Array.isArray(arg0);
|
|
757
760
|
return ret;
|
|
758
761
|
},
|
|
759
762
|
__wbg_length_32ed9a279acd054c: function(arg0) {
|
|
@@ -786,7 +789,7 @@ function __wbg_get_imports() {
|
|
|
786
789
|
const a = state0.a;
|
|
787
790
|
state0.a = 0;
|
|
788
791
|
try {
|
|
789
|
-
return
|
|
792
|
+
return wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue__wasm_bindgen_9620576bde3df5d6___JsValue_____(a, state0.b, arg0, arg1);
|
|
790
793
|
} finally {
|
|
791
794
|
state0.a = a;
|
|
792
795
|
}
|
|
@@ -825,10 +828,6 @@ function __wbg_get_imports() {
|
|
|
825
828
|
const ret = arg0.next();
|
|
826
829
|
return ret;
|
|
827
830
|
}, arguments); },
|
|
828
|
-
__wbg_next_418f80d8f5303233: function(arg0) {
|
|
829
|
-
const ret = arg0.next;
|
|
830
|
-
return ret;
|
|
831
|
-
},
|
|
832
831
|
__wbg_now_ebffdf7e580f210d: function(arg0) {
|
|
833
832
|
const ret = arg0.now();
|
|
834
833
|
return ret;
|
|
@@ -871,7 +870,7 @@ function __wbg_get_imports() {
|
|
|
871
870
|
const ret = arg0.result;
|
|
872
871
|
return ret;
|
|
873
872
|
}, arguments); },
|
|
874
|
-
|
|
873
|
+
__wbg_setTimeout_cb2a856ba8315e7a: function(arg0, arg1) {
|
|
875
874
|
const ret = setTimeout(arg0, arg1);
|
|
876
875
|
return ret;
|
|
877
876
|
},
|
|
@@ -949,10 +948,6 @@ function __wbg_get_imports() {
|
|
|
949
948
|
const ret = arg0.status;
|
|
950
949
|
return ret;
|
|
951
950
|
},
|
|
952
|
-
__wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
|
|
953
|
-
const ret = JSON.stringify(arg0);
|
|
954
|
-
return ret;
|
|
955
|
-
}, arguments); },
|
|
956
951
|
__wbg_target_521be630ab05b11e: function(arg0) {
|
|
957
952
|
const ret = arg0.target;
|
|
958
953
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -988,23 +983,23 @@ function __wbg_get_imports() {
|
|
|
988
983
|
console.warn(arg0);
|
|
989
984
|
},
|
|
990
985
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
991
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
992
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
986
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 197, function: Function { arguments: [NamedExternref("Event")], shim_idx: 198, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
987
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut__web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent____Output_______, wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent_____);
|
|
993
988
|
return ret;
|
|
994
989
|
},
|
|
995
990
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
996
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
997
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
991
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 197, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 198, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
992
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut__web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent____Output_______, wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent_____);
|
|
998
993
|
return ret;
|
|
999
994
|
},
|
|
1000
995
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1001
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1002
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
996
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 416, function: Function { arguments: [], shim_idx: 417, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
997
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut_____Output_______, wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke______);
|
|
1003
998
|
return ret;
|
|
1004
999
|
},
|
|
1005
1000
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1006
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1007
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1001
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 453, function: Function { arguments: [Externref], shim_idx: 454, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1002
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_9620576bde3df5d6___closure__destroy___dyn_core_a637aa3d115f5170___ops__function__FnMut__wasm_bindgen_9620576bde3df5d6___JsValue____Output_______, wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue_____);
|
|
1008
1003
|
return ret;
|
|
1009
1004
|
},
|
|
1010
1005
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -1043,20 +1038,20 @@ function __wbg_get_imports() {
|
|
|
1043
1038
|
};
|
|
1044
1039
|
}
|
|
1045
1040
|
|
|
1046
|
-
function
|
|
1047
|
-
wasm.
|
|
1041
|
+
function wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke______(arg0, arg1) {
|
|
1042
|
+
wasm.wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke______(arg0, arg1);
|
|
1048
1043
|
}
|
|
1049
1044
|
|
|
1050
|
-
function
|
|
1051
|
-
wasm.
|
|
1045
|
+
function wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent_____(arg0, arg1, arg2) {
|
|
1046
|
+
wasm.wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___web_sys_4f108ac1dfcf3659___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent_____(arg0, arg1, arg2);
|
|
1052
1047
|
}
|
|
1053
1048
|
|
|
1054
|
-
function
|
|
1055
|
-
wasm.
|
|
1049
|
+
function wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue_____(arg0, arg1, arg2) {
|
|
1050
|
+
wasm.wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue_____(arg0, arg1, arg2);
|
|
1056
1051
|
}
|
|
1057
1052
|
|
|
1058
|
-
function
|
|
1059
|
-
wasm.
|
|
1053
|
+
function wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue__wasm_bindgen_9620576bde3df5d6___JsValue_____(arg0, arg1, arg2, arg3) {
|
|
1054
|
+
wasm.wasm_bindgen_9620576bde3df5d6___convert__closures_____invoke___wasm_bindgen_9620576bde3df5d6___JsValue__wasm_bindgen_9620576bde3df5d6___JsValue_____(arg0, arg1, arg2, arg3);
|
|
1060
1055
|
}
|
|
1061
1056
|
|
|
1062
1057
|
|
package/hermes_wasm_bg.wasm
CHANGED
|
Binary file
|