@piigo/expresslib
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -11,3 +11,3 @@ import * as e from "express"; | ||
*/ | ||
function start(silent?: boolean): void; | ||
function start(callback?: Function, silent?: boolean): void; | ||
/** | ||
@@ -14,0 +14,0 @@ * Use one or more request handlers (similar to express.use) |
@@ -20,3 +20,3 @@ const http = require('http'); | ||
async function start(silent = false) { | ||
async function start(callback, silent = false) { | ||
try { | ||
@@ -41,2 +41,3 @@ | ||
if (!silent) console.log(`Listenning on ${process.env.appHost}:${process.env.appPort}`); | ||
callback(); | ||
}); | ||
@@ -43,0 +44,0 @@ |
{ | ||
"name": "@piigo/expresslib", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Library to manage express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
32589
745