Comparing version 0.1.0 to 0.1.1
@@ -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 @@ }); |
{ | ||
"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. |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
15464
436
0
1
129
1
1
+ Addedmime@1.2.11(transitive)
- Removedmime@1.2.6(transitive)
Updatedmime@~1.2.9