@vue-skuilder/db 0.2.12 → 0.2.13

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/dist/index.mjs CHANGED
@@ -7398,6 +7398,14 @@ var init_CouchDBSyncStrategy = __esm({
7398
7398
  } else {
7399
7399
  logger.info("No documents to migrate from funnel account");
7400
7400
  }
7401
+ try {
7402
+ await oldLocalDB.destroy();
7403
+ logger.info(`Destroyed consumed guest DB for ${oldUsername}`);
7404
+ } catch (destroyErr) {
7405
+ logger.warn(
7406
+ `Failed to destroy consumed guest DB for ${oldUsername} (non-fatal): ${destroyErr instanceof Error ? destroyErr.message : String(destroyErr)}`
7407
+ );
7408
+ }
7401
7409
  return { success: true };
7402
7410
  } catch (error) {
7403
7411
  logger.error("Migration failed:", error);
@@ -7829,6 +7837,11 @@ Currently logged-in as ${this._username}.`
7829
7837
  return { ok: true };
7830
7838
  }
7831
7839
  const ret = await this.syncStrategy.logout();
7840
+ try {
7841
+ localStorage.removeItem("sk-guest-uuid");
7842
+ } catch (e) {
7843
+ logger.warn("localStorage not available (Node.js environment):", e);
7844
+ }
7832
7845
  this._username = await this.syncStrategy.getCurrentUsername();
7833
7846
  await this.init();
7834
7847
  return ret;