ssb-client
Advanced tools
Comparing version 4.5.3 to 4.5.5
@@ -29,5 +29,2 @@ 'use strict' | ||
//load cap from config instead! | ||
var cap = '1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=' | ||
var createConfig = require('ssb-config/inject') | ||
@@ -55,3 +52,3 @@ | ||
var appKey = new Buffer((opts.caps && opts.caps.shs) || cap, 'base64') | ||
var appKey = new Buffer(config.caps.shs, 'base64') | ||
@@ -84,3 +81,3 @@ var remote | ||
keys: toSodiumKeys(keys), | ||
appKey: opts.appKey || appKey, | ||
appKey: appKey, | ||
@@ -87,0 +84,0 @@ //no client auth. we can't receive connections anyway. |
{ | ||
"name": "ssb-client", | ||
"version": "4.5.3", | ||
"version": "4.5.5", | ||
"description": "scuttlebot client", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"multiserver": "^1.7.0", | ||
"muxrpc": "^6.3.3", | ||
"muxrpc": "^7.0.0", | ||
"pull-hash": "^1.0.0", | ||
@@ -20,0 +20,0 @@ "pull-stream": "^3.6.0", |
@@ -8,2 +8,4 @@ var tape = require('tape') | ||
var shsCap = 'XMHDXXFGBJvloCk8fOinzPkKMRqyA2/eH+3VyUr6lig=' | ||
var keys = ssbKeys.generate() | ||
@@ -15,3 +17,4 @@ var server = ssbServer({ | ||
master: keys.id, | ||
keys: keys | ||
keys: keys, | ||
appKey: shsCap | ||
}) | ||
@@ -21,3 +24,3 @@ | ||
ssbClient(keys, { port: 45451, manifest: server.manifest() }, function (err, client) { | ||
ssbClient(keys, { port: 45451, manifest: server.manifest(), caps: { shs: shsCap }}, function (err, client) { | ||
if (err) throw err | ||
@@ -24,0 +27,0 @@ |
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
9295
+ Addedlooper@4.0.0(transitive)
+ Addedmuxrpc@7.0.1(transitive)
+ Addedpull-looper@1.0.0(transitive)
+ Addedpush-mux@1.0.7(transitive)
+ Addedpush-stream@10.1.211.2.0(transitive)
+ Addedpush-stream-to-pull-stream@1.0.5(transitive)
- Removeddebug@4.3.7(transitive)
- Removedms@2.1.3(transitive)
- Removedmuxrpc@6.7.3(transitive)
- Removedpacket-stream@2.0.6(transitive)
Updatedmuxrpc@^7.0.0