Socket
Socket
Sign inDemoInstall

serve-static

Package Overview
Dependencies
10
Maintainers
6
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

6

History.md

@@ -0,1 +1,7 @@

1.3.1 / 2014-07-09
==================
* deps: parseurl@~1.1.3
- faster parsing of href-only URLs
1.3.0 / 2014-06-28

@@ -2,0 +8,0 @@ ==================

24

index.js

@@ -20,26 +20,2 @@ /*!

/**
* Static:
*
* Static file server with the given `root` path.
*
* Examples:
*
* var oneDay = 86400000;
* var serveStatic = require('serve-static');
*
* connect()
* .use(serveStatic(__dirname + '/public'))
*
* connect()
* .use(serveStatic(__dirname + '/public', { maxAge: oneDay }))
*
* Options:
*
* - `maxAge` Browser cache maxAge in milliseconds. defaults to 0
* - `hidden` Allow transfer of hidden files. defaults to false
* - `redirect` Redirect to trailing "/" when the pathname is a dir. defaults to true
* - `index` Default file name, defaults to 'index.html'
*
* Further options are forwarded on to `send`.
*
* @param {String} root

@@ -46,0 +22,0 @@ * @param {Object} options

6

package.json
{
"name": "serve-static",
"description": "Serve static files",
"version": "1.3.0",
"version": "1.3.1",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",

@@ -10,7 +10,7 @@ "license": "MIT",

"escape-html": "1.0.1",
"parseurl": "1.0.1",
"parseurl": "~1.1.3",
"send": "0.5.0"
},
"devDependencies": {
"istanbul": "0.2.13",
"istanbul": "0.3.0",
"mocha": "~1.20.0",

@@ -17,0 +17,0 @@ "should": "~4.0.0",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc