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

bson

Package Overview
Dependencies
Maintainers
2
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bson - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

11

lib/bson/parser/deserializer.js

@@ -22,5 +22,12 @@ "use strict"

// Ensure buffer is valid size
if(size < 5 || size != buffer.length) throw new Error("corrupt bson message");
// Ensure buffer is valid size
if(size < 5 || buffer.length < size) {
throw new Error("corrupt bson message");
}
// Illegal end value
if(buffer[size - 1] != 0) {
throw new Error("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");
}
// Start deserializtion

@@ -27,0 +34,0 @@ return deserializeObject(buffer, options, isArray);

2

package.json
{ "name" : "bson"
, "description" : "A bson parser for node.js and the browser"
, "keywords" : ["mongodb", "bson", "parser"]
, "version" : "0.4.7"
, "version" : "0.4.8"
, "author" : "Christian Amor Kvalheim <christkv@gmail.com>"

@@ -6,0 +6,0 @@ , "contributors" : []

@@ -38,3 +38,3 @@ Javascript + C++ BSON parser

var bson = require("bson");
var BSON = bson.BSONPure.BSON;
var BSON = new bson.BSONPure.BSON();
var Long = bson.BSONPure.Long;

@@ -41,0 +41,0 @@

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