uuid-mongodb
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11483
109