Expand 35 modules across encoding, consensus, experimental, messaging, pear, storage, and supercomputer APIs.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -118,6 +118,15 @@ class HyperP2PMirrorRealm extends EventEmitter {
|
||||
return { realmA: this.clearRealm('A'), realmB: this.clearRealm('B') }
|
||||
}
|
||||
|
||||
clearAll () {
|
||||
return this.clearBoth()
|
||||
}
|
||||
|
||||
writeBatch (realm, entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries array required')
|
||||
return entries.map((e) => this.write(realm, e.key, e.value))
|
||||
}
|
||||
|
||||
hasDiff (key) {
|
||||
return this.diffKeys().includes(String(key))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user