Comparing version 0.8.1 to 0.8.2
@@ -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) { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28532
16
621
+ Addedlodash@4.15.0(transitive)
- Removedlodash@4.14.2(transitive)
Updatedlodash@~4.15