🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

simple-hypercore-protocol

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-hypercore-protocol - npm Package Compare versions

Comparing version

to
2.1.2

4

lib/handshake.js

@@ -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",