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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. 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
- return boot(this.store, this.key, {
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autobee",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "Bee based autobase",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Holepunch Inc.",