🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

tiny-application-layer-protocol

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-application-layer-protocol - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "tiny-application-layer-protocol",
"version": "1.0.0",
"version": "1.0.1",
"description": "实现自己的应用层协议和解析器,可以使用于tcp,udp、unix域之上。",

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

@@ -121,6 +121,6 @@ // 开始标识符

}
// data: Buffer
run(data) {
// 没有数据或者解析结束了直接返回
if (this.state === this.endState || !data || !data.length) {
if (this.state === this.endState || !data || !data.byteLength) {
return;

@@ -127,0 +127,0 @@ }