Expand pear-platform, observability, messaging, and network module APIs
Add batch parse, registry, log filtering, stream helpers, routing utilities, handshake management, and related clear/list/count methods across shorter modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -83,6 +83,16 @@ class HyperPearDeepLink extends EventEmitter {
|
||||
return this.peek(link).route
|
||||
}
|
||||
|
||||
openBatch (links) {
|
||||
if (!Array.isArray(links)) throw new Error('links must be an array')
|
||||
return links.map((link) => this.open(link))
|
||||
}
|
||||
|
||||
setDefaultEntry (entry) {
|
||||
this.defaultEntry = String(entry)
|
||||
return this.defaultEntry
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return platformStats(this._stats, PROTOCOL, { history: this._history.length })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user