@taladb/web 0.2.7 → 0.2.9
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/package.json +1 -1
- package/worker/taladb.worker.js +2 -2
package/package.json
CHANGED
package/worker/taladb.worker.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
// State
|
|
47
47
|
// ---------------------------------------------------------------------------
|
|
48
48
|
|
|
49
|
-
/** @type {import('../pkg/
|
|
49
|
+
/** @type {import('../pkg/taladb_web').WorkerDB | null} */
|
|
50
50
|
let db = null;
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -186,7 +186,7 @@ async function dispatch(op, args) {
|
|
|
186
186
|
async function doInit(dbName) {
|
|
187
187
|
// Dynamic import of the WASM module (wasm-pack --target web output)
|
|
188
188
|
// The bundler (Vite/Webpack) will resolve this path correctly.
|
|
189
|
-
const wasm = await import('../pkg/
|
|
189
|
+
const wasm = await import('../pkg/taladb_web.js');
|
|
190
190
|
await wasm.default(); // run wasm-bindgen init (sets up memory, panic hook, etc.)
|
|
191
191
|
|
|
192
192
|
const { WorkerDB } = wasm;
|