@keeper-security/keeperapi 16.0.35 → 16.0.36
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.
|
@@ -5963,13 +5963,15 @@
|
|
|
5963
5963
|
}
|
|
5964
5964
|
catch (e) {
|
|
5965
5965
|
console.error(`Crypto worker failed: ${e}`);
|
|
5966
|
+
await (workerPool === null || workerPool === void 0 ? void 0 : workerPool.close());
|
|
5967
|
+
workerPool = null;
|
|
5966
5968
|
}
|
|
5967
5969
|
}
|
|
5968
5970
|
// Default to main thread decryption
|
|
5969
5971
|
await Promise.all(Object.values(keys).map(async (task) => {
|
|
5970
5972
|
const { data, dataId, keyId, encryptionType, unwrappedType } = task;
|
|
5971
5973
|
try {
|
|
5972
|
-
await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage);
|
|
5974
|
+
await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage, true);
|
|
5973
5975
|
}
|
|
5974
5976
|
catch (e) {
|
|
5975
5977
|
if (e instanceof Error && e.message === 'sync_aborted')
|