uuid-mongodb
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -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 @@ |
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, |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15226
137