connect-rest
Advanced tools
Comparing version 0.0.43 to 0.0.44
@@ -41,3 +41,3 @@ var newrelic = require('./newrelic'); | ||
if( !self.metrics[element.version][element.path] ) | ||
self.metrics[element.version][element.path] = { maxDuration:0, minDuration:0, sumDuration:0, count:0 }; | ||
self.metrics[element.version][element.path] = { maxDuration:0, minDuration:Number.MAX_VALUE, sumDuration:0, count:0 }; | ||
@@ -55,6 +55,6 @@ var metrics = self.metrics[element.version][element.path]; | ||
if(this.options){ | ||
this.logger.debug('Populating monitoring results...'); | ||
var self = this; | ||
this.logger.debug('Populating monitoring results...' ); | ||
if(this.options.newrelic){ | ||
@@ -61,0 +61,0 @@ self.newrelic.populate( self.metrics, self.lastPopulation ); |
@@ -6,3 +6,3 @@ /* | ||
*/ | ||
var VERSION = '0.0.43'; | ||
var VERSION = '0.0.44'; | ||
@@ -9,0 +9,0 @@ var connect = require('connect'); |
{ | ||
"name": "connect-rest", | ||
"version": "0.0.43", | ||
"version": "0.0.44", | ||
"description": "Exceptionally featureful RESTful web services middleware for Connect.", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
}, | ||
"_id": "connect-rest@0.0.43", | ||
"_from": "connect-rest@>=0.0.43" | ||
"_id": "connect-rest@0.0.44", | ||
"_from": "connect-rest@>=0.0.44" | ||
} |
@@ -10,3 +10,3 @@ var rest = require('../lib/connect-rest'); | ||
var restBuilder = require('./restBuilder'); | ||
var caller = require('./caller'); | ||
var caller = require('./nodeunit/caller'); | ||
@@ -57,3 +57,3 @@ var createDomain = require('domain').create; | ||
console: false | ||
//,listener: function(data){ console.log( '%j', data); } | ||
,listener: function(data){ console.log( '%j', data); } | ||
/*, newrelic: { | ||
@@ -73,3 +73,8 @@ platformApiUri: 'https://platform-api.newrelic.com/platform/v1/metrics', | ||
restBuilder.buildUpRestAPI( rest, _ ); | ||
_.each( caller.group, function(value, key, list){ | ||
console.log('Executing: ', key); | ||
value( {done:function(){console.log('Done.', arguments);} } ); | ||
} ); | ||
}); | ||
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
85319
19
948