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

good-hapi-graylog2

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good-hapi-graylog2 - npm Package Compare versions

Comparing version

to
2.1.0

13

lib/index.js

@@ -5,13 +5,2 @@ const Stream = require('stream');

function removeTimestamp(classInstance) {
var jsonedObject = {};
for (var x in classInstance) {
if (x === "constructor" || x === "timestamp") {
continue;
}
jsonedObject[x] = classInstance[x];
}
return jsonedObject;
}
class GoodHapiGraylog extends Stream.Writable {

@@ -33,3 +22,3 @@ constructor({ host, port, facility, hostname, adapter = 'udp' }) {

_write(data, encoding, callback) {
const message = CircularJSON.parse(CircularJSON.stringify(removeTimestamp(data)));
const message = CircularJSON.parse(CircularJSON.stringify(data));
this.log.info(JSON.stringify(message));

@@ -36,0 +25,0 @@ callback();

2

package.json
{
"name": "good-hapi-graylog2",
"version": "2.0.1",
"version": "2.1.0",
"repository": "git://github.com/gleip/good-hapi-graylog2",

@@ -5,0 +5,0 @@ "description": "Graylog GELF broadcasting for Good process monitor",