hermes-wasm 1.8.139 → 1.8.142
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 +10 -10
- package/hermes_wasm.js +22 -22
- package/hermes_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/hermes_wasm.d.ts
CHANGED
|
@@ -67,10 +67,6 @@ 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>;
|
|
74
70
|
/**
|
|
75
71
|
* Load index using JavaScript fetch functions
|
|
76
72
|
*
|
|
@@ -78,6 +74,10 @@ export class IpfsIndex {
|
|
|
78
74
|
* @param size_fn - JS function: (path: string) => Promise<number>
|
|
79
75
|
*/
|
|
80
76
|
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,12 +305,6 @@ 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>;
|
|
314
308
|
/**
|
|
315
309
|
* Load index from URL using hermes-core Index with slice caching
|
|
316
310
|
*
|
|
@@ -318,6 +312,12 @@ export class RemoteIndex {
|
|
|
318
312
|
* to prefill the cache with hot data, reducing cold-start latency.
|
|
319
313
|
*/
|
|
320
314
|
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
|
*
|
package/hermes_wasm.js
CHANGED
|
@@ -176,14 +176,6 @@ 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
|
-
}
|
|
187
179
|
/**
|
|
188
180
|
* Load index using JavaScript fetch functions
|
|
189
181
|
*
|
|
@@ -197,6 +189,14 @@ export class IpfsIndex {
|
|
|
197
189
|
const ret = wasm.ipfsindex_load(this.__wbg_ptr, fetch_fn, size_fn);
|
|
198
190
|
return ret;
|
|
199
191
|
}
|
|
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,16 +679,6 @@ 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
|
-
}
|
|
692
682
|
/**
|
|
693
683
|
* Load index from URL using hermes-core Index with slice caching
|
|
694
684
|
*
|
|
@@ -700,6 +690,16 @@ export class RemoteIndex {
|
|
|
700
690
|
const ret = wasm.remoteindex_load(this.__wbg_ptr);
|
|
701
691
|
return ret;
|
|
702
692
|
}
|
|
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
|
*
|
|
@@ -1401,22 +1401,22 @@ function __wbg_get_imports() {
|
|
|
1401
1401
|
console.warn(arg0);
|
|
1402
1402
|
},
|
|
1403
1403
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1404
|
-
// 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: 1985, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1405
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_);
|
|
1406
1406
|
return ret;
|
|
1407
1407
|
},
|
|
1408
1408
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1409
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1409
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 404, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1410
1410
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
1411
1411
|
return ret;
|
|
1412
1412
|
},
|
|
1413
1413
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1414
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1414
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 404, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1415
1415
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___web_sys_460f5e7203ed5507___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__71);
|
|
1416
1416
|
return ret;
|
|
1417
1417
|
},
|
|
1418
1418
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1419
|
-
// 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: 1117, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1420
1420
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true_);
|
|
1421
1421
|
return ret;
|
|
1422
1422
|
},
|
package/hermes_wasm_bg.wasm
CHANGED
|
Binary file
|