Comparing version 0.7.1 to 0.8.0
@@ -141,2 +141,8 @@ /** | ||
// cleaning up a bogus call | ||
if (!_.isUndefined(extra) && !_.isObjectLike(extra)) { | ||
console.warn('Extra should be object-like or undefined'); | ||
extra = {}; | ||
} | ||
// trying to convert an error to readable message | ||
@@ -143,0 +149,0 @@ if (_.isError(message)) { |
{ | ||
"name": "gelf-pro", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"main": "./lib/gelf-pro.js", | ||
@@ -5,0 +5,0 @@ "author": "Kanstantsin Kamkou <kkamkou@gmail.com>", |
@@ -13,3 +13,3 @@ node-gelf pro | ||
"dependencies": { | ||
"gelf-pro": "~0.7" | ||
"gelf-pro": "~0.8" // see the "releases" section | ||
} | ||
@@ -16,0 +16,0 @@ ``` |
@@ -157,2 +157,11 @@ 'use strict'; | ||
'Notify in case of a bogus usage': function () { | ||
var mock = sinon.mock(console), | ||
gelf = _.cloneDeep(gelfOriginal); | ||
mock.expects('warn').once().withExactArgs('Extra should be object-like or undefined'); | ||
sinon.spy(gelf, 'getStringFromObject'); | ||
gelf.info('Bogus call', 'example'); | ||
mock.verify(); | ||
}, | ||
'Broadcast messages': function () { | ||
@@ -159,0 +168,0 @@ var expected = [{short_message: 'test', level: 6, world: true}], |
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
28898
602