🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mongodb-query-parser

Package Overview
Dependencies
Maintainers
31
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-query-parser - npm Package Compare versions

Comparing version

to
2.4.11

5

lib/stringify.js

@@ -51,4 +51,5 @@ /**

const subType = v.sub_type;
if (subType === 4) {
return `UUID("${v.buffer.toString('hex')}")`;
if (subType === 4 && v.buffer.length === 16) {
const uuidHex = v.buffer.toString('hex');
return `UUID("${uuidHex.slice(0, 8)}-${uuidHex.slice(8, 12)}-${uuidHex.slice(12, 16)}-${uuidHex.slice(16, 20)}-${uuidHex.slice(20, 32)}")`;
}

@@ -55,0 +56,0 @@ return `BinData(${subType.toString(16)}, '${v.buffer.toString('base64')}')`;

2

package.json
{
"name": "mongodb-query-parser",
"description": "Parse MongoDB queries",
"version": "2.4.10",
"version": "2.4.11",
"scripts": {

@@ -6,0 +6,0 @@ "check": "mongodb-js-precommit",