hypercore 11.31.0 → 11.32.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.
- package/lib/core.js +1 -0
- package/lib/replicator.js +6 -1
- package/lib/session-state.js +1 -2
- package/package.json +1 -1
package/lib/core.js
CHANGED
package/lib/replicator.js
CHANGED
|
@@ -2460,7 +2460,12 @@ module.exports = class Replicator {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
|
|
2462
2462
|
this._onpeerupdate(false, peer)
|
|
2463
|
-
if (inflight)
|
|
2463
|
+
if (inflight) {
|
|
2464
|
+
this.updateAll()
|
|
2465
|
+
} else {
|
|
2466
|
+
this._checkUpgradeIfAvailable()
|
|
2467
|
+
this._maybeResolveIfAvailableRanges()
|
|
2468
|
+
}
|
|
2464
2469
|
}
|
|
2465
2470
|
|
|
2466
2471
|
_queueBlock(b) {
|
package/lib/session-state.js
CHANGED
|
@@ -224,6 +224,7 @@ class SessionState {
|
|
|
224
224
|
|
|
225
225
|
tx.deleteGroupUpdate(pointer, this.core.header.tree.timestamp)
|
|
226
226
|
tx.putGroupUpdate(pointer, tree.timestamp, this.core.header.key)
|
|
227
|
+
this.core.ongroupupdate(this.core.header.group.key)
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
_clearActiveBatch() {
|
|
@@ -306,8 +307,6 @@ class SessionState {
|
|
|
306
307
|
}
|
|
307
308
|
|
|
308
309
|
if (this.isDefault() && this.core.header.group) {
|
|
309
|
-
const { pointer } = this.core.header.group
|
|
310
|
-
|
|
311
310
|
const tx = await this.createWriteBatch()
|
|
312
311
|
this.updateGroupIndex(tx, tree)
|
|
313
312
|
await tx.flush()
|