Comparing version 0.9.1 to 0.9.2
17
index.js
@@ -135,3 +135,2 @@ var net = require('net'); | ||
if (params.port) { | ||
params.host = params.host || '127.0.0.1'; | ||
if (params.key) { | ||
@@ -147,6 +146,14 @@ var options = { | ||
server.on('error', this.emit.bind(this, 'error')); | ||
server.listen( | ||
params.port, params.host, | ||
this.emit.bind(this, 'ready') | ||
); | ||
if (params.host) { | ||
server.listen( | ||
params.port, params.host, | ||
this.emit.bind(this, 'ready') | ||
); | ||
} | ||
else { | ||
server.listen( | ||
params.port, | ||
this.emit.bind(this, 'ready') | ||
); | ||
} | ||
} | ||
@@ -153,0 +160,0 @@ else { |
{ | ||
"name" : "dnode", | ||
"version" : "0.9.1", | ||
"version" : "0.9.2", | ||
"description" : "freestyle RPC", | ||
@@ -5,0 +5,0 @@ "main" : "./index.js", |
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
144209
1715
9