Socket
Socket
Sign inDemoInstall

gelf-pro

Package Overview
Dependencies
2
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

3

lib/adapter/tcp.js

@@ -42,3 +42,4 @@ /**

.once('connect', function () {
var msg = new Buffer(message.replace(/\x00/g, '')), // @todo! 1h add deflation with GELF 2.0
// @todo #37:60m add deflation with GELF 2.0
var msg = new Buffer(message.replace(/\x00/g, '')), // eslint-disable-line
packet = new Buffer(Array.prototype.slice.call(msg, 0, msg.length).concat(0x00));

@@ -45,0 +46,0 @@ client.end(packet, function () {

@@ -28,3 +28,3 @@ /**

magicBytes: [0x1e, 0x0f],
chunkMaxCount: 20,
chunkMaxCount: 128,
chunkMaxLength: {

@@ -31,0 +31,0 @@ udp4: 1388, // 1428 - 20 - 8 - 12 (@see [1])

{
"name": "gelf-pro",
"version": "1.2.0",
"version": "1.2.1",
"main": "./lib/gelf-pro.js",

@@ -29,14 +29,14 @@ "types": "./lib/definition.d.ts",

"dependencies": {
"async": "2.5.0",
"lodash": "4.17.4"
"async": "2.6.0",
"lodash": "4.17.5"
},
"devDependencies": {
"coveralls": "^2.13.3",
"eslint": "^4.10.0",
"eslint": "^4.19.1",
"istanbul": "^0.4.5",
"mocha": "^3.0.0-2",
"mocha-lcov-reporter": "^1.3.0",
"should": "^13.1.3",
"should": "^13.2.1",
"sinon": "^3.3.0"
}
}

@@ -173,2 +173,2 @@ node-gelf pro

Copyright (c) 2013-2017 Kanstantsin Kamkou
Copyright (c) 2013-2018 Kanstantsin Kamkou

@@ -303,10 +303,5 @@ 'use strict';

var gelf = _.cloneDeep(gelfOriginal),
adapter = gelf.getAdapter(),
message = getLongMessage(100),
message = getLongMessage(300000),
sandbox = sinon.sandbox.create();
sandbox.stub(adapter, 'getArrayFromBuffer').value(function () {
return new Array(adapter.specification.chunkMaxLength.udp4);
});
gelf.send(message, function (err, result) {

@@ -381,3 +376,3 @@ err.should.be.an.instanceof(Error);

var adapter = getAdapter('tcp');
adapter.setOptions({host: 'google.com', port: 5555, timeout: 1000});
adapter.setOptions({host: 'localhost', port: 5555, timeout: 1000});
adapter.send('hello', function (err, result) {

@@ -384,0 +379,0 @@ err.should.be.an.instanceof(Error);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc