Comparing version 1.4.6 to 1.5.0
@@ -29,3 +29,3 @@ | ||
exports.version = '1.4.6'; | ||
exports.version = '1.5.0'; | ||
@@ -32,0 +32,0 @@ /** |
@@ -31,2 +31,3 @@ | ||
* - [static](middleware-static.html) streaming static file server supporting `Range` and more | ||
* - [directory](middleware-directory.html) directory listing middleware | ||
* - [vhost](middleware-vhost.html) virtual host sub-domain mapping middleware | ||
@@ -33,0 +34,0 @@ * - [favicon](middleware-favicon.html) efficient favicon server (with default icon) |
{ | ||
"name": "connect", | ||
"version": "1.4.6", | ||
"version": "1.5.0", | ||
"description": "High performance middleware framework", | ||
@@ -18,2 +18,4 @@ "keywords": ["framework", "web", "middleware", "connect", "rack"], | ||
"sass": "0.5.0", | ||
"markdown": "0.2.1", | ||
"ejs": "0.4.3", | ||
"should": "0.2.1" | ||
@@ -20,0 +22,0 @@ }, |
18
test.js
/** | ||
* Module dependencies. | ||
*/ | ||
require.paths.unshift(__dirname + '/support'); | ||
var connect = require('./'); | ||
var connect = require('./') | ||
, app = connect(); | ||
connect( | ||
connect.static('/Users/tj/projects', { hidden: true }) | ||
, connect.directory('/Users/tj/projects', { hidden: false, icons: true }) | ||
).listen(3000); | ||
// 2235.12 rps | ||
// 2171 | ||
// 2300 | ||
app.use(connect.static(__dirname + '/lib')); | ||
app.use(connect.directory(__dirname + '/lib', { hidden: true, icons: true })); | ||
app.listen(3000); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139350
114
3180
7
11