Socket
Socket
Sign inDemoInstall

serve

Package Overview
Dependencies
Maintainers
54
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.2.0 to 11.3.0

5

bin/serve.js

@@ -187,2 +187,5 @@ #!/usr/bin/env node

const serverHandler = async (request, response) => {
if (args['--cors']) {
response.setHeader('Access-Control-Allow-Origin', '*');
}
if (compress) {

@@ -370,2 +373,3 @@ await compressionHandler(request, response);

'--symlinks': Boolean,
'--cors': Boolean,
'--ssl-cert': String,

@@ -382,2 +386,3 @@ '--ssl-key': String,

'-S': '--symlinks',
'-C': '--cors',
// This is deprecated and only for backwards-compatibility.

@@ -384,0 +389,0 @@ '-p': '--listen'

2

package.json
{
"name": "serve",
"version": "11.2.0",
"version": "11.3.0",
"description": "Static file serving and directory listing",

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

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