datadog-middleware
Advanced tools
Comparing version 0.0.1 to 0.0.2
10
index.js
@@ -1,5 +0,7 @@ | ||
import StatsD from 'hot-shots' | ||
'use strict' | ||
function middleware(opts) { | ||
let statsd = StatsD(opts) | ||
let StatsD = require('hot-shots') | ||
module.exports = function(opts) { | ||
let statsd = new StatsD(opts) | ||
return (req, res, next) => { | ||
@@ -19,3 +21,1 @@ let start = new Date() | ||
} | ||
export default middleware |
{ | ||
"name": "datadog-middleware", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Connect middleware that records timing metrics via hot-shots", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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