Comparing version 0.0.11 to 0.0.12
@@ -161,3 +161,3 @@ /** | ||
if (remainSpace > 0) { | ||
p.buf.fill(0, (offset + val.length), length); | ||
p.buf.fill(0, (offset + val.length), offset + length); | ||
} | ||
@@ -364,3 +364,8 @@ | ||
applyClosures(priv); | ||
priv.buf = new Buffer(priv.len); | ||
if (Buffer.alloc) { | ||
priv.buf = Buffer.alloc(priv.len); | ||
} else { | ||
priv.buf = new Buffer(priv.len); | ||
priv.buf.fill(0); | ||
} | ||
allocateFields(); | ||
@@ -367,0 +372,0 @@ priv.allocated = true; |
{ "name" : "struct" | ||
, "version" : "v0.0.11" | ||
, "version" : "v0.0.12" | ||
, "description" : "Pack/Unpack multibyte binary values from/to buffers " | ||
@@ -4,0 +4,0 @@ , "author": "Denys Khanzhiyev" |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
22827
509