rn-electrum-client
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ 'use strict'; | ||
const errorHandler = (e) => resolve({ error: true, data: e }) | ||
conn.connect(port, host, () => { | ||
conn.connect({port, host}, () => { | ||
conn.removeListener('error', errorHandler); | ||
@@ -9,0 +9,0 @@ resolve({ error: false, data: { port, host } }) |
'use strict' | ||
const TlsSocketWrapper = require('./TlsSocketWrapper.js'); | ||
const TIMEOUT = 5000 | ||
@@ -11,4 +10,5 @@ | ||
case 'ssl': | ||
if (!self.tls) throw new Error('tls package could not be loaded'); | ||
return new TlsSocketWrapper({ tls: self.tls, verbose: false }); | ||
if (!self.tls) throw new Error('TLS package could not be loaded'); | ||
const socket = new self.net.Socket(); | ||
return new self.tls.TLSSocket(socket, { rejectUnauthorized: false }); | ||
} | ||
@@ -15,0 +15,0 @@ throw new Error('unknown protocol') |
{ | ||
"name": "rn-electrum-client", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Electrum protocol client for React Native & Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
66539
-6.88%15
-21.05%1696
-6.5%3
50%