hypercore 10.37.7 → 10.37.8
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/replicator.js +1 -1
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -457,7 +457,7 @@ class Peer {
|
|
|
457
457
|
const name = message.name || this.lastExtensionRecv
|
|
458
458
|
this.lastExtensionRecv = name
|
|
459
459
|
const ext = this.extensions.get(name)
|
|
460
|
-
if (ext) ext._onmessage({ start: 0, end: message.byteLength, buffer: message.message }, this)
|
|
460
|
+
if (ext) ext._onmessage({ start: 0, end: message.message.byteLength, buffer: message.message }, this)
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
sendSync () {
|