multiserver
Advanced tools
Comparing version 1.4.1 to 1.5.0
{ | ||
"name": "multiserver", | ||
"description": "", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"homepage": "https://github.com/dominictarr/multiserver", | ||
@@ -14,6 +14,6 @@ "repository": { | ||
"pull-ws": "^3.2.2", | ||
"secret-handshake": "^1.0.0", | ||
"secret-handshake": "^1.1.1", | ||
"separator-escape": "0.0.0", | ||
"stream-to-pull-stream": "~1.7.0", | ||
"socks": "1.1.9" | ||
"socks": "1.1.9", | ||
"stream-to-pull-stream": "^1.7.2" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
@@ -5,7 +5,8 @@ var SHS = require('secret-handshake') | ||
module.exports = function (opts) { | ||
var keys = SHS.toKeys(opts.keys || opts.seed) | ||
var server = SHS.createServer( | ||
opts.keys, opts.auth || opts.authenticate, opts.appKey, opts.timeout | ||
keys, opts.auth || opts.authenticate, opts.appKey, opts.timeout | ||
) | ||
var client = SHS.createClient( | ||
opts.keys, opts.appKey, opts.timeout | ||
keys, opts.appKey, opts.timeout | ||
) | ||
@@ -41,4 +42,5 @@ | ||
stringify: function () { | ||
return 'shs:'+opts.keys.publicKey.toString('base64') | ||
} | ||
return 'shs:'+keys.publicKey.toString('base64') | ||
}, | ||
publicKey: keys.publicKey | ||
} | ||
@@ -48,1 +50,3 @@ } | ||
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
26011
641
Updatedsecret-handshake@^1.1.1
Updatedstream-to-pull-stream@^1.7.2