🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

minimonk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimonk - npm Package Compare versions

Comparing version

to
1.1.10

8

lib/minimonk.js

@@ -65,5 +65,7 @@ "use strict";

// End safeguard
return str && bson_1.ObjectID.isValid(str)
? bson_1.ObjectID.createFromHexString(str)
: null;
if (typeof str !== "string")
return null;
if (!bson_1.ObjectID.isValid(str))
throw new Error("Invalid hex value <" + str + "> passed to idify");
return bson_1.ObjectID.createFromHexString(str);
}

@@ -70,0 +72,0 @@ exports.idify = idify;

{
"name": "minimonk",
"version": "1.1.9",
"version": "1.1.10",
"description": "A tiny wrapper around monk",

@@ -5,0 +5,0 @@ "main": "lib/minimonk.js",

@@ -58,5 +58,6 @@ import monk, { ICollection, IMonkManager } from "monk";

// End safeguard
return str && ObjectID.isValid(str)
? ObjectID.createFromHexString(str)
: null;
if (typeof str !== "string") return null;
if (!ObjectID.isValid(str))
throw new Error(`Invalid hex value <${str}> passed to idify`);
return ObjectID.createFromHexString(str);
}

@@ -63,0 +64,0 @@