Socket
Socket
Sign inDemoInstall

@contrast/metrics

Package Overview
Dependencies
Maintainers
9
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/metrics - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

5

lib/index.js

@@ -42,2 +42,5 @@ /*

post({ result: server }) {
server.on('listening', () => {
logger.debug('Server listening after %dms', (process.hrtime.bigint() - core.startTime) / 1000000n);
});
// get the configured ServerResponse

@@ -69,3 +72,3 @@ let ServerResponse = server[kServerResponse];

return;
metrics.duration_ns = (process.hrtime.bigint() - metrics.start);
metrics.duration_ns = process.hrtime.bigint() - metrics.start;
logger.debug({ metrics }, '%s %s internal response latency: %dms', metrics.method, metrics.url, metrics.duration_ns / 1000000n);

@@ -72,0 +75,0 @@ clearTimeout(metrics.timeout);

2

package.json
{
"name": "@contrast/metrics",
"version": "1.5.0",
"version": "1.6.0",
"description": "Records and logs route latency",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE",

Sorry, the diff of this file is not supported yet

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