Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-rest

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-rest - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

6

lib/connect-rest.js

@@ -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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc