diff --git a/serverless/lib/NameSearchProcessor.ts b/serverless/lib/NameSearchProcessor.ts index 356da94..40972de 100644 --- a/serverless/lib/NameSearchProcessor.ts +++ b/serverless/lib/NameSearchProcessor.ts @@ -1,4 +1,4 @@ -import { v4 as uuidv4 } from 'uuid'; +import { randomUUID } from 'node:crypto'; import { NameSearchResponse, NameSearchData } from '../../shared/types'; import StorageClient from './StorageClient'; import NameParser from './NameParser'; @@ -18,7 +18,7 @@ export async function processNameSearchRequest( }, userId: string ): Promise { - const searchId = uuidv4(); + const searchId = randomUUID(); let success = true; let error: string | undefined; diff --git a/serverless/package-lock.json b/serverless/package-lock.json index 84847c3..6a75bbb 100644 --- a/serverless/package-lock.json +++ b/serverless/package-lock.json @@ -26,7 +26,6 @@ "mammoth": "^1.11.0", "pdf-parse": "^1.1.1", "tough-cookie": "^5.1.2", - "uuid": "^9.0.0", "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" }, "devDependencies": { @@ -34,7 +33,6 @@ "@types/aws-lambda": "^8.10.147", "@types/jest": "^29.5.14", "@types/node": "^22.13.5", - "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^8.29.0", "@typescript-eslint/parser": "^8.29.0", "eslint": "^9.24.0", @@ -5392,13 +5390,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", @@ -12927,19 +12918,6 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "license": "MIT" }, - "node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", diff --git a/serverless/package.json b/serverless/package.json index 939c201..67bef1e 100644 --- a/serverless/package.json +++ b/serverless/package.json @@ -13,7 +13,6 @@ "@types/aws-lambda": "^8.10.147", "@types/jest": "^29.5.14", "@types/node": "^22.13.5", - "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^8.29.0", "@typescript-eslint/parser": "^8.29.0", "eslint": "^9.24.0", @@ -48,7 +47,6 @@ "pdf-parse": "^1.1.1", "jose": "^5.10.0", "tough-cookie": "^5.1.2", - "uuid": "^9.0.0", "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" }, "scripts": {