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

create-servers

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-servers - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

28

index.js

@@ -80,8 +80,14 @@ /*

var server = http.createServer(options.http.handler || handler),
port = options.http.port || 80;
port = options.http.port || 80,
args,
ip;
args = [server, port];
if (ip === options.http.ip) {
args.push(ip);
}
log('http | try listen ' + port);
connected(server, port, function (err) {
onListen('http', err, this);
});
args.push(function listener(err) { onListen('http', err, this); });
connected.apply(null, args);
}

@@ -101,3 +107,5 @@

ssl = options.https,
server;
server,
args,
ip;

@@ -119,5 +127,9 @@ if (ssl.ca && !Array.isArray(ssl.ca)) {

connected(server, port, function (err) {
onListen('https', err, this);
});
args = [server, port];
if (ip === options.https.ip) {
args.push(ip);
}
args.push(function listener(err) { onListen('https', err, this); });
connected.apply(null, args);
}

@@ -124,0 +136,0 @@

{
"name": "create-servers",
"version": "1.2.1",
"version": "1.3.0",
"description": "Create an http AND/OR an https server and call the same request handler.",

@@ -5,0 +5,0 @@ "main": "index.js",

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