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 to 1.0.2-develop-30

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [1.0.2](https://github.com/toolisticon/ssl-hostinfo-prometheus-exporter/compare/v1.0.1...v1.0.2) (2019-03-04)
### Bug Fixes
* **Undefined-Response:** Ignore undefined raw data ([86e1e5b](https://github.com/toolisticon/ssl-hostinfo-prometheus-exporter/commit/86e1e5b))
## [1.0.1](https://github.com/toolisticon/ssl-hostinfo-prometheus-exporter/compare/v1.0.0...v1.0.1) (2019-02-28)

@@ -2,0 +11,0 @@

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",
"version": "1.0.2-develop-30",
"description": "",

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

Sorry, the diff of this file is not supported yet

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