Comparing version 0.6.2 to 0.6.3
@@ -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.2", | ||
"version": "0.6.3", | ||
"main": "./lib/gelf-pro.js", | ||
@@ -25,3 +25,3 @@ "author": "Kanstantsin Kamkou <kkamkou@gmail.com>", | ||
"dependencies": { | ||
"lodash": "~4.5", | ||
"lodash": "~4.7", | ||
"async": "~1.5" | ||
@@ -31,8 +31,8 @@ }, | ||
"istanbul": "~0.4.2", | ||
"should": "~8.2", | ||
"should": "~8.3", | ||
"mocha": "~2.4", | ||
"mocha-lcov-reporter": "~1.2.0", | ||
"coveralls": "~2.11.8", | ||
"coveralls": "~2.11", | ||
"sinon": "~1.17" | ||
} | ||
} |
node-gelf pro | ||
==================== | ||
The Graylog Extended Log Format. Pro - because of code-quality. | ||
node-gelf - Graylog2 client library for Node.js. Pro - because of code-quality. GELF - The Graylog Extended Log Format. | ||
@@ -55,2 +55,3 @@ ![Build Status](https://travis-ci.org/kkamkou/node-gelf-pro.svg?branch=master) | ||
the library converts it to a readable format. Other values [are converted to string](https://lodash.com/docs#toString). | ||
Acceptable format is: `^[\w.-]$` | ||
```javascript | ||
@@ -57,0 +58,0 @@ log.info( |
@@ -97,3 +97,5 @@ 'use strict'; | ||
value2: 'value2' | ||
} | ||
}, | ||
'key.with.dot': 1, | ||
'key-with-dash': 1 | ||
} | ||
@@ -107,4 +109,7 @@ }); | ||
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); | ||
result.should.have.property('_level1_level2_value2').equal('value2'); | ||
result.should.have.property('_level1_level2_level3_value3').equal('value3'); | ||
}, | ||
@@ -111,0 +116,0 @@ |
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
27033
552
133
+ Addedlodash@4.7.0(transitive)
- Removedlodash@4.5.1(transitive)
Updatedlodash@~4.7