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.6.3 to 0.6.4

2

lib/gelf-pro.js

@@ -87,3 +87,3 @@ /**

_.forOwn(input, function (value, key) {
if ((/[^\w.-]/).test(key)) {
if ((/[^\w-]/).test(key)) {
console.warn(key + ': the key format is not valid');

@@ -90,0 +90,0 @@ }

{
"name": "gelf-pro",
"version": "0.6.3",
"version": "0.6.4",
"main": "./lib/gelf-pro.js",

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

},
"licenses" : [
{
"type" : "MIT",
"url" : "https://github.com/kkamkou/node-gelf-pro/raw/master/LICENSE"
}
],
"license" : "MIT",
"scripts": {

@@ -26,7 +21,7 @@ "test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"

"dependencies": {
"lodash": "~4.7",
"lodash": "~4.10",
"async": "~1.5"
},
"devDependencies": {
"istanbul": "~0.4.2",
"istanbul": "~0.4.3",
"should": "~8.3",

@@ -33,0 +28,0 @@ "mocha": "~2.4",

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

the library converts it to a readable format. Other values [are converted to string](https://lodash.com/docs#toString).
Acceptable format is: `^[\w.-]$`
Acceptable format of a key is: `^[\w.-]$`
```javascript

@@ -73,3 +73,3 @@ log.info(

function (message) { // rejects a "debug" message
return (message.level < 5);
return (message.level < 7);
}

@@ -76,0 +76,0 @@ ]

@@ -86,3 +86,4 @@ 'use strict';

var mock = sinon.mock(console);
mock.expects('warn').once().withExactArgs('the first value: the key format is not valid');
mock.expects('warn').once().withExactArgs('the.first.value: the key format is not valid');
mock.expects('warn').once().withExactArgs('the second value: the key format is not valid');

@@ -92,3 +93,4 @@ var gelf = _.cloneDeep(gelfOriginal),

value0: 'value0',
'the first value': 'string',
'the.first.value': 'string',
'the second value': 'string',
level1: {

@@ -100,3 +102,2 @@ value1: 'value1',

},
'key.with.dot': 1,
'key-with-dash': 1

@@ -111,3 +112,2 @@ }

result.should.have.property('_level1_value1').equal('value1');
result.should.have.property('_level1_key.with.dot').equal(1);
result.should.have.property('_level1_key-with-dash').equal(1);

@@ -114,0 +114,0 @@ result.should.have.property('_level1_level2_value2').equal('value2');

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