autobee 1.0.8 → 1.0.9

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 CHANGED
@@ -492,7 +492,7 @@ module.exports = class Autobee extends ReadyResource {
492
492
  const oldLocal = this.local
493
493
 
494
494
  this.local = newLocal
495
- this.writers.rotateLocalWriter(this.local)
495
+ await this.writers.rotateLocalWriter(this.local)
496
496
 
497
497
  this._updateLocalCore = null
498
498
 
package/lib/writers.js CHANGED
@@ -67,6 +67,8 @@ class ActiveWriters {
67
67
  this.localWriter = new Writer(this, this.auto.system, true, core, b4a.toString(core.key, 'hex'))
68
68
  this.localWriter.addPending()
69
69
  this.auto.emit('writer', this.localWriter)
70
+
71
+ await this.updateLocalState()
70
72
  }
71
73
 
72
74
  clearLocal() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autobee",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Bee based autobase",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Holepunch Inc.",