Skip to content

Commit

Permalink
replace uuid with node:crypto (#4369)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 28, 2024
1 parent af99bda commit 9a4ec79
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions lib/support/messageMaker.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import dayjs from 'dayjs';
import merge from 'lodash.merge';
import { v4 as makeUuid } from 'uuid';
import { randomUUID } from 'node:crypto';

export function messageMaker(source) {
return {
make(type, data, extras) {
const timestamp = dayjs().format();
const uuid = makeUuid();
const uuid = randomUUID();

return merge({ uuid, type, timestamp, source, data }, extras);
}
Expand Down
13 changes: 0 additions & 13 deletions npm-shrinkwrap.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
"@sitespeed.io/plugin": "0.0.6",
"tape": "5.8.1",
"text-table": "0.2.0",
"uuid": "10.0.0",
"yargs": "17.7.2"
},
"overrides": {
Expand Down

0 comments on commit 9a4ec79

Please sign in to comment.