Skip to content

Commit edec89c

Browse files
committed
Fix GHSA-w5hq-g745-h8pq: upgrade uuid from v9 to v11.1.1
1 parent ebba9b1 commit edec89c

3 files changed

Lines changed: 157 additions & 99 deletions

File tree

packages/cma-client/package-lock.json

Lines changed: 154 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cma-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
"dependencies": {
4040
"@datocms/rest-client-utils": "^5.4.9",
4141
"datocms-structured-text-utils": "^5.1.4",
42-
"uuid": "^9.0.1"
42+
"uuid": "^11.1.1"
4343
},
4444
"devDependencies": {
4545
"@datocms/dashboard-client": "^5.4.21",
46-
"@types/uuid": "^9.0.7"
46+
"@types/uuid": "^11.0.0"
4747
},
4848
"gitHead": "ac4164968026ba62a2841d31d2b60c31eadb2cc8"
4949
}

packages/cma-client/src/utilities/id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function isValidId(id: string) {
7676
}
7777

7878
export function generateId() {
79-
const bytes = v4(null, new Uint8Array(16));
79+
const bytes = v4(undefined, new Uint8Array(16));
8080

8181
// Here we unset the first bit to ensure [A-Za-f] as the first char.
8282
//

0 commit comments

Comments
 (0)