@qodalis/cli-files 2.0.0-beta.19 → 2.0.0-beta.20

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/public-api.mjs CHANGED
@@ -4,7 +4,7 @@ import { createCliToken, ICliCompletionProvider_TOKEN, ICliFileTransferService_T
4
4
  var IFileSystemService_TOKEN = createCliToken("cli-file-system-service");
5
5
 
6
6
  // src/lib/version.ts
7
- var LIBRARY_VERSION = "2.0.0-beta.19";
7
+ var LIBRARY_VERSION = "2.0.0-beta.20";
8
8
  var API_VERSION = 2;
9
9
  function splitArgs(raw) {
10
10
  return splitShellWords(raw);
@@ -5306,8 +5306,10 @@ var IndexedDbFileSystemService = class {
5306
5306
  const tx = db.transaction(STORE_NAME, "readwrite");
5307
5307
  const store = tx.objectStore(STORE_NAME);
5308
5308
  store.put(this.root, ROOT_KEY);
5309
- store.put(this.cwd, CWD_KEY);
5310
- store.put(this.homePath, HOME_KEY);
5309
+ if (!this.currentUid) {
5310
+ store.put(this.cwd, CWD_KEY);
5311
+ store.put(this.homePath, HOME_KEY);
5312
+ }
5311
5313
  await new Promise((resolve, reject) => {
5312
5314
  tx.oncomplete = () => resolve();
5313
5315
  tx.onerror = () => reject(tx.error);