New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 1.1.3

3

lib/minimonk.d.ts

@@ -31,4 +31,5 @@ import { ICollection, IMonkManager } from "monk";

export { ObjectID };
export declare function idify(str?: null): null;
export declare function idify(str: null | undefined): null;
export declare function idify(str: string): ObjectID;
export declare function idify(str: string | null | undefined): ObjectID | null;
export declare class Manager {

@@ -35,0 +36,0 @@ manager: IMonkManager;

{
"name": "minimonk",
"version": "1.1.2",
"version": "1.1.3",
"description": "A tiny wrapper around monk",

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

@@ -47,7 +47,9 @@ import monk, { ICollection, IMonkManager } from "monk";

export function idify(str?: null): null;
export function idify(str: null | undefined): null;
export function idify(str: string): ObjectID;
export function idify(str?: string | null): ObjectID | null {
export function idify(str: string | null | undefined): ObjectID | null;
export function idify(str: string | null | undefined): ObjectID | null {
return str && ObjectID.isValid(str)

@@ -54,0 +56,0 @@ ? ObjectID.createFromHexString(str)

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