node-loggly-bulk
Advanced tools
Comparing version 2.2.5 to 3.0.0
@@ -192,2 +192,7 @@ /* | ||
try { | ||
if (logOptions.isBulk) { | ||
callback(null, null); | ||
return | ||
} | ||
if(body && res.statusCode.toString() === '200'){ | ||
@@ -194,0 +199,0 @@ var result = JSON.parse(body); |
@@ -230,2 +230,3 @@ /* | ||
try { | ||
// eslint-disable-next-line no-unused-vars | ||
request(requestOptions, function (err, res, body) { | ||
@@ -249,5 +250,3 @@ if (err) { | ||
} | ||
if (responseCode === httpStatusCode.success.code) { | ||
success(res, body); | ||
} else { | ||
if (responseCode !== httpStatusCode.success.code) { | ||
retryOnError(bulk, res); | ||
@@ -262,2 +261,3 @@ } | ||
} | ||
if (isBulk && isValidToken) { | ||
@@ -285,4 +285,6 @@ if (timerFunction === null) { | ||
} | ||
success() | ||
} | ||
else if(isValidToken) { | ||
else if (isValidToken) { | ||
if (requestBody) { | ||
@@ -289,0 +291,0 @@ popMsgsAndSend(); |
{ | ||
"name": "node-loggly-bulk", | ||
"description": "A client implementation for Loggly cloud Logging-as-a-Service API", | ||
"version": "2.2.5", | ||
"version": "3.0.0", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
61031
25
1672