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

serve

Package Overview
Dependencies
Maintainers
52
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 11.0.2 to 11.1.0

12

bin/serve.js

@@ -85,3 +85,7 @@ #!/usr/bin/env node

-n, --no-clipboard Do not copy the local address to the clipboard
-u, --no-compression Do not compress files
--no-etag Send \`Last-Modified\` header instead of \`ETag\`
-S, --symlinks Resolve symlinks instead of showing 404 errors

@@ -264,3 +268,3 @@

for (const file of files) {
const location = path.join(entry, file);
const location = path.resolve(entry, file);
let content = null;

@@ -316,3 +320,3 @@

const {public} = config;
config.public = path.relative(cwd, (public ? path.join(entry, public) : entry));
config.public = path.relative(cwd, (public ? path.resolve(entry, public) : entry));
}

@@ -333,2 +337,5 @@

// "ETag" headers are enabled by default unless `--no-etag` is provided
config.etag = !args['--no-etag'];
return config;

@@ -350,2 +357,3 @@ };

'--no-compression': Boolean,
'--no-etag': Boolean,
'--symlinks': Boolean,

@@ -352,0 +360,0 @@ '-h': '--help',

4

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

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

"compression": "1.7.3",
"serve-handler": "6.0.2",
"serve-handler": "6.1.0",
"update-check": "1.5.2"
}
}

@@ -41,3 +41,3 @@ ![](https://assets.zeit.co/image/upload/v1527770721/repositories/serve/serve-repo-banner.png)

To customize `serve`'s behavior, create a `serve.json` file and insert any of [these properties](https://github.com/zeit/serve-handler#options).
To customize `serve`'s behavior, create a `serve.json` file in the public folder and insert any of [these properties](https://github.com/zeit/serve-handler#options).

@@ -44,0 +44,0 @@ ## API

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