hermes-wasm 1.8.128 → 1.8.129

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 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
  *
@@ -284,6 +284,12 @@ export class RemoteIndex {
284
284
  * network requests for previously fetched data.
285
285
  */
286
286
  import_cache(data: Uint8Array): void;
287
+ /**
288
+ * Load the slice cache from IndexedDB
289
+ *
290
+ * Call this after load() to restore cached data from a previous session.
291
+ */
292
+ load_cache_from_idb(): Promise<boolean>;
287
293
  /**
288
294
  * Load index from URL using hermes-core Index with slice caching
289
295
  *
@@ -291,12 +297,6 @@ export class RemoteIndex {
291
297
  * to prefill the cache with hot data, reducing cold-start latency.
292
298
  */
293
299
  load(): Promise<void>;
294
- /**
295
- * Load the slice cache from IndexedDB
296
- *
297
- * Call this after load() to restore cached data from a previous session.
298
- */
299
- load_cache_from_idb(): Promise<boolean>;
300
300
  /**
301
301
  * Load index with IndexedDB cache pre-loaded
302
302
  *
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
  *
@@ -628,6 +628,16 @@ export class RemoteIndex {
628
628
  throw takeFromExternrefTable0(ret[0]);
629
629
  }
630
630
  }
631
+ /**
632
+ * Load the slice cache from IndexedDB
633
+ *
634
+ * Call this after load() to restore cached data from a previous session.
635
+ * @returns {Promise<boolean>}
636
+ */
637
+ load_cache_from_idb() {
638
+ const ret = wasm.remoteindex_load_cache_from_idb(this.__wbg_ptr);
639
+ return ret;
640
+ }
631
641
  /**
632
642
  * Load index from URL using hermes-core Index with slice caching
633
643
  *
@@ -639,16 +649,6 @@ export class RemoteIndex {
639
649
  const ret = wasm.remoteindex_load(this.__wbg_ptr);
640
650
  return ret;
641
651
  }
642
- /**
643
- * Load the slice cache from IndexedDB
644
- *
645
- * Call this after load() to restore cached data from a previous session.
646
- * @returns {Promise<boolean>}
647
- */
648
- load_cache_from_idb() {
649
- const ret = wasm.remoteindex_load_cache_from_idb(this.__wbg_ptr);
650
- return ret;
651
- }
652
652
  /**
653
653
  * Load index with IndexedDB cache pre-loaded
654
654
  *
@@ -1344,7 +1344,7 @@ function __wbg_get_imports() {
1344
1344
  console.warn(arg0);
1345
1345
  },
1346
1346
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
1347
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1957, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1347
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1958, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1348
1348
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke___wasm_bindgen_7dc0dc7663c6ddce___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_7dc0dc7663c6ddce___JsError___true_);
1349
1349
  return ret;
1350
1350
  },
@@ -1359,7 +1359,7 @@ function __wbg_get_imports() {
1359
1359
  return ret;
1360
1360
  },
1361
1361
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
1362
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1089, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1362
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1090, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1363
1363
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7dc0dc7663c6ddce___convert__closures_____invoke_______true_);
1364
1364
  return ret;
1365
1365
  },
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "izihawa"
6
6
  ],
7
7
  "description": "WASM bindings for Hermes search engine",
8
- "version": "1.8.128",
8
+ "version": "1.8.129",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",