corestore 7.10.1 → 7.11.0
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -294,13 +294,13 @@ class Corestore extends ReadyResource {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
_onGroupActive(topic) {
|
|
298
|
-
this.emit('group-active', topic)
|
|
297
|
+
_onGroupActive(topic, update) {
|
|
298
|
+
this.emit('group-active', topic, update)
|
|
299
299
|
|
|
300
300
|
const topicHex = b4a.toString(topic, 'hex')
|
|
301
301
|
const handles = this._groupNotifiers.get(topicHex)
|
|
302
302
|
if (!handles) return
|
|
303
|
-
for (const handle of handles) handle.emit('update')
|
|
303
|
+
for (const handle of handles) handle.emit('update', update)
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
notifyGroup(topic) {
|