Comparing version 2.0.0 to 2.1.0
@@ -8,2 +8,5 @@ // statsd/index.js | ||
module.exports = function (qb, statsdconf) { | ||
if (!statsdconf) | ||
throw new Error('Cannot attach statsd component without configuration options') | ||
var existing_instance = statsdconf.instance instanceof StatsD | ||
@@ -36,3 +39,3 @@ , statsd = existing_instance ? statsdconf.instance : createInstance(statsdconf) | ||
qb.on('fail', function (type, task, next) { | ||
qb.on('fail', function (err, type, task, next) { | ||
statsd.increment(type + '.failure') | ||
@@ -39,0 +42,0 @@ next() |
{ | ||
"name": "qb-statsd", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Adds statsd listeners to qb", | ||
@@ -27,5 +27,5 @@ "main": "index.js", | ||
"moniker": "^0.1.2", | ||
"qb": "^2.0.0", | ||
"qb": "^2.1.0", | ||
"xtend": "^4.0.0" | ||
} | ||
} |
7440
159