Comparing version 2.0.0 to 2.1.0
@@ -22,3 +22,3 @@ /* Copyright 2015-present Facebook, Inc. | ||
function Accumulator(initsize) { | ||
this.buf = new Buffer(nextPow2(initsize || 8192)); | ||
this.buf = Buffer.alloc(nextPow2(initsize || 8192)); | ||
this.readOffset = 0; | ||
@@ -59,3 +59,3 @@ this.writeOffset = 0; | ||
// Allocate a replacement and copy it in | ||
var buf = new Buffer(nextPow2(this.buf.length + size - this.writeAvail())); | ||
var buf = Buffer.alloc(nextPow2(this.buf.length + size - this.writeAvail())); | ||
this.buf.copy(buf); | ||
@@ -455,3 +455,3 @@ this.buf = buf; | ||
function byteswap64(buf) { | ||
var swap = new Buffer(buf.length); | ||
var swap = Buffer.alloc(buf.length); | ||
for (var i = 0; i < buf.length; i++) { | ||
@@ -589,2 +589,2 @@ swap[i] = buf[buf.length -1 - i]; | ||
} | ||
exports.dumpToBuffer = dumpToBuffer | ||
exports.dumpToBuffer = dumpToBuffer |
{ | ||
"name": "bser", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "JavaScript implementation of the BSER Binary Serialization", | ||
@@ -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
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
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
17978
532
1