chore(deps): upgrade uuid to 11.0.3

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-11-11 16:14:08 +01:00
parent f8984c92cc
commit 0bb09a1597
4 changed files with 15 additions and 17 deletions

View file

@ -66,7 +66,7 @@
"rxjs": "7.8.1", "rxjs": "7.8.1",
"sqlite3": "5.1.7", "sqlite3": "5.1.7",
"typeorm": "0.3.20", "typeorm": "0.3.20",
"uuid": "10.0.0", "uuid": "11.0.3",
"ws": "8.18.0", "ws": "8.18.0",
"yjs": "13.6.20" "yjs": "13.6.20"
}, },
@ -91,7 +91,6 @@
"@types/pg": "8.11.10", "@types/pg": "8.11.10",
"@types/source-map-support": "0.5.10", "@types/source-map-support": "0.5.10",
"@types/supertest": "2.0.16", "@types/supertest": "2.0.16",
"@types/uuid": "10.0.0",
"@types/ws": "8.5.12", "@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0", "@typescript-eslint/parser": "7.18.0",

View file

@ -8,7 +8,7 @@ import { ModuleRef } from '@nestjs/core';
import { InjectRepository } from '@nestjs/typeorm'; import { InjectRepository } from '@nestjs/typeorm';
import * as FileType from 'file-type'; import * as FileType from 'file-type';
import { Repository } from 'typeorm'; import { Repository } from 'typeorm';
import { v4 as uuidV4 } from 'uuid'; import { v7 as uuidV7 } from 'uuid';
import mediaConfiguration, { MediaConfig } from '../config/media.config'; import mediaConfiguration, { MediaConfig } from '../config/media.config';
import { ClientError, NotInDBError } from '../errors/errors'; import { ClientError, NotInDBError } from '../errors/errors';
@ -97,7 +97,7 @@ export class MediaService {
if (!MediaService.isAllowedMimeType(fileTypeResult.mime)) { if (!MediaService.isAllowedMimeType(fileTypeResult.mime)) {
throw new ClientError('MIME type not allowed.'); throw new ClientError('MIME type not allowed.');
} }
const uuid = uuidV4(); // TODO replace this with uuid-v7 in a later PR const uuid = uuidV7();
const backendData = await this.mediaBackend.saveFile( const backendData = await this.mediaBackend.saveFile(
uuid, uuid,
fileBuffer, fileBuffer,

View file

@ -110,7 +110,7 @@
"sharp": "0.33.5", "sharp": "0.33.5",
"tlds": "1.255.0", "tlds": "1.255.0",
"twemoji-colr-font": "15.0.3", "twemoji-colr-font": "15.0.3",
"uuid": "10.0.0", "uuid": "11.0.3",
"vega": "5.30.0", "vega": "5.30.0",
"vega-embed": "6.26.0", "vega-embed": "6.26.0",
"vega-lite": "5.21.0", "vega-lite": "5.21.0",
@ -138,7 +138,6 @@
"@types/node": "20.16.2", "@types/node": "20.16.2",
"@types/react": "18.3.5", "@types/react": "18.3.5",
"@types/react-dom": "18.3.1", "@types/react-dom": "18.3.1",
"@types/uuid": "10.0.0",
"@types/ws": "8.5.12", "@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "8.11.0", "@typescript-eslint/eslint-plugin": "8.11.0",
"@typescript-eslint/parser": "8.11.0", "@typescript-eslint/parser": "8.11.0",

View file

@ -2588,7 +2588,6 @@ __metadata:
"@types/pg": "npm:8.11.10" "@types/pg": "npm:8.11.10"
"@types/source-map-support": "npm:0.5.10" "@types/source-map-support": "npm:0.5.10"
"@types/supertest": "npm:2.0.16" "@types/supertest": "npm:2.0.16"
"@types/uuid": "npm:10.0.0"
"@types/ws": "npm:8.5.12" "@types/ws": "npm:8.5.12"
"@typescript-eslint/eslint-plugin": "npm:7.18.0" "@typescript-eslint/eslint-plugin": "npm:7.18.0"
"@typescript-eslint/parser": "npm:7.18.0" "@typescript-eslint/parser": "npm:7.18.0"
@ -2635,7 +2634,7 @@ __metadata:
tsconfig-paths: "npm:4.2.0" tsconfig-paths: "npm:4.2.0"
typeorm: "npm:0.3.20" typeorm: "npm:0.3.20"
typescript: "npm:5.6.3" typescript: "npm:5.6.3"
uuid: "npm:10.0.0" uuid: "npm:11.0.3"
ws: "npm:8.18.0" ws: "npm:8.18.0"
yjs: "npm:13.6.20" yjs: "npm:13.6.20"
languageName: unknown languageName: unknown
@ -2727,7 +2726,6 @@ __metadata:
"@types/node": "npm:20.16.2" "@types/node": "npm:20.16.2"
"@types/react": "npm:18.3.5" "@types/react": "npm:18.3.5"
"@types/react-dom": "npm:18.3.1" "@types/react-dom": "npm:18.3.1"
"@types/uuid": "npm:10.0.0"
"@types/ws": "npm:8.5.12" "@types/ws": "npm:8.5.12"
"@typescript-eslint/eslint-plugin": "npm:8.11.0" "@typescript-eslint/eslint-plugin": "npm:8.11.0"
"@typescript-eslint/parser": "npm:8.11.0" "@typescript-eslint/parser": "npm:8.11.0"
@ -2813,7 +2811,7 @@ __metadata:
twemoji-colr-font: "npm:15.0.3" twemoji-colr-font: "npm:15.0.3"
typescript: "npm:5.6.3" typescript: "npm:5.6.3"
user-agent-data-types: "npm:0.4.2" user-agent-data-types: "npm:0.4.2"
uuid: "npm:10.0.0" uuid: "npm:11.0.3"
vega: "npm:5.30.0" vega: "npm:5.30.0"
vega-embed: "npm:6.26.0" vega-embed: "npm:6.26.0"
vega-lite: "npm:5.21.0" vega-lite: "npm:5.21.0"
@ -5718,13 +5716,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/uuid@npm:10.0.0":
version: 10.0.0
resolution: "@types/uuid@npm:10.0.0"
checksum: 10c0/9a1404bf287164481cb9b97f6bb638f78f955be57c40c6513b7655160beb29df6f84c915aaf4089a1559c216557dc4d2f79b48d978742d3ae10b937420ddac60
languageName: node
linkType: hard
"@types/validator@npm:^13.11.8": "@types/validator@npm:^13.11.8":
version: 13.11.9 version: 13.11.9
resolution: "@types/validator@npm:13.11.9" resolution: "@types/validator@npm:13.11.9"
@ -19079,6 +19070,15 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"uuid@npm:11.0.3":
version: 11.0.3
resolution: "uuid@npm:11.0.3"
bin:
uuid: dist/esm/bin/uuid
checksum: 10c0/cee762fc76d949a2ff9205770334699e0043d52bb766472593a25f150077c9deed821230251ea3d6ab3943a5ea137d2826678797f1d5f6754c7ce5ce27e9f7a6
languageName: node
linkType: hard
"uuid@npm:9.0.1, uuid@npm:^9.0.0, uuid@npm:^9.0.1": "uuid@npm:9.0.1, uuid@npm:^9.0.0, uuid@npm:^9.0.1":
version: 9.0.1 version: 9.0.1
resolution: "uuid@npm:9.0.1" resolution: "uuid@npm:9.0.1"