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

router

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

router - npm Package Compare versions

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 @@

2

package.json
{
"name":"router",
"version":"0.4.3",
"version":"0.4.4",
"description":"A lean and mean web router",

@@ -5,0 +5,0 @@ "contributors": [

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