Skip to content

Commit 1923225

Browse files
committed
fix: node 18
1 parent 57a10e1 commit 1923225

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

templates/node/src/inputFile.ts.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import { Blob, File } from "node-fetch-native";
1+
import { File } from "node-fetch-native";
22
import { realpathSync, readFileSync } from "fs";
33

44
export class InputFile {
55
static fromBuffer(
66
parts: ArrayBuffer | Blob | Buffer | string,
77
name: string
88
): File {
9-
const blob = new Blob([parts]);
10-
return new File([blob], name);
9+
return new File([parts], name);
1110
}
1211

1312
static fromPath(path: string, name: string): File {

0 commit comments

Comments
 (0)