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.0.0 to 3.0.1

4

lib/histogram.js

@@ -235,5 +235,7 @@ /**

function createBucketValues(bucket, histogram) {
var acc = 0;
return function(upperBound) {
acc += bucket.bucketValues[upperBound];
var lbls = extend({ le: upperBound }, bucket.labels);
var valuePair = createValuePair(lbls, bucket.bucketValues[upperBound], histogram.name + '_bucket');
var valuePair = createValuePair(lbls, acc, histogram.name + '_bucket');
return valuePair;

@@ -240,0 +242,0 @@ };

{
"name": "prom-client",
"version": "3.0.0",
"version": "3.0.1",
"description": "Client for prometheus",

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

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

expect(firstValuePair.value).to.equal(1);
expect(secondValuePair.value).to.equal(1);
expect(secondValuePair.value).to.equal(2);
});

@@ -142,3 +142,2 @@

return values.reduce(function(acc, val) {
console.log('val', val.labels[key]);
if(val.labels && val.labels[key || 'le'] === label) {

@@ -145,0 +144,0 @@ acc = val;

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