combohandler
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -41,3 +41,3 @@ var fs = require('fs'), | ||
res.header('Content-Type', (type || 'text/plain') + ';charset=utf-8'); | ||
res.body = body.join("\n"); | ||
res.body = body.join('\n'); | ||
@@ -44,0 +44,0 @@ next(); |
@@ -1,2 +0,3 @@ | ||
var express = require('express'), | ||
var connect = require('connect'), | ||
express = require('express'), | ||
combo = require('../index'); | ||
@@ -10,6 +11,2 @@ | ||
if (!baseApp) { | ||
app.configure(function () { | ||
app.use(express.conditionalGet()); | ||
}); | ||
app.configure('development', function () { | ||
@@ -38,2 +35,6 @@ app.use(express.logger()); | ||
app.get(route, combo.combine({rootPath: roots[route]}), function (req, res) { | ||
if (!connect.utils.modified(req, res)) { | ||
return connect.utils.notModified(res); | ||
} | ||
res.send(res.body, 200); | ||
@@ -40,0 +41,0 @@ }); |
{ | ||
"name" : "combohandler", | ||
"description": "Simple Yahoo!-style combo handler.", | ||
"version" : "0.1.0", | ||
"keywords" : ["combo", "combine", "cdn", "yui", "yui3", "js", "css"], | ||
"version" : "0.1.1", | ||
"keywords" : ["combo", "combine", "cdn", "yui", "yui3", "js", "css", "performance"], | ||
"homepage" : "https//github.com/rgrove/combohandler", | ||
@@ -19,6 +19,10 @@ | ||
"engines": ["node >=0.2.0"], | ||
"engines": [ | ||
"node >=0.4.0 <0.5.0", | ||
"npm >=0.3.1" | ||
], | ||
"dependencies": { | ||
"express": "1.0.x" | ||
"connect": "~1.3", | ||
"express": "~2.2" | ||
}, | ||
@@ -32,2 +36,3 @@ | ||
"lib/server.js", | ||
"HISTORY.md", | ||
"LICENSE", | ||
@@ -34,0 +39,0 @@ "README.md", |
@@ -37,7 +37,9 @@ Combo Handler | ||
The `combohandler` module provides a configurable Connect middleware that can be used to add combo handling capability to any Connect-based request handler (like Express). | ||
The `combohandler` module provides a configurable Connect middleware that can be | ||
used to add combo handling capability to any Connect-based request handler (like | ||
Express). | ||
The `combohandler/server` module creates a standalone Express server | ||
instance, or augments an existing server, to perform combo handling for a | ||
configurable number of routes. | ||
The `combohandler/server` module creates a standalone Express server instance, | ||
or augments an existing server, to perform combo handling for a set of | ||
configurable routes. | ||
@@ -44,0 +46,0 @@ |
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
210
14255
2
8
148
+ Addedconnect@~1.3
+ Addedconnect@1.3.0(transitive)
+ Addedexpress@2.2.2(transitive)
+ Addedmime@4.0.4(transitive)
- Removedconnect@0.5.10(transitive)
- Removedexpress@1.0.8(transitive)
Updatedexpress@~2.2