Comparing version 0.6.0 to 0.6.1
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61228
15
1475
+ Addedlodash@4.17.21(transitive)
+ Addedtweetnacl@0.14.5(transitive)
- Removedlodash@3.10.1(transitive)
- Removedtweetnacl@0.13.3(transitive)
Updatedlodash@^4.9.0
Updatedtweetnacl@^0.14.3