From e8fe009d1d16dfe5865357aafb4956440cc86c95 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Tue, 28 Nov 2023 15:37:15 +0200 Subject: [PATCH] fix: `File` polyfill --- src/polyfills/fetch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/polyfills/fetch.ts b/src/polyfills/fetch.ts index e2bde78..85040af 100644 --- a/src/polyfills/fetch.ts +++ b/src/polyfills/fetch.ts @@ -1,9 +1,9 @@ -import fetch, { Headers, Request, Response, FormData, Blob } from 'node-fetch' +import fetch, { Headers, Request, Response, FormData, Blob, File } from 'node-fetch' if (!('fetch' in globalThis)) { Object.assign(globalThis, { fetch, Headers, Request, Response, FormData }) } if (!('Blob' in globalThis)) { - Object.assign(globalThis, { Blob }) + Object.assign(globalThis, { Blob, File }) }