New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 2.1.1 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc