gracefultools
Advanced tools
Comparing version 2.1.1 to 2.1.2-alpha.0
@@ -42,6 +42,11 @@ const debug = require('debug')('gracefultools'); | ||
const start = (app, options, handler) => { | ||
const { host, port: desiredPort, timeout } = options; | ||
const { timeout, port: desiredPort } = options; | ||
const port = desiredPort || 3000; | ||
const message = `Server listening on http://${host || 'localhost'}:${port}`; | ||
const protocol = options.secure ? 'https' : 'http'; | ||
const host = options.host || 'localhost'; | ||
const address = `${protocol}://${host}:${port}`; | ||
const message = `Server listening on ${address}`; | ||
if (typeof timeout === 'number') processTimeout = timeout; | ||
@@ -48,0 +53,0 @@ onClose = handler; |
@@ -9,3 +9,3 @@ { | ||
"bugs": "https://github.com/good-hood-gmbh/gracefultools/issues", | ||
"version": "2.1.1", | ||
"version": "2.1.2-alpha.0", | ||
"keywords": [ | ||
@@ -12,0 +12,0 @@ "express", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
158
8180
2
1