Socket
Socket
Sign inDemoInstall

prom-client

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prom-client - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

10

lib/metrics/heapSizeAndUsed.js

@@ -18,5 +18,9 @@ 'use strict';

return function() {
var memUsage = process.memoryUsage();
heapSizeTotal.set(memUsage.heapTotal);
heapSizeUsed.set(memUsage.heapUsed);
// process.memoryUsage() can throw EMFILE errors, see #67
try {
var memUsage = process.memoryUsage();
heapSizeTotal.set(memUsage.heapTotal);
heapSizeUsed.set(memUsage.heapUsed);
} catch (e) {
}

@@ -23,0 +27,0 @@ return { total: heapSizeTotal, used: heapSizeUsed };

{
"name": "prom-client",
"version": "7.0.0",
"version": "7.0.1",
"description": "Client for prometheus",

@@ -5,0 +5,0 @@ "main": "index.js",

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