hypercore 11.0.13 → 11.0.14
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/index.js +1 -1
- package/lib/session-state.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
package/lib/session-state.js
CHANGED
|
@@ -555,7 +555,8 @@ module.exports = class SessionState {
|
|
|
555
555
|
return
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
|
|
558
|
+
const start = p.truncated === -1 ? p.start : p.truncated
|
|
559
|
+
if (b.start !== start + p.length) {
|
|
559
560
|
throw INVALID_OPERATION('Atomic operations must be contiguous')
|
|
560
561
|
}
|
|
561
562
|
|