Socket
Socket
Sign inDemoInstall

bson

Package Overview
Dependencies
Maintainers
4
Versions
162
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 1.0.9 to 1.1.0

10

HISTORY.md

@@ -0,1 +1,11 @@

<a name="1.1.0"></a>
# [1.1.0](https://github.com/mongodb/js-bson/compare/v1.0.9...v1.1.0) (2018-08-13)
### Bug Fixes
* **serializer:** do not use checkKeys for $clusterTime ([573e141](https://github.com/mongodb/js-bson/commit/573e141))
<a name="1.0.9"></a>

@@ -2,0 +12,0 @@ ## [1.0.9](https://github.com/mongodb/js-bson/compare/v1.0.8...v1.0.9) (2018-06-07)

5

lib/bson/parser/serializer.js

@@ -18,2 +18,3 @@ 'use strict';

var regexp = /\x00/; // eslint-disable-line no-control-regex
var ignoreKeys = ['$db', '$ref', '$id', '$clusterTime'];

@@ -802,3 +803,3 @@ // To ensure that 0.4 of node works correctly

// Check the key and throw error if it's illegal
if (key !== '$db' && key !== '$ref' && key !== '$id') {
if (typeof key === 'string' && ignoreKeys.indexOf(key) === -1) {
if (key.match(regexp) != null) {

@@ -904,3 +905,3 @@ // The BSON spec doesn't allow keys with null bytes because keys are

// Check the key and throw error if it's illegal
if (key !== '$db' && key !== '$ref' && key !== '$id') {
if (typeof key === 'string' && ignoreKeys.indexOf(key) === -1) {
if (key.match(regexp) != null) {

@@ -907,0 +908,0 @@ // The BSON spec doesn't allow keys with null bytes because keys are

2

package.json

@@ -15,3 +15,3 @@ {

],
"version": "1.0.9",
"version": "1.1.0",
"author": "Christian Amor Kvalheim <christkv@gmail.com>",

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

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