ssb-invite
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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 | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21728
522
0