Huge News!Announcing our $40M Series B led by Abstract Ventures.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.6.0 to 0.6.1

.jshintrc

8

package.json
{
"name": "curvecp",
"version": "0.6.0",
"version": "0.6.1",
"description": "Pure javascript CurveCP library",

@@ -23,11 +23,11 @@ "main": "src/index.js",

"is-buffer": "^1.1.0",
"lodash": "^3.10.1",
"lodash": "^4.9.0",
"nanotimer": "^0.3.13",
"readable-stream-no-buffering": "^2.0.6",
"tweetnacl": "^0.13.2",
"tweetnacl": "^0.14.3",
"tweetnacl-util": "^0.13.3"
},
"devDependencies": {
"net-udp": "0.0.2"
"net-udp": "0.0.3"
}
}

@@ -0,1 +1,3 @@

'use strict'
module.exports = {

@@ -2,0 +4,0 @@ PacketStream: require('./packet-stream.js'),

@@ -94,4 +94,4 @@ var Chicago = require('./chicago.js')

MessageStream.prototype.connect = function (publicKey, connectionInfo) {
this._stream.connect(publicKey, connectionInfo)
MessageStream.prototype.connect = function (connectionInfo) {
this._stream.connect(connectionInfo)
}

@@ -98,0 +98,0 @@

@@ -171,7 +171,8 @@ 'use strict'

PacketStream.prototype.connect = function (publicKey, connectionInfo) {
PacketStream.prototype.connect = function (connectionInfo) {
debug('connect')
debug(connectionInfo)
var self = this
if (!this.isServer) {
this.serverPublicKey = nacl.util.decodeBase64(publicKey)
this.serverPublicKey = nacl.util.decodeBase64(connectionInfo.boxId)
}

@@ -184,3 +185,4 @@ if (this.stream.isConnected()) {

this.stream.once('connect', function () {
self.connect(publicKey, connectionInfo)
debug('underlying stream connected')
self.connect(connectionInfo)
})

@@ -187,0 +189,0 @@ this.stream.connect(connectionInfo)

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