simple-hypercore-protocol
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -104,3 +104,3 @@ const SH = require('simple-handshake') | ||
if (err) return this.destroy(err) | ||
if (data && data.length) this.remotePayload = Buffer.concat([data]) | ||
if (data && data.length) this.remotePayload = Buffer.from(data) | ||
if (this.destroyed || this.noise.finished) return | ||
@@ -114,5 +114,5 @@ | ||
function onstatickey (remoteKey, done) { | ||
this.remotePublicKey = Buffer.concat([remoteKey]) | ||
this.remotePublicKey = Buffer.from(remoteKey) | ||
if (this.options.onauthenticate) this.options.onauthenticate(this.remotePublicKey, done) | ||
else done(null) | ||
} |
{ | ||
"name": "simple-hypercore-protocol", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Hypercore protocol state machine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
56533