@vue-skuilder/standalone-ui 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.
@@ -29587,7 +29587,13 @@ ${t.stack}` : JSON.stringify(t);
29587
29587
  ...t.doc,
29588
29588
  _rev: void 0
29589
29589
  }));
29590
- return g.length > 0 ? (await d.bulkDocs(g), logger.info(`Successfully migrated ${g.length} documents from ${t} to ${c}`)) : logger.info("No documents to migrate from funnel account"), { success: !0 };
29590
+ g.length > 0 ? (await d.bulkDocs(g), logger.info(`Successfully migrated ${g.length} documents from ${t} to ${c}`)) : logger.info("No documents to migrate from funnel account");
29591
+ try {
29592
+ await u.destroy(), logger.info(`Destroyed consumed guest DB for ${t}`);
29593
+ } catch (c) {
29594
+ logger.warn(`Failed to destroy consumed guest DB for ${t} (non-fatal): ${c instanceof Error ? c.message : String(c)}`);
29595
+ }
29596
+ return { success: !0 };
29591
29597
  } catch (t) {
29592
29598
  return logger.error("Migration failed:", t), {
29593
29599
  success: !1,
@@ -29692,6 +29698,11 @@ Currently logged-in as ${this._username}.`);
29692
29698
  async logout() {
29693
29699
  if (!this.syncStrategy.canAuthenticate()) return this._username = await this.syncStrategy.getCurrentUsername(), await this.init(), { ok: !0 };
29694
29700
  let t = await this.syncStrategy.logout();
29701
+ try {
29702
+ localStorage.removeItem("sk-guest-uuid");
29703
+ } catch (t) {
29704
+ logger.warn("localStorage not available (Node.js environment):", t);
29705
+ }
29695
29706
  return this._username = await this.syncStrategy.getCurrentUsername(), await this.init(), t;
29696
29707
  }
29697
29708
  async get(t) {