Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uuid-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-mongodb - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

15

CHANGE_HISTORY.md

@@ -0,1 +1,16 @@

## <small>2.4.2 (2021-02-15)</small>
* chore: increment patch version ([f7a8d0b](https://github.com/cdimascio/uuid-mongodb/commit/f7a8d0b))
* updated typescript definition to include formatted toString ([3022cd1](https://github.com/cdimascio/uuid-mongodb/commit/3022cd1))
## <small>2.4.1 (2020-12-25)</small>
* feat: improved type declarations ([ee26ce5](https://github.com/cdimascio/uuid-mongodb/commit/ee26ce5))
* chore: upgrade deps ([c5de408](https://github.com/cdimascio/uuid-mongodb/commit/c5de408))
* Implemented the specific types used in the mode function so as not to break downstream typescript pr ([79fd8c0](https://github.com/cdimascio/uuid-mongodb/commit/79fd8c0))
## 2.4.0 (2020-12-01)

@@ -2,0 +17,0 @@

13

lib/index.d.ts
import { Binary } from "mongodb";
export type MUUID = Binary;
export type UUIDFormat = 'N' | 'D' | 'B' | 'P';
export interface MUUID extends Binary {
/**
* Converts the uuid into its canonical representation.
* @param format The type of canonical representation.
* "N" for 32 digits, e.g. 00000000000000000000000000000000;
* "D" for 32 digits separated by hyphens (default), e.g. 00000000-0000-0000-0000-000000000000;
* "B" for 32 digits separated by hyphens, enclosed in braces, e.g. {00000000-0000-0000-0000-000000000000}; or
* "P" for 32 digits separated by hyphens, enclosed in parentheses, e.g. (00000000-0000-0000-0000-000000000000)
*/
toString(format?: UUIDFormat): string;
}
export type Mode = {

@@ -5,0 +16,0 @@ v1: () => MUUID,

2

package.json
{
"name": "uuid-mongodb",
"version": "2.4.1",
"version": "2.4.2",
"description": "Generates and parses MongoDB BSON UUIDs. Plays nicely with others including the MongoDB native driver and Mongoose.",

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

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