@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/core/index.js +5 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +5 -0
- package/dist/core/index.mjs.map +1 -1
- package/dist/impl/couch/index.js +13 -0
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +13 -0
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.js +5 -0
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +5 -0
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/impl/common/BaseUserDB.ts +13 -0
- package/src/impl/couch/CouchDBSyncStrategy.ts +17 -0
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;
|