Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

luvi

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luvi - npm Package Compare versions

Comparing version 3.2.7 to 3.2.8

19

index.js

@@ -13,12 +13,7 @@ #!/usr/bin/env node

const version = `♡ luvi ${pkg.version}`
const each = require('zeelib/lib/each')
const mix = require('zeelib/lib/mix')
const clrs = require('zeelib/lib/colorize')
const filter = require('zeelib/lib/filter')
const isArrayLike = require('zeelib/lib/is-array-like')
const exit = require('zeelib/lib/exit')
const clrs = require('zeelib/lib/colorize').default
let servers = isArrayLike(config)
let servers = Array.isArray(config)
? config
: [ config ]
: [config]

@@ -29,3 +24,3 @@ const nope = () => {

`)
exit(1)
process.exit(1)
}

@@ -43,3 +38,3 @@

if (argv._.length) {
servers = filter(servers, (item) =>
servers = servers.filter((item) =>
item && argv._.indexOf(item.name) >= 0

@@ -49,4 +44,4 @@ )

each(servers, (server) => {
luvi(mix(server, argv))
servers.forEach((server) => {
luvi(Object.assign({}, server, argv))
})

@@ -53,0 +48,0 @@ }

@@ -5,6 +5,5 @@ const http = require('http')

const clrs = require('zeelib/lib/colorize')
const mix = require('zeelib/lib/mix')
const open = require('zeelib/lib/open')
const findPort = require('zeelib/lib/find-port')
const clrs = require('zeelib/lib/colorize').default
const open = require('zeelib/lib/open').default
const findPort = require('zeelib/lib/find-port').default

@@ -24,3 +23,3 @@ const notFound = require('./not-found')

const luvi = (options) => {
const config = mix(defaults, options)
const config = Object.assign({}, defaults, options)
const app = connect()

@@ -30,3 +29,3 @@ const shouldOpen = !options.noOpen

app.use(serveStatic(config.root, {
index: [ 'index.html', 'index.htm', 'index.xhtml' ]
index: ['index.html', 'index.htm', 'index.xhtml']
}))

@@ -33,0 +32,0 @@

{
"name": "luvi",
"description": "Dev server with simple config and API.",
"version": "3.2.7",
"version": "3.2.8",
"author": "Zac Anger <zac@zacanger.com> (http://zacanger.com)",

@@ -37,7 +37,7 @@ "license": "MIT",

"serve-static": "1.14.1",
"zeelib": "8.6.0"
"zeelib": "10.0.2"
},
"devDependencies": {
"sortpack": "1.2.0",
"standard": "12.0.1"
"sortpack": "1.2.1",
"standard": "13.1.0"
},

@@ -44,0 +44,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc