hypercore 11.0.6 → 11.0.7
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/lib/core.js +2 -2
- package/lib/replicator.js +1 -1
- package/lib/session-state.js +1 -0
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -649,8 +649,8 @@ module.exports = class Core {
|
|
|
649
649
|
this.updateContiguousLength({ start, length, drop: true })
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
async _onconflict (proof
|
|
653
|
-
await this.replicator.onconflict(
|
|
652
|
+
async _onconflict (proof) {
|
|
653
|
+
await this.replicator.onconflict()
|
|
654
654
|
|
|
655
655
|
for (let i = this.monitors.length - 1; i >= 0; i--) {
|
|
656
656
|
const s = this.monitors[i]
|
package/lib/replicator.js
CHANGED
|
@@ -1578,7 +1578,7 @@ module.exports = class Replicator {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
// Called externally when a conflict has been detected and verified
|
|
1581
|
-
async onconflict (
|
|
1581
|
+
async onconflict () {
|
|
1582
1582
|
const all = []
|
|
1583
1583
|
for (const peer of this.peers) {
|
|
1584
1584
|
all.push(peer._onconflict())
|
package/lib/session-state.js
CHANGED