koa-huggare
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -18,3 +18,10 @@ "use strict"; | ||
var exclude = opts.exclude; | ||
return function *logger(next) { | ||
// If exclude, skip! | ||
if (exclude && exclude.test(this.originalUrl)) { | ||
return yield next; | ||
} | ||
// request | ||
@@ -21,0 +28,0 @@ var start = new Date; |
{ | ||
"name": "koa-huggare", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Huggare logging bindings for Koa", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2941
85