hypercore 11.9.0 → 11.9.1
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/session-state.js +1 -1
- package/package.json +1 -1
package/lib/session-state.js
CHANGED
|
@@ -509,7 +509,7 @@ module.exports = class SessionState {
|
|
|
509
509
|
await this.mutex.lock()
|
|
510
510
|
|
|
511
511
|
try {
|
|
512
|
-
if (maxLength >= 0 && (this.length + values.length)
|
|
512
|
+
if (maxLength >= 0 && (this.length + values.length) > maxLength) {
|
|
513
513
|
return { length: this.length, byteLength: this.byteLength }
|
|
514
514
|
}
|
|
515
515
|
|