Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-serializer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-serializer - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

9

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc