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

base12

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base12 - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

28

lib/app.js

@@ -123,5 +123,29 @@ /**

function start_app() {
this.server = this.listen(this.config.port);
console.log('[ ' + this.constants.name + ' ] worker listening on port ' + this.config.port);
var port;
if (this.config.https) {
port = this.config.https.port;
// setup main https server
this.server = require('https').createServer({
key: fs.readFileSync(this.dir+this.config.https.key),
cert: fs.readFileSync(this.dir+this.config.https.cert)
}, this).listen(port);
// setup forwarding http server if specified
if (this.config.http) {
require('http').createServer(function (req, res) {
res.writeHead(302, {'Location': 'https://'+req.headers.host+req.url});
res.end();
}).listen(this.config.http.port);
}
}
else {
port = this.config.port || this.config.http.port;
this.server = this.listen(this.config.http.port);
}
console.log('[ ' + this.constants.name + ' ] worker listening on port ' + port);
this.emit('listen', this.server);
}

2

package.json
{
"name":"base12",
"description":"12factor.net app platform for node.js, built on express 3",
"version":"0.2.8",
"version":"0.2.9",
"author":"Hunter Loftis <hunter@hunterloftis.com>",

@@ -6,0 +6,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