Socket
Socket
Sign inDemoInstall

serve-static

Package Overview
Dependencies
19
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.14.1 to 1.14.2

8

HISTORY.md

@@ -0,1 +1,9 @@

1.14.2 / 2021-12-15
===================
* deps: send@0.17.2
- deps: http-errors@1.8.1
- deps: ms@2.1.3
- pref: ignore empty http tokens
1.14.1 / 2019-05-10

@@ -2,0 +10,0 @@ ===================

32

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

@@ -12,16 +12,16 @@ "license": "MIT",

"parseurl": "~1.3.3",
"send": "0.17.1"
"send": "0.17.2"
},
"devDependencies": {
"eslint": "5.16.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.17.2",
"eslint-plugin-markdown": "1.0.0",
"eslint-plugin-node": "8.0.1",
"eslint-plugin-promise": "4.1.1",
"eslint-plugin-standard": "4.0.0",
"istanbul": "0.4.5",
"mocha": "6.1.4",
"safe-buffer": "5.1.2",
"supertest": "4.0.2"
"eslint": "7.32.0",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-markdown": "2.2.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.2.0",
"eslint-plugin-standard": "4.1.0",
"mocha": "9.1.3",
"nyc": "15.1.0",
"safe-buffer": "5.2.1",
"supertest": "6.1.6"
},

@@ -37,8 +37,8 @@ "files": [

"scripts": {
"lint": "eslint --plugin markdown --ext js,md .",
"lint": "eslint .",
"test": "mocha --reporter spec --bail --check-leaks test/",
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
"test-cov": "nyc --reporter=html --reporter=text npm test",
"version": "node scripts/version-history.js && git add HISTORY.md"
}
}

@@ -5,3 +5,3 @@ # serve-static

[![NPM Downloads][npm-downloads-image]][npm-url]
[![Linux Build][travis-image]][travis-url]
[![Linux Build][github-actions-ci-image]][github-actions-ci-url]
[![Windows Build][appveyor-image]][appveyor-url]

@@ -22,4 +22,2 @@ [![Test Coverage][coveralls-image]][coveralls-url]

<!-- eslint-disable no-unused-vars -->
```js

@@ -146,3 +144,3 @@ var serveStatic = require('serve-static')

// Serve up public/ftp folder
var serve = serveStatic('public/ftp', { 'index': ['index.html', 'index.htm'] })
var serve = serveStatic('public/ftp', { index: ['index.html', 'index.htm'] })

@@ -168,4 +166,4 @@ // Create server

var serve = serveStatic('public/ftp', {
'index': false,
'setHeaders': setHeaders
index: false,
setHeaders: setHeaders
})

@@ -199,3 +197,3 @@

app.use(serveStatic('public/ftp', { 'index': ['default.html', 'default.htm'] }))
app.use(serveStatic('public/ftp', { index: ['default.html', 'default.htm'] }))
app.listen(3000)

@@ -207,4 +205,4 @@ ```

This example shows a simple way to search through multiple directories.
Files are look for in `public-optimized/` first, then `public/` second as
a fallback.
Files are searched for in `public-optimized/` first, then `public/` second
as a fallback.

@@ -259,2 +257,4 @@ ```js

[coveralls-url]: https://coveralls.io/r/expressjs/serve-static?branch=master
[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/serve-static/master?label=linux
[github-actions-ci-url]: https://github.com/expressjs/serve-static/actions?query=workflow%3Aci
[node-image]: https://badgen.net/npm/node/serve-static

@@ -265,3 +265,1 @@ [node-url]: https://nodejs.org/en/download/

[npm-version-image]: https://badgen.net/npm/v/serve-static
[travis-image]: https://badgen.net/travis/expressjs/serve-static/master?label=linux
[travis-url]: https://travis-ci.org/expressjs/serve-static
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