autobee-wakeup 1.0.5 → 1.1.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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -97,8 +97,8 @@ module.exports = class AutobeeWakeup extends ReadyResource {
97
97
  _getWakeupWriters() {
98
98
  const writers = []
99
99
  for (const [key, w] of this._auto.writers.active) {
100
- if (w.isIndexer || w.pending === null) continue
101
- writers.push({ key: key, length: w.length })
100
+ if (w.isIndexer || !w.isPending) continue
101
+ writers.push(w.core)
102
102
  }
103
103
 
104
104
  return writers
@@ -106,7 +106,7 @@ module.exports = class AutobeeWakeup extends ReadyResource {
106
106
 
107
107
  recouple() {
108
108
  if (this._coupler) this._coupler.destroy()
109
- const core = this._auto.local
109
+ const core = this._auto.bootstrap
110
110
  this._coupler = new CoreCoupler(core, this._wakeupPeerBound)
111
111
  }
112
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autobee-wakeup",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "description": "autobee-wakeup",
5
5
  "main": "index.js",
6
6
  "exports": {