autobee 2.12.0 → 2.12.1
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/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -508,10 +508,14 @@ module.exports = class Autobee extends ReadyResource {
|
|
|
508
508
|
this.bootFrom = getBootOption(await this.bootFrom)
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
|
|
511
|
+
const result = await boot(this.store, this.key, {
|
|
512
512
|
encryptionKey: this.encryptionKey,
|
|
513
513
|
keyPair: this.keyPair
|
|
514
514
|
})
|
|
515
|
+
|
|
516
|
+
if (result.encryptionKey) this.encrypted = true
|
|
517
|
+
|
|
518
|
+
return result
|
|
515
519
|
}
|
|
516
520
|
|
|
517
521
|
async _boot() {
|