hermes-wasm 1.8.134 → 1.8.135
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 +12 -12
- package/hermes_wasm.js +38 -29
- package/hermes_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/hermes_wasm.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ export class IpfsIndex {
|
|
|
67
67
|
* Import cache
|
|
68
68
|
*/
|
|
69
69
|
import_cache(data: Uint8Array): void;
|
|
70
|
+
/**
|
|
71
|
+
* Load cache from IndexedDB
|
|
72
|
+
*/
|
|
73
|
+
load_cache_from_idb(): Promise<boolean>;
|
|
70
74
|
/**
|
|
71
75
|
* Load index using JavaScript fetch functions
|
|
72
76
|
*
|
|
@@ -74,10 +78,6 @@ export class IpfsIndex {
|
|
|
74
78
|
* @param size_fn - JS function: (path: string) => Promise<number>
|
|
75
79
|
*/
|
|
76
80
|
load(fetch_fn: Function, size_fn: Function): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Load cache from IndexedDB
|
|
79
|
-
*/
|
|
80
|
-
load_cache_from_idb(): Promise<boolean>;
|
|
81
81
|
/**
|
|
82
82
|
* Load index with IndexedDB cache pre-loaded
|
|
83
83
|
*
|
|
@@ -305,6 +305,12 @@ export class RemoteIndex {
|
|
|
305
305
|
* network requests for previously fetched data.
|
|
306
306
|
*/
|
|
307
307
|
import_cache(data: Uint8Array): void;
|
|
308
|
+
/**
|
|
309
|
+
* Load the slice cache from IndexedDB
|
|
310
|
+
*
|
|
311
|
+
* Call this after load() to restore cached data from a previous session.
|
|
312
|
+
*/
|
|
313
|
+
load_cache_from_idb(): Promise<boolean>;
|
|
308
314
|
/**
|
|
309
315
|
* Load index from URL using hermes-core Index with slice caching
|
|
310
316
|
*
|
|
@@ -312,12 +318,6 @@ export class RemoteIndex {
|
|
|
312
318
|
* to prefill the cache with hot data, reducing cold-start latency.
|
|
313
319
|
*/
|
|
314
320
|
load(): Promise<void>;
|
|
315
|
-
/**
|
|
316
|
-
* Load the slice cache from IndexedDB
|
|
317
|
-
*
|
|
318
|
-
* Call this after load() to restore cached data from a previous session.
|
|
319
|
-
*/
|
|
320
|
-
load_cache_from_idb(): Promise<boolean>;
|
|
321
321
|
/**
|
|
322
322
|
* Load index with IndexedDB cache pre-loaded
|
|
323
323
|
*
|
|
@@ -477,8 +477,8 @@ export interface InitOutput {
|
|
|
477
477
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
478
478
|
readonly wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___js_sys_59b4256fe4dcc1af___Function_fn_wasm_bindgen_7dc0dc7663c6ddce___JsValue_____wasm_bindgen_7dc0dc7663c6ddce___sys__Undefined___js_sys_59b4256fe4dcc1af___Function_fn_wasm_bindgen_7dc0dc7663c6ddce___JsValue_____wasm_bindgen_7dc0dc7663c6ddce___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
479
479
|
readonly wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___wasm_bindgen_7dc0dc7663c6ddce___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_7dc0dc7663c6ddce___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
480
|
-
readonly
|
|
481
|
-
readonly
|
|
480
|
+
readonly wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_: (a: number, b: number, c: any) => void;
|
|
481
|
+
readonly wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__71: (a: number, b: number, c: any) => void;
|
|
482
482
|
readonly wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
483
483
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
484
484
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/hermes_wasm.js
CHANGED
|
@@ -176,6 +176,14 @@ export class IpfsIndex {
|
|
|
176
176
|
throw takeFromExternrefTable0(ret[0]);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* Load cache from IndexedDB
|
|
181
|
+
* @returns {Promise<boolean>}
|
|
182
|
+
*/
|
|
183
|
+
load_cache_from_idb() {
|
|
184
|
+
const ret = wasm.ipfsindex_load_cache_from_idb(this.__wbg_ptr);
|
|
185
|
+
return ret;
|
|
186
|
+
}
|
|
179
187
|
/**
|
|
180
188
|
* Load index using JavaScript fetch functions
|
|
181
189
|
*
|
|
@@ -189,14 +197,6 @@ export class IpfsIndex {
|
|
|
189
197
|
const ret = wasm.ipfsindex_load(this.__wbg_ptr, fetch_fn, size_fn);
|
|
190
198
|
return ret;
|
|
191
199
|
}
|
|
192
|
-
/**
|
|
193
|
-
* Load cache from IndexedDB
|
|
194
|
-
* @returns {Promise<boolean>}
|
|
195
|
-
*/
|
|
196
|
-
load_cache_from_idb() {
|
|
197
|
-
const ret = wasm.ipfsindex_load_cache_from_idb(this.__wbg_ptr);
|
|
198
|
-
return ret;
|
|
199
|
-
}
|
|
200
200
|
/**
|
|
201
201
|
* Load index with IndexedDB cache pre-loaded
|
|
202
202
|
*
|
|
@@ -679,6 +679,16 @@ export class RemoteIndex {
|
|
|
679
679
|
throw takeFromExternrefTable0(ret[0]);
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* Load the slice cache from IndexedDB
|
|
684
|
+
*
|
|
685
|
+
* Call this after load() to restore cached data from a previous session.
|
|
686
|
+
* @returns {Promise<boolean>}
|
|
687
|
+
*/
|
|
688
|
+
load_cache_from_idb() {
|
|
689
|
+
const ret = wasm.remoteindex_load_cache_from_idb(this.__wbg_ptr);
|
|
690
|
+
return ret;
|
|
691
|
+
}
|
|
682
692
|
/**
|
|
683
693
|
* Load index from URL using hermes-core Index with slice caching
|
|
684
694
|
*
|
|
@@ -690,16 +700,6 @@ export class RemoteIndex {
|
|
|
690
700
|
const ret = wasm.remoteindex_load(this.__wbg_ptr);
|
|
691
701
|
return ret;
|
|
692
702
|
}
|
|
693
|
-
/**
|
|
694
|
-
* Load the slice cache from IndexedDB
|
|
695
|
-
*
|
|
696
|
-
* Call this after load() to restore cached data from a previous session.
|
|
697
|
-
* @returns {Promise<boolean>}
|
|
698
|
-
*/
|
|
699
|
-
load_cache_from_idb() {
|
|
700
|
-
const ret = wasm.remoteindex_load_cache_from_idb(this.__wbg_ptr);
|
|
701
|
-
return ret;
|
|
702
|
-
}
|
|
703
703
|
/**
|
|
704
704
|
* Load index with IndexedDB cache pre-loaded
|
|
705
705
|
*
|
|
@@ -968,7 +968,7 @@ function __wbg_get_imports() {
|
|
|
968
968
|
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
969
969
|
return ret;
|
|
970
970
|
}, arguments); },
|
|
971
|
-
|
|
971
|
+
__wbg_clearTimeout_1daad5c6ee4fcd3b: function(arg0) {
|
|
972
972
|
const ret = clearTimeout(arg0);
|
|
973
973
|
return ret;
|
|
974
974
|
},
|
|
@@ -1013,7 +1013,7 @@ function __wbg_get_imports() {
|
|
|
1013
1013
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1014
1014
|
}
|
|
1015
1015
|
},
|
|
1016
|
-
|
|
1016
|
+
__wbg_fetch_7a37768ab67c5bd8: function(arg0) {
|
|
1017
1017
|
const ret = fetch(arg0);
|
|
1018
1018
|
return ret;
|
|
1019
1019
|
},
|
|
@@ -1282,7 +1282,7 @@ function __wbg_get_imports() {
|
|
|
1282
1282
|
const ret = arg0.result;
|
|
1283
1283
|
return ret;
|
|
1284
1284
|
}, arguments); },
|
|
1285
|
-
|
|
1285
|
+
__wbg_setTimeout_b4a9096784635514: function(arg0, arg1) {
|
|
1286
1286
|
const ret = setTimeout(arg0, arg1);
|
|
1287
1287
|
return ret;
|
|
1288
1288
|
},
|
|
@@ -1326,6 +1326,12 @@ function __wbg_get_imports() {
|
|
|
1326
1326
|
__wbg_set_onupgradeneeded_49d6dd635034b91f: function(arg0, arg1) {
|
|
1327
1327
|
arg0.onupgradeneeded = arg1;
|
|
1328
1328
|
},
|
|
1329
|
+
__wbg_set_referrer_13cf56bbccbb2ceb: function(arg0, arg1, arg2) {
|
|
1330
|
+
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1331
|
+
},
|
|
1332
|
+
__wbg_set_referrer_policy_dac1caa6e937479a: function(arg0, arg1) {
|
|
1333
|
+
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1334
|
+
},
|
|
1329
1335
|
__wbg_set_signal_f4b32f40f19786f4: function(arg0, arg1) {
|
|
1330
1336
|
arg0.signal = arg1;
|
|
1331
1337
|
},
|
|
@@ -1395,22 +1401,22 @@ function __wbg_get_imports() {
|
|
|
1395
1401
|
console.warn(arg0);
|
|
1396
1402
|
},
|
|
1397
1403
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1398
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1404
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1970, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1399
1405
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___wasm_bindgen_7dc0dc7663c6ddce___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_7dc0dc7663c6ddce___JsError___true_);
|
|
1400
1406
|
return ret;
|
|
1401
1407
|
},
|
|
1402
1408
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1403
1409
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 523, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1404
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1410
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
1405
1411
|
return ret;
|
|
1406
1412
|
},
|
|
1407
1413
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1408
1414
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 523, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1409
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1415
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__71);
|
|
1410
1416
|
return ret;
|
|
1411
1417
|
},
|
|
1412
1418
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1413
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1419
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1102, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1414
1420
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true_);
|
|
1415
1421
|
return ret;
|
|
1416
1422
|
},
|
|
@@ -1454,12 +1460,12 @@ function wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true
|
|
|
1454
1460
|
wasm.wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1455
1461
|
}
|
|
1456
1462
|
|
|
1457
|
-
function
|
|
1458
|
-
wasm.
|
|
1463
|
+
function wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2) {
|
|
1464
|
+
wasm.wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2);
|
|
1459
1465
|
}
|
|
1460
1466
|
|
|
1461
|
-
function
|
|
1462
|
-
wasm.
|
|
1467
|
+
function wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__71(arg0, arg1, arg2) {
|
|
1468
|
+
wasm.wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__71(arg0, arg1, arg2);
|
|
1463
1469
|
}
|
|
1464
1470
|
|
|
1465
1471
|
function wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___wasm_bindgen_7dc0dc7663c6ddce___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_7dc0dc7663c6ddce___JsError___true_(arg0, arg1, arg2) {
|
|
@@ -1477,6 +1483,9 @@ function wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___js_sys_5
|
|
|
1477
1483
|
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
1478
1484
|
|
|
1479
1485
|
|
|
1486
|
+
const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
|
|
1487
|
+
|
|
1488
|
+
|
|
1480
1489
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
1481
1490
|
|
|
1482
1491
|
|
package/hermes_wasm_bg.wasm
CHANGED
|
Binary file
|