New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.8.6 to 1.9.0

10

lib/connect-rest.js

@@ -75,3 +75,3 @@ /*

var Logger = require('./logger');
var VERSION = exports.VERSION = '1.8.6';
var VERSION = exports.VERSION = '1.9.0';
var logger;

@@ -180,5 +180,5 @@

function returnResult( err, result, res ){
var headers, key;
var headers = _.assign( {}, exports.globalHeaders ), key;
if( err ){
headers = { 'Content-Type': 'text/plain' };
headers = _.assign( headers, { 'Content-Type': 'text/plain' } );
for( key in headers )

@@ -192,3 +192,3 @@ res.setHeader( key, headers[key] );

result.contentType = 'application/json';
headers = result.resOptions.headers || { };
headers = _.assign( headers, result.resOptions.headers || { } );
if( !headers['Content-Type'] )

@@ -459,3 +459,3 @@ headers['Content-Type'] = result.contentType || 'application/json';

options = options || {};
exports.globalHeaders = options.headers || { };
exports.context( options.context ? options.context : (options.context === '' ? '' : '/api') );

@@ -462,0 +462,0 @@

{
"name": "connect-rest",
"version": "1.8.6",
"version": "1.9.0",
"description": "Exceptionally featureful RESTful web services middleware for Connect.",

@@ -55,3 +55,3 @@ "keywords": [

},
"_id": "connect-rest@1.8.6"
"_id": "connect-rest@1.9.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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