From 69b9c85a21234eda94a94faf52fc5e541d606a40 Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Tue, 1 Oct 2024 17:10:34 +1000 Subject: [PATCH] Update the dev dependency `form-data-encoder` to v4. --- package.json | 2 +- test/abortingMultipartRequest.mjs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b2cc7ae..aff6568 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "eslint": "^8.48.0", "eslint-plugin-simple-import-sort": "^10.0.0", "express": "^4.18.2", - "form-data-encoder": "^3.0.0", + "form-data-encoder": "^4.0.2", "graphql": "^16.8.0", "koa": "^2.14.2", "prettier": "^3.0.2", diff --git a/test/abortingMultipartRequest.mjs b/test/abortingMultipartRequest.mjs index a699435..75fa57c 100644 --- a/test/abortingMultipartRequest.mjs +++ b/test/abortingMultipartRequest.mjs @@ -23,10 +23,7 @@ export default async function abortingMultipartRequest( requestReceived, ) { const abortController = new AbortController(); - const encoder = new FormDataEncoder( - // @ts-expect-error https://github.com/octet-stream/form-data-encoder/issues/16 - formData, - ); + const encoder = new FormDataEncoder(formData); try { await fetch(url, {