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

protodef

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protodef - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

examples/error_handling.js

6

dist/serializer.js

@@ -78,3 +78,7 @@ "use strict";

} catch (e) {
if (e instanceof PartialReadError) return cb();else return cb(e);
if (e instanceof PartialReadError) return cb();else {
e.buffer = this.queue;
this.queue = new Buffer(0);
return cb(e);
}
}

@@ -81,0 +85,0 @@ }

# History
## 1.0.1
* let the parser error out without crashing on errors
## 1.0.0

@@ -4,0 +8,0 @@

2

package.json
{
"name": "protodef",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple yet powerful way to define binary protocols",

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

@@ -50,4 +50,7 @@ var Transform = require("readable-stream").Transform;

return cb();
else
else {
e.buffer=this.queue;
this.queue=new Buffer(0);
return cb(e);
}
}

@@ -54,0 +57,0 @@ }

Sorry, the diff of this file is not supported yet

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