bunyan-loggly
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -40,5 +40,6 @@ var loggly = require('loggly'); | ||
for (var i = 0; i < content.length; i++) { | ||
this.logglyClient.log(content[i]); | ||
if (content.length == 1) { | ||
content = content[0]; | ||
} | ||
this.logglyClient.log(content); | ||
}; | ||
@@ -45,0 +46,0 @@ |
{ | ||
"name": "bunyan-loggly", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A bunyan stream to transport logs to loggly", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -138,3 +138,3 @@ var test = require('tape'), | ||
test('Bunyan2Loggly sends data to loggly once buffer limit is reached', function (t) { | ||
t.plan(2); | ||
t.plan(1); | ||
var mocks = getBaseMocks(), | ||
@@ -151,3 +151,3 @@ Bunyan2Loggly = proxyquire('../', mocks), | ||
} | ||
t.deepEqual(data, testData, 'data sent to loggly'); | ||
t.deepEqual(data, [testData, testData], 'data sent to loggly'); | ||
} | ||
@@ -189,2 +189,2 @@ }; | ||
}, 200); | ||
}); | ||
}); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12985
7017
200
0