autobee-wakeup 1.0.0 → 1.0.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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -105,9 +105,9 @@ module.exports = class AutobeeWakeup extends ReadyResource {
105
105
 
106
106
  _getWakeupWriters() {
107
107
  const writers = []
108
- for (const w of this._auto.writers) {
108
+ for (const [key, w] of this._auto.writers.active) {
109
109
  if (w.isIndexer || w.pending === null) continue
110
- writers.push({ key: w.core.key, length: w.length })
110
+ writers.push({ key: key, length: w.length })
111
111
  }
112
112
 
113
113
  return writers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autobee-wakeup",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "autobee-wakeup",
5
5
  "main": "index.js",
6
6
  "exports": {