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 3.4.0 to 3.4.1

5

lib/summary.js

@@ -92,5 +92,6 @@ /**

return percentiles.map(function (percentile) {
var percentileValue = summaryOfLabels.td.percentile(percentile);
return {
labels: extend({ quantile: percentile}, summaryOfLabels.labels),
value: summaryOfLabels.td.percentile(percentile)
labels: extend({ quantile: percentile }, summaryOfLabels.labels),
value: percentileValue ? percentileValue : 0
};

@@ -97,0 +98,0 @@ });

2

package.json
{
"name": "prom-client",
"version": "3.4.0",
"version": "3.4.1",
"description": "Client for prometheus",

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

@@ -97,3 +97,3 @@ 'use strict';

expect(instance.get().values[0].labels.quantile).to.equal(0.5);
expect(instance.get().values[0].value).to.equal(undefined);
expect(instance.get().values[0].value).to.equal(0);

@@ -100,0 +100,0 @@ expect(instance.get().values[1].metricName).to.equal('summary_test_sum');

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