Fix FormData on Node backport

This commit is contained in:
Roj Serbest 2021-10-10 15:17:46 +03:00
parent 8fc563f5e3
commit 8b313fabb9
1 changed files with 3 additions and 0 deletions

View File

@ -4,9 +4,12 @@ import { readFileSync } from "fs";
import { randomBytes } from "crypto";
import jsSHA from "jssha";
import fetch from "node-fetch";
import FormData from "form-data";
// @ts-ignore
globalThis.fetch = fetch;
// @ts-ignore
globalThis.FormData = FormData;
export const os = process.platform;