Comparing version 1.11.5 to 1.11.6
<!-- vim:ts=4:sts=4:sw=4:et:tw=60 --> | ||
## 1.11.5 | ||
- Allow HTTP requests to specified a false agent, per the underlying Node.js | ||
behavior. (@grahamjenson) | ||
- Use npm carat operator for dependencies. (@anton-rudeshko) | ||
- The Node.js response argument is no longer being forwarded to HTTP request | ||
handlers. | ||
## 1.11.4 | ||
@@ -4,0 +12,0 @@ |
@@ -24,8 +24,8 @@ | ||
methodNotAllowed = Status.methodNotAllowed; | ||
return function (request, response) { | ||
return function (request) { | ||
var method = request.method; | ||
if (Object.has(keys, method)) { | ||
return Object.get(methods, method)(request, response); | ||
return Object.get(methods, method)(request); | ||
} else { | ||
return methodNotAllowed(request, response); | ||
return methodNotAllowed(request); | ||
} | ||
@@ -46,3 +46,3 @@ }; | ||
if (Object.has(keys, type)) { | ||
return Q.when(types[type](request, response), function (response) { | ||
return Q.when(types[type](request), function (response) { | ||
if ( | ||
@@ -116,5 +116,5 @@ respond !== null && | ||
exports.Select = function (select) { | ||
return function (request, response) { | ||
return Q.when(select(request, response), function (app) { | ||
return app(request, response); | ||
return function (request) { | ||
return Q.when(select(request), function (app) { | ||
return app(request); | ||
}); | ||
@@ -121,0 +121,0 @@ }; |
@@ -322,3 +322,3 @@ /** | ||
if (request.agent) { | ||
if (request.agent !== undefined) { | ||
requestOptions.agent = request.agent; | ||
@@ -325,0 +325,0 @@ } |
{ | ||
"name": "q-io", | ||
"version": "1.11.5", | ||
"version": "1.11.6", | ||
"description": "IO using Q promises", | ||
@@ -28,14 +28,14 @@ "homepage": "http://github.com/kriskowal/q-io/", | ||
"dependencies": { | ||
"q": "~1.0.1", | ||
"qs": "~1.2.1", | ||
"url2": "~0.0.0", | ||
"mime": "~1.2.11", | ||
"mimeparse": "~0.1.4", | ||
"collections": "~0.2.0" | ||
"q": "^1.0.1", | ||
"qs": "^1.2.1", | ||
"url2": "^0.0.0", | ||
"mime": "^1.2.11", | ||
"mimeparse": "^0.1.4", | ||
"collections": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"jshint": "~0.9.1", | ||
"cover": "~0.2.8", | ||
"jasmine-node": "~1.7", | ||
"opener": "~1.3" | ||
"jshint": "^0.9.1", | ||
"cover": "^0.2.8", | ||
"jasmine-node": "^1.7", | ||
"opener": "^1.3" | ||
}, | ||
@@ -42,0 +42,0 @@ "scripts": { |
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
179971
+ Addedmime@1.6.0(transitive)
+ Addedq@1.5.1(transitive)
- Removedmime@1.2.11(transitive)
- Removedq@1.0.1(transitive)
Updatedcollections@^0.2.0
Updatedmime@^1.2.11
Updatedmimeparse@^0.1.4
Updatedq@^1.0.1
Updatedqs@^1.2.1
Updatedurl2@^0.0.0