diff --git a/gen.yaml b/gen.yaml index 7a6d3861..b6a569a0 100644 --- a/gen.yaml +++ b/gen.yaml @@ -15,7 +15,6 @@ typescript: dependencies: async: ^3.2.5 pdf-lib: ^1.17.1 - uuid: ^10.0.0 devDependencies: '@types/async': ^3.2.24 '@types/jest': ^29.5.12 diff --git a/package.json b/package.json index af26afb0..f876c207 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "devDependencies": { "@types/async": "^3.2.24", "@types/jest": "^29.5.12", - "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", "eslint": "^8.57.0", @@ -33,7 +32,6 @@ }, "dependencies": { "async": "^3.2.5", - "pdf-lib": "^1.17.1", - "uuid": "^10.0.0" + "pdf-lib": "^1.17.1" } } diff --git a/src/hooks/custom/SplitPdfHook.ts b/src/hooks/custom/SplitPdfHook.ts index 87904f12..c2d5e51e 100644 --- a/src/hooks/custom/SplitPdfHook.ts +++ b/src/hooks/custom/SplitPdfHook.ts @@ -1,5 +1,5 @@ import async from "async"; -import { v4 as uuidv4 } from 'uuid'; +import {randomUUID} from 'crypto'; import { AfterErrorContext, @@ -99,7 +99,7 @@ export class SplitPdfHook ): Promise { // setting the current operationID to be unique - const operationID = "partition-" + uuidv4(); + const operationID = "partition-" + randomUUID(); hookCtx.operationID = operationID; const requestClone = request.clone();