Socket
Socket
Sign inDemoInstall

send

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

send - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

5

History.md

@@ -0,1 +1,6 @@

0.8.1 / 2014-08-05
==================
* Fix `extensions` behavior when file already has extension
0.8.0 / 2014-08-05

@@ -2,0 +7,0 @@ ==================

5

lib/send.js

@@ -26,2 +26,3 @@

*/
var extname = path.extname
var maxMaxAge = 60 * 60 * 24 * 365 * 1000; // 1 year

@@ -570,3 +571,5 @@ var resolve = path.resolve

fs.stat(path, function onstat(err, stat) {
if (err && err.code === 'ENOENT' && path[path.length - 1] !== sep) {
if (err && err.code === 'ENOENT'
&& !extname(path)
&& path[path.length - 1] !== sep) {
// not found, check extensions

@@ -573,0 +576,0 @@ return next(err)

2

package.json
{
"name": "send",
"description": "Better streaming static file server with Range and conditional-GET support",
"version": "0.8.0",
"version": "0.8.1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -92,2 +92,3 @@ # send

example value that will serve extension-less HTML files: `['html', 'htm']`.
This is skipped if the requested file already has an extension.

@@ -94,0 +95,0 @@ #### index

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