Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.1.9 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 @@

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