Comparing version 1.1.1 to 1.1.2
@@ -104,4 +104,5 @@ /** | ||
bytesSentTotal += bytesSent; | ||
/* istanbul ignore else */ | ||
if (idx >= chunksCount - 1) { | ||
cb(err, bytesSentTotal); | ||
cbOnce(err, bytesSentTotal); | ||
} | ||
@@ -108,0 +109,0 @@ } |
@@ -106,3 +106,3 @@ /** | ||
result[(prefix ? [null, prefix, key] : [null, key]).join('_')] = | ||
_.isFinite(value) ? value : _.truncate(_.toString(value), {length: 32766}); | ||
_.isFinite(value) ? value : _.truncate(_.toString(value), {length: 32765}); // 32765 + 1 | ||
}); | ||
@@ -109,0 +109,0 @@ }; |
{ | ||
"name": "gelf-pro", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "./lib/gelf-pro.js", | ||
@@ -8,11 +8,19 @@ "types": "./lib/definition.d.ts", | ||
"description": "The Graylog Extended Log Format for the Node.js", | ||
"keywords": ["graylog", "gelf", "logging", "udp", "tcp", "tls", "ssl"], | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/kkamkou/node-gelf-pro.git" | ||
"keywords": [ | ||
"graylog", | ||
"gelf", | ||
"logging", | ||
"udp", | ||
"tcp", | ||
"tls", | ||
"ssl" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/kkamkou/node-gelf-pro.git" | ||
}, | ||
"bugs" : { | ||
"url" : "https://github.com/kkamkou/node-gelf-pro/issues" | ||
"bugs": { | ||
"url": "https://github.com/kkamkou/node-gelf-pro/issues" | ||
}, | ||
"license" : "MIT", | ||
"license": "MIT", | ||
"scripts": { | ||
@@ -27,9 +35,9 @@ "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" | ||
"coveralls": "^2.13.1", | ||
"eslint": "^4.1.1", | ||
"eslint": "^4.6.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.4.2", | ||
"mocha": "^3.5.3", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"should": "^11.2.1", | ||
"sinon": "^2.3.6" | ||
"should": "^13.0.1", | ||
"sinon": "^3.2.1" | ||
} | ||
} |
@@ -254,3 +254,3 @@ 'use strict'; | ||
msg.should.have.length(34545); // we need 32766 | ||
msg.should.have.length(34545); // we need 32765 (32765 + 1 = 32766, which is max) | ||
@@ -262,3 +262,3 @@ sinon.spy(gelf, 'getStringFromObject'); | ||
var field = JSON.parse(gelf.getStringFromObject.firstCall.returnValue)._longField; | ||
field.should.have.length(32766); | ||
field.should.have.length(32765); | ||
field.should.endWith('...'); | ||
@@ -265,0 +265,0 @@ } |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
119176
19
3067
13437
6