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

ssb-invite

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-invite - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "ssb-invite",
"description": "",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/dominictarr/ssb-invite",

@@ -6,0 +6,0 @@ "repository": {

@@ -111,5 +111,9 @@ //WARNING: this test currently only passes

//it's rare, but some times, someone's home computer has a public address.
//this makes the tests fail unless we get the address the same way as invite code.
var expected = alice.address('public') || alice.address('local') || alice.address('device')
t.deepEqual({
type: 'pub',
address: ref.parseAddress(alice.address('local').split(';').shift()),
address: ref.parseAddress(expected.split(';').shift()),
}, ary[0].value.content)

@@ -172,6 +176,15 @@

var inviteV6
= invite.replace(/localhost|([0-9.]*)/, '::1')
console.log(inviteV6, invite)
// var parts = invite.split(':')
// parts[0].split(':').pop()
// console.log(inviteV6, invite)
var parts = invite.split('~')
var addr = ref.parseAddress(parts[0])
addr.host = '::1'
var inviteV6 = addr.host + ':'+ addr.port + ':' + addr.key + '~' + parts[1]
bob.invite.accept(inviteV6, function (err, msg) {

@@ -316,1 +329,2 @@ if(err) throw err

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