New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

http-metrics-middleware

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-metrics-middleware - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

renovate.json

24

index.js

@@ -147,4 +147,4 @@ const accepts = require('accepts');

if (
this.options.excludeRoutes &&
this.matchVsRegExps(req.originalUrl, this.options.excludeRoutes)
this.options.excludeRoutes
&& this.matchVsRegExps(req.originalUrl, this.options.excludeRoutes)
) {

@@ -164,6 +164,6 @@ return next();

if (
this.options.includePath &&
resp.req &&
resp.req.route &&
resp.req.route.path
this.options.includePath
&& resp.req
&& resp.req.route
&& resp.req.route.path
) {

@@ -176,4 +176,3 @@ labels.path = this.options.normalizePath(req, this.options);

const duration =
(parseFloat(end.toFixed(9)) - parseFloat(start.toFixed(9))) / 1000;
const duration = (parseFloat(end.toFixed(9)) - parseFloat(start.toFixed(9))) / 1000;
this.observeDurations(labels, duration);

@@ -205,4 +204,4 @@ });

if (
Object.prototype.hasOwnProperty.call(params, param) &&
!this.options.paramIgnores.includes(param)
Object.prototype.hasOwnProperty.call(params, param)
&& !this.options.paramIgnores.includes(param)
) {

@@ -239,5 +238,4 @@ pathValue = this.replaceParam(params, param, pathValue);

return regexps.some(regexp =>
(regexp instanceof RegExp && element.match(regexp)) ||
element === regexp);
return regexps.some(regexp => (regexp instanceof RegExp && element.match(regexp))
|| element === regexp);
}

@@ -244,0 +242,0 @@ }

{
"name": "http-metrics-middleware",
"version": "1.1.0",
"version": "1.1.1",
"description": "Express middleware for adding common prometheus metrics",

@@ -30,17 +30,17 @@ "author": "QlikTech International AB",

"accepts": "1.3.5",
"express": "4.16.2",
"lodash": "4.17.5",
"express": "4.16.4",
"lodash": "4.17.11",
"on-finished": "2.3.0",
"performance-now": "2.1.0",
"prom-client": "11.0.0",
"url-value-parser": "1.0.0"
"prom-client": "11.1.3",
"url-value-parser": "2.0.0"
},
"devDependencies": {
"after-work.js": "4.2.0",
"codeclimate-test-reporter": "0.5.0",
"eslint": "4.19.1",
"eslint-config-airbnb-base": "12.1.0",
"eslint-plugin-import": "2.10.0",
"eslint-plugin-mocha": "5.0.0"
"after-work.js": "4.3.2",
"codeclimate-test-reporter": "0.5.1",
"eslint": "5.9.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-mocha": "5.2.0"
}
}

@@ -8,4 +8,2 @@ [![Build Status][circleci-image]][circleci-url]

[![Greenkeeper badge](https://badges.greenkeeper.io/qlik-oss/http-metrics-middleware.svg?token=FIXME&ts=FIXME)](https://greenkeeper.io/)
Express middleware with useful prometheus metrics.

@@ -12,0 +10,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc