Socket
Socket
Sign inDemoInstall

@pager/metrics-client

Package Overview
Dependencies
23
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.1 to 4.3.0

23

lib/index.js

@@ -114,10 +114,17 @@ 'use strict';

metric.record({
startTime: request.plugins.metrics.startTime,
method: request.method,
path: request.route.fingerprint,
/* $lab:coverage:off$ */
statusCode: request.response ? request.response.statusCode : 0
/* $lab:coverage:on$ */
});
const startTime = Hoek.reach(request, 'plugins.metrics.startTime');
/* $lab:coverage:off$ */
if (startTime) {
/* $lab:coverage:on$ */
metric.record({
startTime,
method: request.method,
path: request.route.fingerprint,
/* $lab:coverage:off$ */
statusCode: request.response ? request.response.statusCode : 0
/* $lab:coverage:on$ */
});
}
}

@@ -124,0 +131,0 @@ });

{
"name": "@pager/metrics-client",
"version": "4.2.1",
"version": "4.3.0",
"description": "Hapi-centric Prometheus Plugin and optional endpoint",

@@ -24,13 +24,13 @@ "main": "lib/index.js",

"@newrelic/native-metrics": "4.x.x",
"@hapi/hoek": "6.x.x",
"@hapi/joi": "14.x.x",
"@hapi/hoek": "8.x",
"@hapi/joi": "15.x",
"prom-client": "11.x.x"
},
"devDependencies": {
"@hapi/code": "5.x.x",
"@hapi/code": "6.x",
"eslint-config-hapi": "12.x.x",
"eslint-plugin-hapi": "4.x.x",
"@hapi/hapi": "18.x.x",
"@hapi/lab": "18.x.x"
"@hapi/lab": "19.x"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc