@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
|
@@ -7504,6 +7504,11 @@ Currently logged-in as ${this._username}.`
|
|
|
7504
7504
|
return { ok: true };
|
|
7505
7505
|
}
|
|
7506
7506
|
const ret = await this.syncStrategy.logout();
|
|
7507
|
+
try {
|
|
7508
|
+
localStorage.removeItem("sk-guest-uuid");
|
|
7509
|
+
} catch (e) {
|
|
7510
|
+
logger.warn("localStorage not available (Node.js environment):", e);
|
|
7511
|
+
}
|
|
7507
7512
|
this._username = await this.syncStrategy.getCurrentUsername();
|
|
7508
7513
|
await this.init();
|
|
7509
7514
|
return ret;
|
|
@@ -8878,6 +8883,14 @@ var init_CouchDBSyncStrategy = __esm({
|
|
|
8878
8883
|
} else {
|
|
8879
8884
|
logger.info("No documents to migrate from funnel account");
|
|
8880
8885
|
}
|
|
8886
|
+
try {
|
|
8887
|
+
await oldLocalDB.destroy();
|
|
8888
|
+
logger.info(`Destroyed consumed guest DB for ${oldUsername}`);
|
|
8889
|
+
} catch (destroyErr) {
|
|
8890
|
+
logger.warn(
|
|
8891
|
+
`Failed to destroy consumed guest DB for ${oldUsername} (non-fatal): ${destroyErr instanceof Error ? destroyErr.message : String(destroyErr)}`
|
|
8892
|
+
);
|
|
8893
|
+
}
|
|
8881
8894
|
return { success: true };
|
|
8882
8895
|
} catch (error) {
|
|
8883
8896
|
logger.error("Migration failed:", error);
|