Socket
Socket
Sign inDemoInstall

bson

Package Overview
Dependencies
Maintainers
2
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.2 to 1.0.3

6

HISTORY.md

@@ -1,3 +0,7 @@

1.0.2 2016-12-06
1.0.3 2016-01-03
----------------
- Fixed toString for ObjectId so it will work with inspect.
1.0.2 2016-01-02
----------------
- Minor optimizations for ObjectID to use Buffer.from where available.

@@ -4,0 +8,0 @@

2

lib/bson/objectid.js

@@ -174,3 +174,3 @@ /**

if(this.id && this.id.copy) {
return this.id.toString(format || 'hex');
return this.id.toString(typeof format === 'string' ? format : 'hex');
}

@@ -177,0 +177,0 @@

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

],
"version": "1.0.2",
"version": "1.0.3",
"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