hermes-wasm 1.8.40 → 1.8.43
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 +41 -41
- package/hermes_wasm.js +19 -19
- package/hermes_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/hermes_wasm.d.ts
CHANGED
|
@@ -374,9 +374,44 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
374
374
|
|
|
375
375
|
export interface InitOutput {
|
|
376
376
|
readonly memory: WebAssembly.Memory;
|
|
377
|
+
readonly __wbg_localindex_free: (a: number, b: number) => void;
|
|
378
|
+
readonly __wbg_remoteindex_free: (a: number, b: number) => void;
|
|
379
|
+
readonly localindex_addDocument: (a: number, b: any) => any;
|
|
380
|
+
readonly localindex_addDocuments: (a: number, b: any) => any;
|
|
381
|
+
readonly localindex_commit: (a: number) => any;
|
|
382
|
+
readonly localindex_create: (a: number, b: number) => any;
|
|
383
|
+
readonly localindex_fieldNames: (a: number) => any;
|
|
384
|
+
readonly localindex_getDocument: (a: number, b: number, c: number, d: number) => any;
|
|
385
|
+
readonly localindex_getDocumentWithFields: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
386
|
+
readonly localindex_numDocs: (a: number) => number;
|
|
387
|
+
readonly localindex_pendingDocs: (a: number) => number;
|
|
388
|
+
readonly localindex_search: (a: number, b: number, c: number, d: number) => any;
|
|
389
|
+
readonly localindex_searchOffset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
390
|
+
readonly localindex_searchStructured: (a: number, b: any) => any;
|
|
391
|
+
readonly localindex_withStorage: (a: any, b: number, c: number) => any;
|
|
392
|
+
readonly remoteindex_cache_stats: (a: number) => any;
|
|
393
|
+
readonly remoteindex_clear_idb_cache: (a: number) => any;
|
|
394
|
+
readonly remoteindex_default_fields: (a: number) => any;
|
|
395
|
+
readonly remoteindex_export_cache: (a: number) => [number, number];
|
|
396
|
+
readonly remoteindex_field_names: (a: number) => any;
|
|
397
|
+
readonly remoteindex_getDocumentWithFields: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
398
|
+
readonly remoteindex_get_document: (a: number, b: number, c: number, d: number) => any;
|
|
399
|
+
readonly remoteindex_import_cache: (a: number, b: number, c: number) => [number, number];
|
|
400
|
+
readonly remoteindex_load: (a: number) => any;
|
|
401
|
+
readonly remoteindex_load_cache_from_idb: (a: number) => any;
|
|
402
|
+
readonly remoteindex_load_with_idb_cache: (a: number) => any;
|
|
403
|
+
readonly remoteindex_network_stats: (a: number) => any;
|
|
404
|
+
readonly remoteindex_new: (a: number, b: number) => number;
|
|
405
|
+
readonly remoteindex_num_docs: (a: number) => number;
|
|
406
|
+
readonly remoteindex_num_segments: (a: number) => number;
|
|
407
|
+
readonly remoteindex_reset_network_stats: (a: number) => void;
|
|
408
|
+
readonly remoteindex_save_cache_to_idb: (a: number) => any;
|
|
409
|
+
readonly remoteindex_search: (a: number, b: number, c: number, d: number) => any;
|
|
410
|
+
readonly remoteindex_searchStructured: (a: number, b: any) => any;
|
|
411
|
+
readonly remoteindex_search_offset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
412
|
+
readonly remoteindex_with_cache_size: (a: number, b: number, c: number) => number;
|
|
377
413
|
readonly __wbg_indexregistry_free: (a: number, b: number) => void;
|
|
378
414
|
readonly __wbg_ipfsindex_free: (a: number, b: number) => void;
|
|
379
|
-
readonly __wbg_remoteindex_free: (a: number, b: number) => void;
|
|
380
415
|
readonly indexregistry_add_remote: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
381
416
|
readonly indexregistry_list: (a: number) => any;
|
|
382
417
|
readonly indexregistry_new: () => number;
|
|
@@ -403,44 +438,9 @@ export interface InitOutput {
|
|
|
403
438
|
readonly ipfsindex_searchStructured: (a: number, b: any) => any;
|
|
404
439
|
readonly ipfsindex_search_offset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
405
440
|
readonly ipfsindex_with_cache_size: (a: number, b: number, c: number) => number;
|
|
406
|
-
readonly remoteindex_cache_stats: (a: number) => any;
|
|
407
|
-
readonly remoteindex_clear_idb_cache: (a: number) => any;
|
|
408
|
-
readonly remoteindex_default_fields: (a: number) => any;
|
|
409
|
-
readonly remoteindex_export_cache: (a: number) => [number, number];
|
|
410
|
-
readonly remoteindex_field_names: (a: number) => any;
|
|
411
|
-
readonly remoteindex_getDocumentWithFields: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
412
|
-
readonly remoteindex_get_document: (a: number, b: number, c: number, d: number) => any;
|
|
413
|
-
readonly remoteindex_import_cache: (a: number, b: number, c: number) => [number, number];
|
|
414
|
-
readonly remoteindex_load: (a: number) => any;
|
|
415
|
-
readonly remoteindex_load_cache_from_idb: (a: number) => any;
|
|
416
|
-
readonly remoteindex_load_with_idb_cache: (a: number) => any;
|
|
417
|
-
readonly remoteindex_network_stats: (a: number) => any;
|
|
418
|
-
readonly remoteindex_new: (a: number, b: number) => number;
|
|
419
|
-
readonly remoteindex_reset_network_stats: (a: number) => void;
|
|
420
|
-
readonly remoteindex_save_cache_to_idb: (a: number) => any;
|
|
421
|
-
readonly remoteindex_search: (a: number, b: number, c: number, d: number) => any;
|
|
422
|
-
readonly remoteindex_searchStructured: (a: number, b: any) => any;
|
|
423
|
-
readonly remoteindex_search_offset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
424
|
-
readonly remoteindex_with_cache_size: (a: number, b: number, c: number) => number;
|
|
425
441
|
readonly set_log_level: (a: number, b: number) => void;
|
|
426
442
|
readonly init: () => void;
|
|
427
443
|
readonly setup_logging: () => void;
|
|
428
|
-
readonly remoteindex_num_docs: (a: number) => number;
|
|
429
|
-
readonly remoteindex_num_segments: (a: number) => number;
|
|
430
|
-
readonly __wbg_localindex_free: (a: number, b: number) => void;
|
|
431
|
-
readonly localindex_addDocument: (a: number, b: any) => any;
|
|
432
|
-
readonly localindex_addDocuments: (a: number, b: any) => any;
|
|
433
|
-
readonly localindex_commit: (a: number) => any;
|
|
434
|
-
readonly localindex_create: (a: number, b: number) => any;
|
|
435
|
-
readonly localindex_fieldNames: (a: number) => any;
|
|
436
|
-
readonly localindex_getDocument: (a: number, b: number, c: number, d: number) => any;
|
|
437
|
-
readonly localindex_getDocumentWithFields: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
438
|
-
readonly localindex_numDocs: (a: number) => number;
|
|
439
|
-
readonly localindex_pendingDocs: (a: number) => number;
|
|
440
|
-
readonly localindex_search: (a: number, b: number, c: number, d: number) => any;
|
|
441
|
-
readonly localindex_searchOffset: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
442
|
-
readonly localindex_searchStructured: (a: number, b: any) => any;
|
|
443
|
-
readonly localindex_withStorage: (a: any, b: number, c: number) => any;
|
|
444
444
|
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
445
445
|
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
446
446
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -449,11 +449,11 @@ export interface InitOutput {
|
|
|
449
449
|
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
450
450
|
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
451
451
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
452
|
-
readonly
|
|
453
|
-
readonly
|
|
454
|
-
readonly
|
|
455
|
-
readonly
|
|
456
|
-
readonly
|
|
452
|
+
readonly wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___wasm_bindgen_cdf688fa8d4c61a9___JsValue__core_7a2330d63e03cc2c___result__Result_____wasm_bindgen_cdf688fa8d4c61a9___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
453
|
+
readonly wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
454
|
+
readonly wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_: (a: number, b: number, c: any) => void;
|
|
455
|
+
readonly wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__2: (a: number, b: number, c: any) => void;
|
|
456
|
+
readonly wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
457
457
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
458
458
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
459
459
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/hermes_wasm.js
CHANGED
|
@@ -1162,7 +1162,7 @@ function __wbg_get_imports() {
|
|
|
1162
1162
|
const a = state0.a;
|
|
1163
1163
|
state0.a = 0;
|
|
1164
1164
|
try {
|
|
1165
|
-
return
|
|
1165
|
+
return wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1166
1166
|
} finally {
|
|
1167
1167
|
state0.a = a;
|
|
1168
1168
|
}
|
|
@@ -1344,23 +1344,23 @@ 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:
|
|
1348
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1347
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1696, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1348
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___wasm_bindgen_cdf688fa8d4c61a9___JsValue__core_7a2330d63e03cc2c___result__Result_____wasm_bindgen_cdf688fa8d4c61a9___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:
|
|
1353
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1352
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 142, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1353
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___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:
|
|
1358
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1357
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 142, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1358
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___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:
|
|
1363
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1362
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 836, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1363
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke_______true_);
|
|
1364
1364
|
return ret;
|
|
1365
1365
|
},
|
|
1366
1366
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -1399,27 +1399,27 @@ function __wbg_get_imports() {
|
|
|
1399
1399
|
};
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
function
|
|
1403
|
-
wasm.
|
|
1402
|
+
function wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1403
|
+
wasm.wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
|
-
function
|
|
1407
|
-
wasm.
|
|
1406
|
+
function wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2) {
|
|
1407
|
+
wasm.wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2);
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
|
-
function
|
|
1411
|
-
wasm.
|
|
1410
|
+
function wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__2(arg0, arg1, arg2) {
|
|
1411
|
+
wasm.wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___web_sys_670dd788129f6f5a___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__2(arg0, arg1, arg2);
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
function
|
|
1415
|
-
const ret = wasm.
|
|
1414
|
+
function wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___wasm_bindgen_cdf688fa8d4c61a9___JsValue__core_7a2330d63e03cc2c___result__Result_____wasm_bindgen_cdf688fa8d4c61a9___JsError___true_(arg0, arg1, arg2) {
|
|
1415
|
+
const ret = wasm.wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___wasm_bindgen_cdf688fa8d4c61a9___JsValue__core_7a2330d63e03cc2c___result__Result_____wasm_bindgen_cdf688fa8d4c61a9___JsError___true_(arg0, arg1, arg2);
|
|
1416
1416
|
if (ret[1]) {
|
|
1417
1417
|
throw takeFromExternrefTable0(ret[0]);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
|
|
1421
|
-
function
|
|
1422
|
-
wasm.
|
|
1421
|
+
function wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1422
|
+
wasm.wasm_bindgen_cdf688fa8d4c61a9___convert__closures_____invoke___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined___js_sys_6b7430c64cba68___Function_fn_wasm_bindgen_cdf688fa8d4c61a9___JsValue_____wasm_bindgen_cdf688fa8d4c61a9___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
|
package/hermes_wasm_bg.wasm
CHANGED
|
Binary file
|