@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.
package/dist/index.es.js
CHANGED
|
@@ -181979,13 +181979,15 @@ const browserPlatform = (_a = class {
|
|
|
181979
181979
|
}
|
|
181980
181980
|
catch (e) {
|
|
181981
181981
|
console.error(`Crypto worker failed: ${e}`);
|
|
181982
|
+
await (workerPool === null || workerPool === void 0 ? void 0 : workerPool.close());
|
|
181983
|
+
workerPool = null;
|
|
181982
181984
|
}
|
|
181983
181985
|
}
|
|
181984
181986
|
// Default to main thread decryption
|
|
181985
181987
|
await Promise.all(Object.values(keys).map(async (task) => {
|
|
181986
181988
|
const { data, dataId, keyId, encryptionType, unwrappedType } = task;
|
|
181987
181989
|
try {
|
|
181988
|
-
await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage);
|
|
181990
|
+
await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage, true);
|
|
181989
181991
|
}
|
|
181990
181992
|
catch (e) {
|
|
181991
181993
|
if (e instanceof Error && e.message === 'sync_aborted')
|