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

create-servers

Package Overview
Dependencies
Maintainers
6
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 2.6.0 to 2.6.1

10

index.js

@@ -271,4 +271,4 @@ 'use strict';

// Prepare secure context params ahead-of-time
var hostTlsOpts = sniHosts.map(function (host) {
// Prepare secure contexts ahead-of-time
var hostSecureContexts = sniHosts.map(function (host) {
var hostOpts = sslOpts.sni[host];

@@ -278,3 +278,3 @@

return assign({}, sslOpts, hostOpts, {
return tls.createSecureContext(assign({}, sslOpts, hostOpts, {
key: normalizePEMContent(root, hostOpts.key),

@@ -287,3 +287,3 @@ cert: normalizeCertContent(root, hostOpts.cert),

secureOptions: secureOptions
});
}));
});

@@ -300,4 +300,4 @@

cb(null, tls.createSecureContext(hostTlsOpts[matchingHostIdx]));
cb(null, hostSecureContexts[matchingHostIdx]);
};
}
{
"name": "create-servers",
"version": "2.6.0",
"version": "2.6.1",
"description": "Create an http AND/OR an https server and call the same request handler.",

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

@@ -110,4 +110,4 @@ /*

root: path.join(__dirname, 'fixtures'),
cert: 'agent2-cert.pem',
key: 'agent2-key.pem'
key: 'example-org-key.pem',
cert: 'example-org-cert.pem'
},

@@ -132,4 +132,4 @@ handler: fend

root: path.join(__dirname, 'fixtures'),
cert: 'agent2-cert.pem',
key: 'agent2-key.pem'
key: 'example-org-key.pem',
cert: 'example-org-cert.pem'
},

@@ -153,4 +153,4 @@ handler: fend

root: '/',
cert: path.resolve(__dirname, 'fixtures', 'agent2-cert.pem'),
key: path.resolve(__dirname, 'fixtures', 'agent2-key.pem')
cert: path.resolve(__dirname, 'fixtures', 'example-org-cert.pem'),
key: path.resolve(__dirname, 'fixtures', 'example-org-key.pem')
},

@@ -174,4 +174,4 @@ handler: fend

root: path.join(__dirname, 'fixtures'),
cert: 'agent2-cert.pem',
key: 'agent2-key.pem'
key: 'example-org-key.pem',
cert: 'example-org-cert.pem'
},

@@ -196,4 +196,4 @@ handler: fend

root: path.join(__dirname, 'fixtures'),
cert: 'agent2-cert.pem',
key: 'agent2-key.pem'
key: 'example-org-key.pem',
cert: 'example-org-cert.pem'
},

@@ -226,4 +226,4 @@ handler: fend

root: path.join(__dirname, 'fixtures'),
cert: 'agent2-cert.pem',
key: 'agent2-key.pem'
key: 'example-org-key.pem',
cert: 'example-org-cert.pem'
},

@@ -281,4 +281,4 @@ }, function (err, servers) {

root: root,
cert: fs.readFileSync(path.resolve(root, 'agent2-cert.pem')),
key: fs.readFileSync(path.resolve(root, 'agent2-key.pem'))
cert: fs.readFileSync(path.resolve(root, 'example-org-cert.pem')),
key: fs.readFileSync(path.resolve(root, 'example-org-key.pem'))
},

@@ -302,4 +302,4 @@ handler: fend

root: root,
cert: [fs.readFileSync(path.resolve(root, 'agent2-cert.pem'))],
key: fs.readFileSync(path.resolve(root, 'agent2-key.pem'))
key: 'example-org-key.pem',
cert: 'example-org-cert.pem'
},

@@ -348,6 +348,6 @@ handler: fend

https: {
port: 3456,
root: path.join(__dirname, 'fixtures'),
cert: 'agent2-cert.pem',
key: 'agent2-key.pem',
port: 3456,
root: path.join(__dirname, 'fixtures'),
key: 'example-org-key.pem',
cert: 'example-org-cert.pem',
requestCert: true

@@ -354,0 +354,0 @@ },

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