Socket
Socket
Sign inDemoInstall

send

Package Overview
Dependencies
5
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

1

lib/send.js

@@ -322,2 +322,3 @@

if (stat.isDirectory()) return self.redirect(self.path);
self.emit('file', path, stat);
self.send(path, stat);

@@ -324,0 +325,0 @@ });

10

package.json
{
"name": "send",
"version": "0.1.0",
"version": "0.1.1",
"description": "Better streaming static file server with Range and conditional-GET support",

@@ -9,3 +9,3 @@ "keywords": ["static", "file", "server"],

"debug": "*",
"mime": "1.2.6",
"mime": "~1.2.9",
"fresh": "0.1.0",

@@ -23,3 +23,7 @@ "range-parser": "0.0.4"

},
"repository" :
{ "type" : "git"
, "url" : "git://github.com/visionmedia/send.git"
},
"main": "index"
}
}

@@ -1,2 +0,1 @@

# send

@@ -21,3 +20,3 @@

send(req, req.url).pipe(res);
});
}).listen(3000);
```

@@ -30,2 +29,3 @@

var send = require('send');
var url = require('url');

@@ -53,3 +53,3 @@ var app = http.createServer(function(req, res){

.pipe(res);
});
}).listen(3000);
```

@@ -63,2 +63,3 @@

- `directory` a directory was requested
- `file` a file was requested `(path, stat)`
- `stream` file streaming has started `(stream)`

@@ -80,2 +81,6 @@ - `end` streaming has completed

### .hidden(bool)
Enable or disable transfer of hidden files, defaults to false.
## Error-handling

@@ -128,2 +133,2 @@

TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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