New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

curvecp

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curvecp - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

2

package.json
{
"name": "curvecp",
"version": "0.8.3",
"version": "0.8.4",
"description": "Pure javascript CurveCP library",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -66,2 +66,20 @@ 'use strict'

PacketStream.prototype.toMetadata = function () {
return {
isServer: this.isServer,
serverPublicKey: this._encode(this.serverPublicKey),
clientPublicKey: this._encode(this.clientPublicKey),
serverConnectionPublicKey: this._encode(this.serverConnectionPublicKey),
clientConnectionPublicKey: this._encode(this.clientConnectionPublicKey)
}
}
PacketStream.prototype._encode = function (array) {
if (array !== undefined && array !== null) {
return nacl.util.encodeBase64(array)
} else {
return
}
}
PacketStream.prototype._canSend = function () {

@@ -68,0 +86,0 @@ return this.__canSend

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