chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2025-11-21 08:31:02 +01:00
parent f260064083
commit f00ac1a590
No known key found for this signature in database
173 changed files with 665 additions and 752 deletions

View file

@ -16,7 +16,7 @@ describe("BlurhashPreprocessor", () => {
.png()
.toBuffer();
const inputFile = new File([inputBuffer], "test.png", {
const inputFile = new File([inputBuffer as BlobPart], "test.png", {
type: "image/png",
});
const result = await calculateBlurhash(inputFile);
@ -46,7 +46,7 @@ describe("BlurhashPreprocessor", () => {
.png()
.toBuffer();
const inputFile = new File([inputBuffer], "test.png", {
const inputFile = new File([inputBuffer as BlobPart], "test.png", {
type: "image/png",
});

View file

@ -15,7 +15,7 @@ describe("ImageConversionPreprocessor", () => {
.jpeg()
.toBuffer();
const inputFile = new File([inputBuffer], "test.jpg", {
const inputFile = new File([inputBuffer as BlobPart], "test.jpg", {
type: "image/jpeg",
});
const result = await convertImage(inputFile, "image/webp");
@ -74,7 +74,7 @@ describe("ImageConversionPreprocessor", () => {
.png()
.toBuffer();
const inputFile = new File([inputBuffer], "test.png", {
const inputFile = new File([inputBuffer as BlobPart], "test.png", {
type: "image/png",
});
@ -96,7 +96,7 @@ describe("ImageConversionPreprocessor", () => {
.gif()
.toBuffer();
const inputFile = new File([inputBuffer], "animated.gif", {
const inputFile = new File([inputBuffer as BlobPart], "animated.gif", {
type: "image/gif",
});
const result = await convertImage(inputFile, "image/webp");
@ -122,7 +122,7 @@ describe("ImageConversionPreprocessor", () => {
.toBuffer();
const inputFile = new File(
[inputBuffer],
[inputBuffer as BlobPart],
"test image with spaces.png",
{ type: "image/png" },
);

View file

@ -99,7 +99,7 @@ export const convertImage = async (
const convertedBuffer = await sharpCommand[commandName]().toBuffer();
return new File(
[convertedBuffer],
[convertedBuffer as BlobPart],
getReplacedFileName(file.name, commandName),
{
type: targetFormat,