Comparing version 0.2.1 to 0.2.2
@@ -94,3 +94,3 @@ 'use strict'; | ||
buffer.writeUInt8(1, offset++); | ||
this.write(value, buffer, offset, typeArgs, context); | ||
offset = this.write(value, buffer, offset, typeArgs, context); | ||
} else { | ||
@@ -97,0 +97,0 @@ buffer.writeUInt8(0, offset++); |
{ | ||
"name": "protodef", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A simple yet powerful way to define binary protocols", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -107,2 +107,6 @@ # ProtoDef | ||
### 0.2.2 | ||
* Fix writeOption : the offset wasn't properly updated | ||
### 0.2.1 | ||
@@ -109,0 +113,0 @@ |
@@ -94,3 +94,3 @@ var { getField, getFieldInfo, tryCatch , addErrorField} = require('../utils'); | ||
buffer.writeUInt8(1, offset++); | ||
this.write(value, buffer, offset, typeArgs, context); | ||
offset=this.write(value, buffer, offset, typeArgs, context); | ||
} else { | ||
@@ -97,0 +97,0 @@ buffer.writeUInt8(0, offset++); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
46
130
191710
2194
2
1