Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
fix: remove uuid.v4() in favor of crypto.randomUUID()
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Dec 21, 2022
1 parent d08e565 commit d585b48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
27 changes: 0 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"table": "6.8.1",
"tmp": "0.2.1",
"ts-loader": "9.4.2",
"uuid": "9.0.0",
"webpack": "5.75.0",
"yazl": "2.5.1"
},
Expand All @@ -50,7 +49,6 @@
"@types/table": "6.3.2",
"@types/terminal-kit": "2.5.1",
"@types/tmp": "0.2.3",
"@types/uuid": "9.0.0",
"@types/webpack": "5.28.0",
"@types/yazl": "2.4.2",
"aws-cdk-lib": "2.55.1",
Expand Down
4 changes: 2 additions & 2 deletions test/uuidLambda.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda'
import { v4 } from 'uuid'
import { randomUUID } from 'node:crypto'

export const handler = async (
event: APIGatewayProxyEvent,
): Promise<APIGatewayProxyResult> => {
console.log(JSON.stringify(event))
return {
body: v4(),
body: randomUUID(),
statusCode: 200,
}
}

0 comments on commit d585b48

Please # to comment.