gatos
Advanced tools
Comparing version 0.3.22 to 0.3.23
@@ -19,3 +19,3 @@ const { join } = require("path") | ||
const listen = (port = 8080, mongoUri = "mongodb://localhost:27017/gatos") => | ||
const listen = (port = 8080, mongoUri) => | ||
new Promise(async (resolve, reject) => { | ||
@@ -138,4 +138,7 @@ const server = http.createServer(async (request, response) => { | ||
if (clear) debug.clear() | ||
await connect(mongoUri) | ||
debug.log("\n\x1b[1m\x1b[32m\x1b[3m✓ Connected to MongoDB\x1b[0m") | ||
if (mongoUri) { | ||
await connect(mongoUri) | ||
debug.log("\n\x1b[1m\x1b[32m\x1b[3m✓ Connected to MongoDB\x1b[0m") | ||
} | ||
server.listen(port, () => { | ||
@@ -142,0 +145,0 @@ debug.log(`@ \x1b[4m\x1b[3mhttp://locahost:${port}\x1b[0m`) |
{ | ||
"license": "ISC", | ||
"version": "0.3.22", | ||
"version": "0.3.23", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "name": "gatos", |
634
28499