connect-rest
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -6,3 +6,3 @@ /* | ||
*/ | ||
var VERSION = '0.0.28'; | ||
var VERSION = '0.0.29'; | ||
@@ -43,5 +43,5 @@ var connect = require('connect'); | ||
function DummyLogger(){ } | ||
DummyLogger.prototype.info = function() { console.log( parameters ); }; | ||
DummyLogger.prototype.debug = function() { console.debug( parameters ); }; | ||
DummyLogger.prototype.error = function() { console.error( parameters ); }; | ||
DummyLogger.prototype.info = function() { console.log( arguments ); }; | ||
DummyLogger.prototype.debug = function() { console.debug( arguments ); }; | ||
DummyLogger.prototype.error = function() { console.error( arguments ); }; | ||
@@ -211,2 +211,4 @@ | ||
if( options ){ | ||
exports.context( options.context || '/api' ); | ||
if( options.discoverPath ) | ||
@@ -213,0 +215,0 @@ addPath('GET', options.discoverPath + '/:version', discover ); |
{ | ||
"name": "connect-rest", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "RESTful web services middleware for Connect.", | ||
@@ -49,4 +49,4 @@ "keywords": [ | ||
"readme": "README.md", | ||
"_id": "connect-rest@0.0.28", | ||
"_from": "connect-rest@>=0.0.28" | ||
"_id": "connect-rest@0.0.29", | ||
"_from": "connect-rest@>=0.0.29" | ||
} |
@@ -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.28: a case when mandatory parameter follows optional(s) has been fixed | ||
- 0.0.28.29: a case when mandatory parameter follows optional(s) has been fixed | ||
- 0.0.26-27: async request fix | ||
@@ -419,0 +419,0 @@ - 0.0.23-25: small fix for content type management |
function buildUpRestAPI( rest, _ ){ | ||
rest.context( '/api' ); | ||
//rest.context( '/api' ); | ||
@@ -4,0 +4,0 @@ rest.head('/peek', function( request ){ |
@@ -50,2 +50,3 @@ var rest = require('../lib/connect-rest'); | ||
logLevel: 'debug', | ||
context: '/api', | ||
domain: restDomain | ||
@@ -52,0 +53,0 @@ }; |
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
51190
734