connect-rest
Advanced tools
Comparing version 0.0.30 to 0.0.32
@@ -6,3 +6,3 @@ /* | ||
*/ | ||
var VERSION = '0.0.30'; | ||
var VERSION = '0.0.32'; | ||
@@ -44,3 +44,3 @@ var connect = require('connect'); | ||
DummyLogger.prototype.info = function() { console.log( arguments ); }; | ||
DummyLogger.prototype.debug = function() { console.debug( arguments ); }; | ||
DummyLogger.prototype.debug = function() { console.log( arguments ); }; | ||
DummyLogger.prototype.error = function() { console.error( arguments ); }; | ||
@@ -210,4 +210,5 @@ | ||
var domain; | ||
logger = new DummyLogger(); | ||
if( options ){ | ||
exports.context( options.context || '/api' ); | ||
exports.context( options.context ? options.context : (options.context === '' ? '' : '/api') ); | ||
@@ -220,3 +221,2 @@ if( options.discoverPath ) | ||
logger = new DummyLogger(); | ||
if( options.logger ) | ||
@@ -223,0 +223,0 @@ logger = _.isString( options.logger ) ? bunyan.createLogger({name: options.logger, src: true, level: options.logLevel || 'info'}) : options.logger; |
{ | ||
"name": "connect-rest", | ||
"version": "0.0.30", | ||
"version": "0.0.32", | ||
"description": "RESTful web services middleware for Connect.", | ||
@@ -49,4 +49,4 @@ "keywords": [ | ||
"readme": "README.md", | ||
"_id": "connect-rest@0.0.30", | ||
"_from": "connect-rest@>=0.0.30" | ||
"_id": "connect-rest@0.0.32", | ||
"_from": "connect-rest@>=0.0.32" | ||
} |
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
52541