length-prefixed-message
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -20,3 +20,6 @@ var varint = require('varint'); | ||
} | ||
if (!msglen) return; | ||
if (!msglen) { | ||
stream.unshift(buf); | ||
return; | ||
} | ||
buf = buf.slice(varint.decode.bytes); | ||
@@ -23,0 +26,0 @@ stream.unshift(buf); |
{ | ||
"name": "length-prefixed-message", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Reads and writes binary length prefixed messages. ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3643
73