Comparing version 0.4.3 to 0.4.4
11
index.js
@@ -7,2 +7,3 @@ var http = require('http'); | ||
var noop = function() {}; | ||
var bufferify = function(param) { | ||
@@ -131,4 +132,10 @@ if (Buffer.isBuffer(param)) { | ||
}; | ||
that.listen = function() { | ||
server.listen.apply(server, arguments); | ||
that.listen = function(port, callback) { | ||
if (typeof port === 'function') { | ||
callback = port; | ||
port = undefined; | ||
} | ||
port = port || (options.key ? 443 : 80); | ||
server.listen(port, callback || noop); | ||
}; | ||
@@ -135,0 +142,0 @@ |
{ | ||
"name":"router", | ||
"version":"0.4.3", | ||
"version":"0.4.4", | ||
"description":"A lean and mean web router", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
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
7384
163
2