Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add missing vault codec overflow table name pub method (#2159)
Leendert de Borstecddb4372b44
diff --git a/apps/browser-extension/src/utils/RustCore.ts b/apps/browser-extension/src/utils/RustCore.tsindex 50ccff009..e285a999c 100644--- a/apps/browser-extension/src/utils/RustCore.ts+++ b/apps/browser-extension/src/utils/RustCore.ts@@ -34,7 +34,7 @@ export function initRustCore(): Promise<void> {initPromise = (async (): Promise<void> => {const wasmUrl = (browser.runtime.getURL as (path: string) => string)('src/aliasvault_core_bg.wasm');const wasmBytes = await (await fetch(wasmUrl)).arrayBuffer();- await initWasm(wasmBytes);+ await initWasm({ module_or_path: wasmBytes });})();}return initPromise;diff --git a/core/rust/src/wasm.rs b/core/rust/src/wasm.rsindex 794fe324e..6f4a09ace 100644--- a/core/rust/src/wasm.rs+++ b/core/rust/src/wasm.rs@@ -162,6 +162,14 @@ pub fn vault_codec_bucket_layout_js() -> Result<JsValue, JsValue> {codec_to_js(&vault_codec::bucket_layout())}+/// The name of the client-local SQLite table that carries the codec overflow inside the vault DB.+/// Platforms include this table alongside a bucket's tables on a bucket-only push so a newer writer's+/// unknown columns/tables re-merge and survive.+#[wasm_bindgen(js_name = vaultCodecOverflowTable)]+pub fn vault_codec_overflow_table_js() -> String {+ vault_codec::OVERFLOW_TABLE.to_string()+}+/// Generate a fresh 32-byte per-user salt (lowercase hex).#[wasm_bindgen(js_name = vaultCodecGenerateUserSalt)]pub fn vault_codec_generate_user_salt_js() -> String {