Comparing version 0.6.3 to 0.6.4
@@ -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'); |
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
26970
+ Addedlodash@4.10.0(transitive)
- Removedlodash@4.7.0(transitive)
Updatedlodash@~4.10