Socket
Socket
Sign inDemoInstall

serve-static

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve-static - npm Package Compare versions

Comparing version 1.10.3 to 1.11.0

17

HISTORY.md

@@ -0,1 +1,18 @@

1.11.0 / 2016-06-07
===================
* Use status code 301 for redirects
* deps: send@0.14.0
- Add `acceptRanges` option
- Add `cacheControl` option
- Attempt to combine multiple ranges into single range
- Correctly inherit from `Stream` class
- Fix `Content-Range` header in 416 responses when using `start`/`end` options
- Fix `Content-Range` header missing from default 416 responses
- Ignore non-byte `Range` headers
- deps: http-errors@~1.5.0
- deps: range-parser@~1.2.0
- deps: statuses@~1.3.0
- perf: remove argument reassignment
1.10.3 / 2016-05-30

@@ -2,0 +19,0 @@ ===================

2

index.js

@@ -180,3 +180,3 @@ /*!

// send redirect response
res.statusCode = 303
res.statusCode = 301
res.setHeader('Content-Type', 'text/html; charset=UTF-8')

@@ -183,0 +183,0 @@ res.setHeader('Content-Length', Buffer.byteLength(msg))

{
"name": "serve-static",
"description": "Serve static files",
"version": "1.10.3",
"version": "1.11.0",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",

@@ -11,3 +11,3 @@ "license": "MIT",

"parseurl": "~1.3.1",
"send": "0.13.2"
"send": "0.14.0"
},

@@ -17,3 +17,3 @@ "devDependencies": {

"eslint-config-standard": "5.3.1",
"eslint-plugin-promise": "1.3.1",
"eslint-plugin-promise": "1.3.2",
"eslint-plugin-standard": "1.3.2",

@@ -20,0 +20,0 @@ "istanbul": "0.4.3",

@@ -32,2 +32,13 @@ # serve-static

##### acceptRanges
Enable or disable accepting ranged requests, defaults to true.
Disabling this will not send `Accept-Ranges` and ignore the contents
of the `Range` request header.
##### cacheControl
Enable or disable setting `Cache-Control` response header, defaults to
true. Disabling this will ignore the `maxAge` option.
##### dotfiles

@@ -34,0 +45,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