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

yans

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yans - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

17

index.js

@@ -66,8 +66,17 @@ /*

_self.start = function() {
var port = options["port"] || 80;
_self.app.listen(port);
var port = options["port"] || (!options["ssl"] ? 80 : 443);
if (options["ssl"]) {
var https = require("https");
var fs = require("fs");
var config = {
key: fs.readFileSync(options["sslKeyFile"]),
cert: fs.readFileSync(options["sslCertFile"])
};
https.createServer(config, _self.app).listen(port);
} else {
_self.app.listen(port);
}
return port;
// return 0;
}
}
}
{
"name": "yans",
"version": "2.0.0",
"version": "2.1.0",
"description": "Yet Another Node Server",

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

Sorry, the diff of this file is not supported yet

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