Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssb-client

Package Overview
Dependencies
Maintainers
11
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-client - npm Package Compare versions

Comparing version 4.5.3 to 4.5.5

7

index.js

@@ -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 @@

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