Socket
Socket
Sign inDemoInstall

serve

Package Overview
Dependencies
Maintainers
73
Versions
152
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 11.3.2 to 12.0.0

11

bin/serve.js

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

-p Specify custom port
-d, --debug Show debugging information

@@ -87,3 +89,3 @@

-C, --cors Enable CORS, sets \`Access-Control-Allow-Origin\` to \`*\`
-C, --cors Enable CORS, sets \`Access-Control-Allow-Origin\` to \`*\`

@@ -102,2 +104,4 @@ -n, --no-clipboard Do not copy the local address to the clipboard

--no-port-switching Do not open a port other than the one specified when it\'s taken.
{bold ENDPOINTS}

@@ -210,3 +214,3 @@

server.on('error', (err) => {
if (err.code === 'EADDRINUSE' && endpoint.length === 1 && !isNaN(endpoint[0])) {
if (err.code === 'EADDRINUSE' && endpoint.length === 1 && !isNaN(endpoint[0]) && args['--no-port-switching'] !== true) {
startEndpoint([0], config, args, endpoint[0]);

@@ -234,3 +238,3 @@ return;

localAddress = `${httpMode}://${address}:${details.port}`;
networkAddress = `${httpMode}://${ip}:${details.port}`;
networkAddress = networkAddress ? `${httpMode}://${ip}:${details.port}` : null;
}

@@ -380,2 +384,3 @@

'--cors': Boolean,
'--no-port-switching': Boolean,
'--ssl-cert': String,

@@ -382,0 +387,0 @@ '--ssl-key': String,

{
"name": "serve",
"version": "11.3.2",
"version": "12.0.0",
"description": "Static file serving and directory listing",

@@ -13,3 +13,3 @@ "scripts": {

],
"repository": "zeit/serve",
"repository": "vercel/serve",
"bin": {

@@ -41,7 +41,7 @@ "serve": "./bin/serve.js"

"@zeit/schemas": "2.6.0",
"ajv": "6.5.3",
"ajv": "6.12.6",
"arg": "2.0.0",
"boxen": "1.3.0",
"chalk": "2.4.1",
"clipboardy": "1.2.3",
"clipboardy": "2.3.0",
"compression": "1.7.3",

@@ -48,0 +48,0 @@ "serve-handler": "6.1.3",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc