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

serve

Package Overview
Dependencies
Maintainers
4
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve - npm Package Compare versions

Comparing version 8.1.4 to 8.2.0

14

bin/serve.js

@@ -75,2 +75,4 @@ #!/usr/bin/env node

-c, --config Specify custom path to \`serve.json\`
{bold ENDPOINTS}

@@ -168,3 +170,3 @@

const loadConfig = async (cwd, entry) => {
const loadConfig = async (cwd, entry, args) => {
const files = [

@@ -176,2 +178,6 @@ 'serve.json',

if (args['--config']) {
files.unshift(args['--config']);
}
const config = {};

@@ -256,7 +262,9 @@

'--debug': Boolean,
'--config': String,
'-h': '--help',
'-v': '--version',
'-l': '--listen',
'-s': '--single',
'-d': '--debug',
'-s': '--single',
'-c': '--config',
// This is deprecated and only for backwards-compatibility.

@@ -295,3 +303,3 @@ '-p': '--listen'

const config = await loadConfig(cwd, entry);
const config = await loadConfig(cwd, entry, args);

@@ -298,0 +306,0 @@ if (args['--single']) {

{
"name": "serve",
"version": "8.1.4",
"version": "8.2.0",
"description": "Static file serving and directory listing",

@@ -43,5 +43,5 @@ "scripts": {

"chalk": "2.4.1",
"serve-handler": "3.1.2",
"serve-handler": "3.2.0",
"update-check": "1.5.2"
}
}
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