@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.js
CHANGED
|
@@ -7417,6 +7417,14 @@ var init_CouchDBSyncStrategy = __esm({
|
|
|
7417
7417
|
} else {
|
|
7418
7418
|
logger.info("No documents to migrate from funnel account");
|
|
7419
7419
|
}
|
|
7420
|
+
try {
|
|
7421
|
+
await oldLocalDB.destroy();
|
|
7422
|
+
logger.info(`Destroyed consumed guest DB for ${oldUsername}`);
|
|
7423
|
+
} catch (destroyErr) {
|
|
7424
|
+
logger.warn(
|
|
7425
|
+
`Failed to destroy consumed guest DB for ${oldUsername} (non-fatal): ${destroyErr instanceof Error ? destroyErr.message : String(destroyErr)}`
|
|
7426
|
+
);
|
|
7427
|
+
}
|
|
7420
7428
|
return { success: true };
|
|
7421
7429
|
} catch (error) {
|
|
7422
7430
|
logger.error("Migration failed:", error);
|
|
@@ -7848,6 +7856,11 @@ Currently logged-in as ${this._username}.`
|
|
|
7848
7856
|
return { ok: true };
|
|
7849
7857
|
}
|
|
7850
7858
|
const ret = await this.syncStrategy.logout();
|
|
7859
|
+
try {
|
|
7860
|
+
localStorage.removeItem("sk-guest-uuid");
|
|
7861
|
+
} catch (e) {
|
|
7862
|
+
logger.warn("localStorage not available (Node.js environment):", e);
|
|
7863
|
+
}
|
|
7851
7864
|
this._username = await this.syncStrategy.getCurrentUsername();
|
|
7852
7865
|
await this.init();
|
|
7853
7866
|
return ret;
|