stream-serializer
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -18,10 +18,11 @@ | ||
function parse (line) { | ||
var js | ||
try { | ||
var js = JSON.parse(line) | ||
js = JSON.parse(line) | ||
//ignore lines of whitespace... | ||
if(js !== undefined) | ||
write.call(stream, js) | ||
} catch (err) { | ||
console.error('invalid JSON', data) | ||
return console.error('invalid JSON', data) | ||
} | ||
if(js !== undefined) | ||
write.call(stream, js) | ||
} | ||
@@ -28,0 +29,0 @@ |
{ | ||
"name": "stream-serializer", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/dominictarr/stream-serializer", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
3967
73
0