Socket
Socket
Sign inDemoInstall

connect-static-file

Package Overview
Dependencies
17
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "connect-static-file",
"version": "1.0.2",
"version": "1.0.3",
"description": "connect and express middleware to serve a single static file",

@@ -5,0 +5,0 @@ "main": "lib/connect-static-file.js",

@@ -14,3 +14,3 @@ connect-static-file

var options = {};
app.use('/foo.txt', staticFile(path), options);
app.use('/foo.txt', staticFile(path, options));
```

@@ -54,3 +54,3 @@

```javascript
app.use('/bundle.js', staticFile('generated/bundle.js.gz'), {encoded: 'gzip'});
app.use('/bundle.js', staticFile('generated/bundle.js.gz', {encoded: 'gzip'}));
// If the file is missing, or if the browser does not support gzip, use this one instead:

@@ -57,0 +57,0 @@ app.use('/bundle.js', staticFile('generated/bundle.js'));

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc