diff --git a/index.ts b/index.ts index e7e8bc2..3577b30 100644 --- a/index.ts +++ b/index.ts @@ -5,7 +5,7 @@ import mongoose, { SchemaOptions, AnyObject, } from "mongoose"; -import { v4 as uuidv4, validate as uuidValidate } from "uuid"; +import { validate as uuidValidate } from "uuid"; import { Buffer } from "buffer"; class UUIDSchemaType extends Schema.Types.UUID { diff --git a/package-lock.json b/package-lock.json index 202338b..02a0fd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,18 @@ { "name": "mongoose-uuid-ts", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mongoose-uuid-ts", - "version": "1.0.0", + "version": "1.0.2", "license": "MIT", "dependencies": { "bson": "^5.3.0", "mongoose": "^7.3.0", "util": "^0.12.5", + "uuid": "^9.0.0", "uuid-parse": "^1.1.0" }, "devDependencies": { @@ -3939,6 +3940,14 @@ "which-typed-array": "^1.1.2" } }, + "node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/uuid-parse": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/uuid-parse/-/uuid-parse-1.1.0.tgz", diff --git a/package.json b/package.json index e2524b4..d053c3c 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "bson": "^5.3.0", "mongoose": "^7.3.0", "util": "^0.12.5", + "uuid": "^9.0.0", "uuid-parse": "^1.1.0" }, "devDependencies": {