Socket
Socket
Sign inDemoInstall

lite-server

Package Overview
Dependencies
645
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

20

lib/lite-server.js

@@ -13,14 +13,14 @@ var historyFallback = require('connect-history-api-fallback');

var argv = yargs.argv;
var src = getSource();
var options =
{
port: argv.port || 3000,
source: argv.source || defaultSource,
source: src,
files: argv.files ? argv.files : [
(argv.source || defaultSource) + '/**/*.html',
(argv.source || defaultSource) + '/**/*.css',
(argv.source || defaultSource) + '/**/*.js'
src + '/**/*.html',
src + '/**/*.css',
src + '/**/*.js'
],
baseDir: argv.baseDir || './',
fallback: argv.fallback || '/' + (argv.source || defaultSource) + '/index.html'
fallback: argv.fallback || '/' + src + '/index.html'
};

@@ -32,2 +32,10 @@

function getSource() {
var src = argv.source || defaultSource;
if (!src) {
return '.'
}
return src;
}
sync.init({

@@ -34,0 +42,0 @@ server: {

{
"name": "lite-server",
"version": "1.0.3",
"version": "1.1.0",
"description": "Lightweight development node server for serving a web app, providing a fallback for browser history API, loading in the browser, and injecting scripts on the fly.",

@@ -5,0 +5,0 @@ "main": "./lib/lite-server",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc