fix(deps): update typescript-projects (#20879)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zack Pollard <zackpollard@ymail.com>
This commit is contained in:
renovate[bot] 2025-08-19 15:28:43 +01:00 committed by GitHub
parent cda7249a6a
commit 60a809d7b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 2273 additions and 1937 deletions

View file

@ -182,7 +182,8 @@ export class MachineLearningRepository {
formData.append('entries', JSON.stringify(config));
if ('imagePath' in payload) {
formData.append('image', new Blob([await readFile(payload.imagePath)]));
const fileBuffer = await readFile(payload.imagePath);
formData.append('image', new Blob([new Uint8Array(fileBuffer)]));
} else if ('text' in payload) {
formData.append('text', payload.text);
} else {

View file

@ -839,7 +839,7 @@ describe(AuthService.name, () => {
mocks.crypto.randomUUID.mockReturnValue(fileId);
mocks.oauth.getProfilePicture.mockResolvedValue({
contentType: 'image/jpeg',
data: new Uint8Array([1, 2, 3, 4, 5]),
data: new Uint8Array([1, 2, 3, 4, 5]).buffer,
});
mocks.user.update.mockResolvedValue(user);
mocks.session.create.mockResolvedValue(factory.session());