Comparing version 5.2.1 to 5.2.2
@@ -7,2 +7,3 @@ #!/usr/bin/env node | ||
const readJSON = require('./lib/read-json') | ||
const clrs = require('./lib/colors') | ||
const pkg = readJSON(__dirname, 'package.json') | ||
@@ -14,3 +15,2 @@ const argv = minimist(process.argv.slice(2)) | ||
const version = `♡ luvi ${pkg.version}` | ||
const clrs = require('zeelib/lib/colorize').default | ||
@@ -17,0 +17,0 @@ let servers = Array.isArray(config) ? config : [config] |
@@ -5,7 +5,6 @@ const http = require('http') | ||
const serveStatic = require('serve-static') | ||
const open = require('open') | ||
const clrs = require('zeelib/lib/colorize').default | ||
const open = require('zeelib/lib/open').default | ||
const findPort = require('zeelib/lib/find-port').default | ||
const clrs = require('./colors') | ||
const findPort = require('./find-port') | ||
const markdown = require('./markdown') | ||
@@ -18,5 +17,5 @@ const notFound = require('./not-found') | ||
name: 'luvi', | ||
onListen (name, port, shouldOpen) { | ||
async onListen (name, port, shouldOpen) { | ||
console.log(clrs.magenta(`♡ ${name} is listening on ${port}`)) | ||
shouldOpen && open(`http://localhost:${port}`) | ||
shouldOpen && await open(`http://localhost:${port}`) | ||
} | ||
@@ -23,0 +22,0 @@ } |
{ | ||
"name": "luvi", | ||
"description": "Dev server with simple config and API.", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"author": "Zac Anger <zac@zacanger.com> (http://zacanger.com)", | ||
@@ -40,6 +40,6 @@ "funding": { | ||
"connect": "3.7.0", | ||
"marked": "4.1.0", | ||
"minimist": "1.2.6", | ||
"serve-static": "1.15.0", | ||
"zeelib": "11.2.0" | ||
"marked": "4.2.2", | ||
"minimist": "1.2.7", | ||
"open": "8.4.0", | ||
"serve-static": "1.15.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "devDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
19122
20
224
2
+ Addedopen@8.4.0
+ Addeddefine-lazy-prop@2.0.0(transitive)
+ Addedis-docker@2.2.1(transitive)
+ Addedis-wsl@2.2.0(transitive)
+ Addedmarked@4.2.2(transitive)
+ Addedminimist@1.2.7(transitive)
+ Addedopen@8.4.0(transitive)
- Removedzeelib@11.2.0
- Removedmarked@4.1.0(transitive)
- Removedminimist@1.2.6(transitive)
- Removedzeelib@11.2.0(transitive)
Updatedmarked@4.2.2
Updatedminimist@1.2.7