Comparing version 1.0.0 to 1.0.1
@@ -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 @@ |
{ | ||
"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
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
145128
40
2294