Complete module API expansion: snapshot() on all remaining modules.
Adds snapshot(), clearAll aliases, and batch helpers across storage (hyperbee, hypercore, hyperdrive, autobase), indexes, pear-platform, trust, routing intent-router, and temporal-index. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -95,6 +95,10 @@ class HyperPearUpdateGossip extends EventEmitter {
|
||||
return { subs, history }
|
||||
}
|
||||
|
||||
snapshot () {
|
||||
return { subscribers: this._subs.size, hasLatest: !!this._latest }
|
||||
}
|
||||
|
||||
_notify (update) {
|
||||
for (const fn of this._subs) {
|
||||
try { fn(update) } catch (_) { /* ignore */ }
|
||||
|
||||
Reference in New Issue
Block a user