Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated steve to work with connect 2.x #3

Merged
merged 1 commit into from

2 participants

@jetpks

Updated steve to work with connect 2.x.

@coolaj86 coolaj86 merged commit ea6fae7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 13, 2012
  1. @jetpks
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 2 deletions.
  1. +6 −1 lib/lib/stack.js
  2. +1 −1  lib/package.json
View
7 lib/lib/stack.js
@@ -16,7 +16,11 @@
if (!Array.isArray(middlewares)) {
middlewares = Array.prototype.slice.call(arguments);
}
- return createServer.apply(connect, lowerwares.concat(middlewares));
+ var app = connect();
+ lowerwares.concat(middlewares).forEach(function(lowerware) {
+ app.use(lowerware);
+ });
+ return app;
}
if (!connect) {
@@ -25,6 +29,7 @@
createServer = connect.createServer;
connect.createServer = middlewareHandler;
+
if (!http) {
http = require('http');
}
View
2  lib/package.json
@@ -12,7 +12,7 @@
"node": ">= 0.4.0"
},
"dependencies": {
- "connect": "1.8.x"
+ "connect": ">= 1.8.x"
, "nowww": ">= 1.1.x"
, "connect-xcors": ">= 0.0.0"
, "express-chromeframe": ">= 0.2.0"
Something went wrong with that request. Please try again.