@koa-boot/server
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -17,2 +17,8 @@ "use strict"; | ||
function log(type, ...messages) { | ||
messages = messages.map((message) => { | ||
if (typeof message === "function") { | ||
return chalk_1.cyan(message.name); | ||
} | ||
return message; | ||
}); | ||
console.log(`${chalk_1.greenBright("[Koa-Boot]")} ${type} ${chalk_1.gray(`(${getFormatedDate()})`)}`, ...messages); | ||
@@ -19,0 +25,0 @@ } |
{ | ||
"name": "@koa-boot/server", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A SpringBoot-like lightweight web framework based on Koa.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
26671
386