core-3nweb-client-lib 0.42.11 → 0.42.12
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.
|
@@ -279,7 +279,6 @@ class Storages {
|
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
async getRootKey(user, pass, progressCB, cryptor) {
|
|
282
|
-
var _a;
|
|
283
282
|
const storeKeyProgressCB = (0, sign_in_1.makeKeyGenProgressCB)(0, 99, progressCB);
|
|
284
283
|
const storageDir = this.storageDirForUser(user);
|
|
285
284
|
const params = await readRootKeyDerivParamsFromCache(storageDir);
|
|
@@ -287,7 +286,8 @@ class Storages {
|
|
|
287
286
|
return;
|
|
288
287
|
}
|
|
289
288
|
const key = await (0, key_derivation_1.deriveStorageSKey)(cryptor, pass, params, storeKeyProgressCB);
|
|
290
|
-
|
|
289
|
+
const indicatorStore = await StorageAndFS.existing(await storage_2.LocalStorage.makeAndStart((0, path_1.join)(storageDir, LOCAL_STORAGE_DIR), this.storageGetterForLocalStorage, this.cryptor, async () => { }), key);
|
|
290
|
+
return (indicatorStore ? key : undefined);
|
|
291
291
|
}
|
|
292
292
|
async startInitFromCache(user, keyGen, makeNet, resolver, logError) {
|
|
293
293
|
const storageDir = this.storageDirForUser(user);
|