Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bser

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bser - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

8

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc