🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

prometheus-api-metrics

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prometheus-api-metrics - npm Package Compare versions

Comparing version

to
3.2.1

.github/workflows/main.yml

2

package.json
{
"name": "prometheus-api-metrics",
"version": "3.2.0",
"version": "3.2.1",
"description": "API and process monitoring with Prometheus for Node.js micro-service",

@@ -5,0 +5,0 @@ "author": "Idan Tovi",

@@ -36,3 +36,3 @@ const Prometheus = require('prom-client');

_handleResponse (ctx) {
_handleResponse(ctx) {
const responseLength = parseInt(ctx.response.get('Content-Length')) || 0;

@@ -97,2 +97,8 @@

// If proper route is not found, send an undefined route
// The caller is responsible for setting a default "N/A" route in this case
if (!properRoute) {
return undefined;
}
let route = properRoute.path;

@@ -99,0 +105,0 @@ route = route.endsWith('/') ? route.substring(0, route.length - 1) : route;