hermes-wasm 1.8.96 → 1.8.97
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/README.md +4 -0
- package/hermes_wasm.d.ts +4 -4
- package/hermes_wasm.js +4 -4
- package/hermes_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -282,9 +282,13 @@ const results = await index.searchStructured({
|
|
|
282
282
|
```bash
|
|
283
283
|
cd hermes-wasm
|
|
284
284
|
bash build.sh # requires Homebrew LLVM on macOS
|
|
285
|
+
npm ci
|
|
286
|
+
npm test
|
|
285
287
|
```
|
|
286
288
|
|
|
287
289
|
The build script sets `CC` and `AR` to Homebrew LLVM binaries for zstd cross-compilation to `wasm32-unknown-unknown`.
|
|
290
|
+
The root `package.json` is a private Vitest harness; the publishable npm
|
|
291
|
+
metadata is generated in `pkg/` by `wasm-pack` from `Cargo.toml`.
|
|
288
292
|
|
|
289
293
|
## Example
|
|
290
294
|
|
package/hermes_wasm.d.ts
CHANGED
|
@@ -389,12 +389,15 @@ export interface InitOutput {
|
|
|
389
389
|
readonly localindex_searchStructured: (a: number, b: any) => any;
|
|
390
390
|
readonly localindex_withStorage: (a: any, b: number, c: number) => any;
|
|
391
391
|
readonly __wbg_indexregistry_free: (a: number, b: number) => void;
|
|
392
|
-
readonly __wbg_remoteindex_free: (a: number, b: number) => void;
|
|
393
392
|
readonly indexregistry_add_remote: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
394
393
|
readonly indexregistry_list: (a: number) => any;
|
|
395
394
|
readonly indexregistry_new: () => number;
|
|
396
395
|
readonly indexregistry_remove: (a: number, b: number, c: number) => void;
|
|
397
396
|
readonly indexregistry_search: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
397
|
+
readonly set_log_level: (a: number, b: number) => void;
|
|
398
|
+
readonly init: () => void;
|
|
399
|
+
readonly setup_logging: () => void;
|
|
400
|
+
readonly __wbg_remoteindex_free: (a: number, b: number) => void;
|
|
398
401
|
readonly remoteindex_cache_stats: (a: number) => any;
|
|
399
402
|
readonly remoteindex_clear_idb_cache: (a: number) => any;
|
|
400
403
|
readonly remoteindex_default_fields: (a: number) => any;
|
|
@@ -416,9 +419,6 @@ export interface InitOutput {
|
|
|
416
419
|
readonly remoteindex_searchStructured: (a: number, b: any) => any;
|
|
417
420
|
readonly remoteindex_search_offset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
418
421
|
readonly remoteindex_with_cache_size: (a: number, b: number, c: number) => number;
|
|
419
|
-
readonly set_log_level: (a: number, b: number) => void;
|
|
420
|
-
readonly init: () => void;
|
|
421
|
-
readonly setup_logging: () => void;
|
|
422
422
|
readonly __wbg_ipfsindex_free: (a: number, b: number) => void;
|
|
423
423
|
readonly ipfsindex_cache_stats: (a: number) => any;
|
|
424
424
|
readonly ipfsindex_clear_idb_cache: (a: number) => any;
|
package/hermes_wasm.js
CHANGED
|
@@ -1344,22 +1344,22 @@ function __wbg_get_imports() {
|
|
|
1344
1344
|
console.warn(arg0);
|
|
1345
1345
|
},
|
|
1346
1346
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1347
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1347
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1687, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1348
1348
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cf07c72b30fa64cc___convert__closures_____invoke___wasm_bindgen_cf07c72b30fa64cc___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_cf07c72b30fa64cc___JsError___true_);
|
|
1349
1349
|
return ret;
|
|
1350
1350
|
},
|
|
1351
1351
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1352
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1352
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 374, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1353
1353
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cf07c72b30fa64cc___convert__closures_____invoke___web_sys_b990320eec74ed43___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
1354
1354
|
return ret;
|
|
1355
1355
|
},
|
|
1356
1356
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1357
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1357
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 374, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1358
1358
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cf07c72b30fa64cc___convert__closures_____invoke___web_sys_b990320eec74ed43___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__2);
|
|
1359
1359
|
return ret;
|
|
1360
1360
|
},
|
|
1361
1361
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1362
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1362
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 834, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1363
1363
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cf07c72b30fa64cc___convert__closures_____invoke_______true_);
|
|
1364
1364
|
return ret;
|
|
1365
1365
|
},
|
package/hermes_wasm_bg.wasm
CHANGED
|
Binary file
|