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.26 to 0.0.27

test/async/requestor.js

6

lib/connect-rest.js

@@ -6,3 +6,3 @@ /*

*/
var VERSION = '0.0.26';
var VERSION = '0.0.27';

@@ -126,3 +126,3 @@ var connect = require('connect');

if( asyncCall ){
httphelper.generalCall( http, https, url, asyncCall, err, result, logger, function(er, response){
httphelper.generalCall( http, https, url, _, asyncCall, 'POST', err, result, logger, function(er, response){
if(er)

@@ -152,3 +152,3 @@ logger.error( er );

res.statusCode = 200;
res.end( { answer: 'OK.'} );
res.end( JSON.stringify( { answer: 'OK.'} ) );
}

@@ -155,0 +155,0 @@ }

@@ -11,3 +11,3 @@ exports.opt = {

};
exports.generalCall = function(http, https, url, serverURL, err, result, logger, callback){
exports.generalCall = function(http, https, url, _, serverURL, method, err, result, logger, callback){
var server = url.parse( serverURL );

@@ -18,6 +18,8 @@

var voptions = global._.clone( exports.opt );
var voptions = _.clone( exports.opt );
voptions.hostname = server.hostname;
voptions.port = server.port;
voptions.path = server.path;
if(method)
voptions.method = method;

@@ -24,0 +26,0 @@ var lib =(server.protocol == 'https:' ? https : http);

{
"name": "connect-rest",
"version": "0.0.26",
"version": "0.0.27",
"description": "RESTful web services middleware for Connect.",

@@ -49,4 +49,4 @@ "keywords": [

"readme": "README.md",
"_id": "connect-rest@0.0.26",
"_from": "connect-rest@>=0.0.26"
"_id": "connect-rest@0.0.27",
"_from": "connect-rest@>=0.0.27"
}

@@ -416,3 +416,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.26: async request fix
- 0.0.26-27: async request fix
- 0.0.23-25: small fix for content type management

@@ -419,0 +419,0 @@ - 0.0.22: response header customization added

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