From 92ad1d4546e5fb550fd50ff678eb2a0804ac4580 Mon Sep 17 00:00:00 2001 From: Martin <git@mail.de> Date: Thu, 13 Feb 2025 16:37:11 +0100 Subject: [PATCH] OZG-5977 use crypto for generating uuid --- .../libs/binary-file-shared/src/lib/binary-file.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alfa-client/libs/binary-file-shared/src/lib/binary-file.service.ts b/alfa-client/libs/binary-file-shared/src/lib/binary-file.service.ts index c07b4f245b..793380861c 100644 --- a/alfa-client/libs/binary-file-shared/src/lib/binary-file.service.ts +++ b/alfa-client/libs/binary-file-shared/src/lib/binary-file.service.ts @@ -39,8 +39,8 @@ import { import { SnackBarService } from '@alfa-client/ui'; import { HttpErrorResponse, HttpResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; -import { faker } from '@faker-js/faker'; import { getUrl, Resource, ResourceUri } from '@ngxp/rest'; +import { randomUUID } from 'crypto'; import { saveAs } from 'file-saver'; import { isNil } from 'lodash-es'; import { BehaviorSubject, forkJoin, Observable, of, throwError } from 'rxjs'; @@ -89,7 +89,7 @@ export class BinaryFileService { _buildUploadFile(toUploadFile: ToUploadFile): UploadFile { return { - key: faker.string.uuid(), + key: randomUUID(), fileToUpload: toUploadFile.file, uploadedFile: this._handleUpload(toUploadFile), }; -- GitLab