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

serve

Package Overview
Dependencies
Maintainers
2
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 3.4.1 to 4.0.0

8

bin/serve.js

@@ -40,3 +40,4 @@ #!/usr/bin/env node

.option('auth', 'Serve behind basic auth')
.option(['o', 'cors'], 'Setup * CORS headers to allow requests from any origin', false)
.option('cors', 'Setup * CORS headers to allow requests from any origin', false)
.option('silent', `Don't log anything to the console`)

@@ -46,2 +47,7 @@ const flags = args.parse(process.argv)

// Don't log anything to the console if silent mode is enabled
if (flags.silent) {
console.log = () => {}
}
process.env.ASSET_DIR = '/' + Math.random().toString(36).substr(2, 10)

@@ -48,0 +54,0 @@

6

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

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

"detect-port": "1.1.0",
"filesize": "3.5.4",
"filesize": "3.5.5",
"fs-promise": "2.0.0",

@@ -69,5 +69,5 @@ "handlebars": "4.0.6",

"path-type": "2.0.0",
"send": "0.14.2",
"send": "0.15.0",
"update-notifier": "2.1.0"
}
}
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