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.7.1 to 0.8.0

6

lib/gelf-pro.js

@@ -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)) {

2

package.json
{
"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}],

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