connect-rest
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -6,3 +6,3 @@ /* | ||
*/ | ||
var VERSION = '0.0.23'; | ||
var VERSION = '0.0.24'; | ||
@@ -55,3 +55,3 @@ var connect = require('connect'); | ||
} else { | ||
callback(null, { contentType: options.contentType || 'application/json', result : action(request, content), resOptions:{} } ); | ||
callback(null, { contentType: options.contentType || 'application/json', result : action(request, content), resOptions: { } } ); | ||
} | ||
@@ -137,3 +137,3 @@ }, _ | ||
var result = _.find(results, function(returnValue){ return returnValue && returnValue.result; }) || {}; | ||
var headers = result.resOptions.headers || {}; | ||
var headers = result.resOptions ? (result.resOptions.headers || { }) : { }; | ||
if( !headers['Content-Type'] ) | ||
@@ -140,0 +140,0 @@ headers['Content-Type'] = result.contentType || 'application/json'; |
{ | ||
"name": "connect-rest", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "RESTful web services middleware for Connect.", | ||
@@ -49,4 +49,4 @@ "keywords": [ | ||
"readme": "README.md", | ||
"_id": "connect-rest@0.0.23", | ||
"_from": "connect-rest@>=0.0.23" | ||
"_id": "connect-rest@0.0.24", | ||
"_from": "connect-rest@>=0.0.24" | ||
} |
@@ -394,3 +394,3 @@ [connect-rest](https://github.com/imrefazekas/connect-rest) is a middleware for [connect](http://www.senchalabs.org/connect/) for building REST APIs providing service discovery and path-based parameter mapping and "reflective" publishing and node domains as well. | ||
- 0.0.23: small fix for content type management | ||
- 0.0.23-24: small fix for content type management | ||
- 0.0.22: response header customization added | ||
@@ -397,0 +397,0 @@ - 0.0.21: |
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
45194