@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/package.json
CHANGED
package/src/browser/platform.ts
CHANGED
|
@@ -206,6 +206,8 @@ export const browserPlatform: Platform = class {
|
|
|
206
206
|
|
|
207
207
|
} catch (e) {
|
|
208
208
|
console.error(`Crypto worker failed: ${e}`)
|
|
209
|
+
await workerPool?.close()
|
|
210
|
+
workerPool = null
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
|
|
@@ -213,7 +215,7 @@ export const browserPlatform: Platform = class {
|
|
|
213
215
|
await Promise.all(Object.values(keys).map(async task => {
|
|
214
216
|
const {data, dataId, keyId, encryptionType, unwrappedType} = task
|
|
215
217
|
try {
|
|
216
|
-
await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage)
|
|
218
|
+
await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage, true)
|
|
217
219
|
} catch (e: any) {
|
|
218
220
|
if (e instanceof Error && e.message === 'sync_aborted') throw e
|
|
219
221
|
console.error(`The key ${dataId} cannot be decrypted (${e.message})`)
|