We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a10e1 commit 1923225Copy full SHA for 1923225
templates/node/src/inputFile.ts.twig
@@ -1,13 +1,12 @@
1
-import { Blob, File } from "node-fetch-native";
+import { File } from "node-fetch-native";
2
import { realpathSync, readFileSync } from "fs";
3
4
export class InputFile {
5
static fromBuffer(
6
parts: ArrayBuffer | Blob | Buffer | string,
7
name: string
8
): File {
9
- const blob = new Blob([parts]);
10
- return new File([blob], name);
+ return new File([parts], name);
11
}
12
13
static fromPath(path: string, name: string): File {
0 commit comments