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
- return ((await ((_a = this.local) === null || _a === void 0 ? void 0 : _a.canKeyOpenRootObj(key))) ? key : undefined);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.42.11",
3
+ "version": "0.42.12",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",