Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prom-client

Package Overview
Dependencies
Maintainers
2
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 10.0.0 to 10.0.1

1

CHANGELOG.md

@@ -9,2 +9,3 @@ # Changelog

### Added
- Metrics should be initialized to 0 when there are no labels
### Changed

@@ -11,0 +12,0 @@

@@ -70,2 +70,6 @@ /**

if (this.labelNames.length === 0) {
this.hashMap = createValue({}, 0);
}
this.help = config.help;

@@ -72,0 +76,0 @@

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

this.hashMap = {};
if (this.labelNames.length === 0) {
this.hashMap = createValue({}, 0, {});
}
this.help = config.help;

@@ -70,0 +73,0 @@

@@ -82,2 +82,11 @@ /**

if (this.labelNames.length === 0) {
this.hashMap = {
[hashObject({})]: createBaseValues(
{},
Object.assign({}, this.bucketValues)
)
};
}
config.registers.forEach(registryInstance =>

@@ -84,0 +93,0 @@ registryInstance.registerMetric(this)

@@ -73,2 +73,13 @@ /**

if (this.labelNames.length === 0) {
this.hashMap = {
[hashObject({})]: {
labels: {},
td: new TDigest(),
count: 0,
sum: 0
}
};
}
config.registers.forEach(registryInstance =>

@@ -75,0 +86,0 @@ registryInstance.registerMetric(this)

2

package.json
{
"name": "prom-client",
"version": "10.0.0",
"version": "10.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