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

uuid-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-mongodb - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

12

lib/index.js

@@ -90,3 +90,3 @@ /*

// formatting parameter (optional) follows the behavior of Microsoft's UUID string function: https://docs.microsoft.com/en-us/dotnet/api/system.guid.tostring
mu.toString = function(format) {
mu.toString = function (format) {
let delimiter = '-';

@@ -96,4 +96,10 @@ let prefix = '';

if (format === 'N') delimiter = '';
if (format === 'B') { prefix = '{'; suffix = '}'; }
if (format === 'P') { prefix = '('; suffix = ')'; }
if (format === 'B') {
prefix = '{';
suffix = '}';
}
if (format === 'P') {
prefix = '(';
suffix = ')';
}

@@ -100,0 +106,0 @@ return prefix + stringify(this.buffer, delimiter) + suffix;

{
"name": "uuid-mongodb",
"version": "2.2.0",
"version": "2.2.1",
"description": "Generates and parses MongoDB BSON UUIDs. Plays nicely with others including the MongoDB native driver and Mongoose.",

@@ -38,4 +38,4 @@ "main": "lib/index.js",

"mongodb": "^3.5.2",
"prettier": "1.19.1"
"prettier": "^2.0.5"
}
}
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