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

binary-parse-stream

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-parse-stream - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

20

index.js

@@ -32,6 +32,13 @@ 'use strict';

var ret
if (needed === One)
ret = this._parser.next(chunk[0])
else
ret = this._parser.next(chunk)
, err
try {
if (needed === One)
ret = this._parser.next(chunk[0])
else
ret = this._parser.next(chunk)
}
catch (e) {
err = e
ret = { done: true }
}

@@ -41,3 +48,6 @@ if (!ret.done)

else {
this.push(ret.value)
if (err)
this.emit('error', err)
else
this.push(ret.value)
needed = 0

@@ -44,0 +54,0 @@ this._parser = this._parse()

{
"name": "binary-parse-stream",
"version": "1.0.0",
"version": "1.1.0",
"description": "Painless streaming binary protocol parsers using generators.",

@@ -5,0 +5,0 @@ "main": "index.js",

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