Socket
Socket
Sign inDemoInstall

gelf-pro

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gelf-pro - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

.codeclimate.yml

2

lib/gelf-pro.js

@@ -133,2 +133,4 @@ /**

gelf.message = function (message, lvl, extra, cb) {
if (_.isNil(message)) { return; }
// it is possible to skip the extra variable

@@ -135,0 +137,0 @@ if (_.isFunction(extra) && !cb) {

4

package.json
{
"name": "gelf-pro",
"version": "0.8.1",
"version": "0.8.2",
"main": "./lib/gelf-pro.js",

@@ -20,3 +20,3 @@ "author": "Kanstantsin Kamkou <kkamkou@gmail.com>",

"dependencies": {
"lodash": "~4.14",
"lodash": "~4.15",
"async": "~2.0"

@@ -23,0 +23,0 @@ },

@@ -56,3 +56,3 @@ node-gelf pro

log.message(new Error('An error message'), 3);
log.message(new Error('An error message'), 3); // same as previous
```

@@ -87,3 +87,3 @@

##### Broadcasting
It is not possible to modify the data. `broadcasting` happens after `filtering`.
`broadcasting` happens after `filtering`.

@@ -90,0 +90,0 @@ ```javascript

@@ -127,2 +127,22 @@ 'use strict';

'Avoid an empty message': function (done) {
var gelf = _.cloneDeep(gelfOriginal);
sinon.spy(gelf, 'send');
gelf.message();
process.nextTick(function () {
gelf.send.calledOnce.should.be.false();
done();
});
},
'Avoid a message with null': function (done) {
var gelf = _.cloneDeep(gelfOriginal);
sinon.spy(gelf, 'send');
gelf.message();
process.nextTick(function () {
gelf.send.calledOnce.should.be.false();
done();
});
},
'Work with dates': function () {

@@ -129,0 +149,0 @@ var gelf = _.cloneDeep(gelfOriginal),

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