refactor(web): remove buffer package (#11058)

This commit is contained in:
Michel Heusschen
2024-07-12 18:40:57 +02:00
committed by GitHub
parent 1b3a7feb67
commit 5748f50c1f
5 changed files with 29 additions and 47 deletions

View File

@@ -333,3 +333,6 @@ export const withError = async <T>(fn: () => Promise<T>): Promise<[undefined, T]
export const suggestDuplicateByFileSize = (assets: AssetResponseDto[]): AssetResponseDto | undefined => {
return sortBy(assets, (asset) => asset.exifInfo?.fileSizeInByte).pop();
};
// eslint-disable-next-line unicorn/prefer-code-point
export const decodeBase64 = (data: string) => Uint8Array.from(atob(data), (c) => c.charCodeAt(0));