New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@toolisticon/ssl-hostinfo-prometheus-exporter

Package Overview
Dependencies
Maintainers
2
Versions
554
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toolisticon/ssl-hostinfo-prometheus-exporter - npm Package Compare versions

Comparing version 1.0.1-develop-28 to 1.0.1-develop-29

19

lib/prometheus.js

@@ -174,8 +174,21 @@ const moment = require('moment');

/**
* Check for unallowed raw data contains, e.g. undefined data and normalize it
*
* @param {*} rawData
*/
function normalizePrometheusDate (rawData) {
if (rawData) {
return `${rawData}\n`;
} else {
return '';
}
}
function renderMetrics () {
let response = '';
Object.keys(resultStore).map((host) => {
response += `${resultStore[host].moz}\n`;
response += `${resultStore[host].details}\n`;
response += `${resultStore[host].expire}\n`;
response += `${normalizePrometheusDate(resultStore[host].moz)}`;
response += `${normalizePrometheusDate(resultStore[host].details)}`;
response += `${normalizePrometheusDate(resultStore[host].expire)}`;
});

@@ -182,0 +195,0 @@ return response;

2

package.json
{
"name": "@toolisticon/ssl-hostinfo-prometheus-exporter",
"version": "1.0.1-develop-28",
"version": "1.0.1-develop-29",
"description": "",

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

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