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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.10.1",
3
+ "version": "7.11.0",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [