Skip to content

Commit ce07089

Browse files
committed
Fix missing library
1 parent f1a4746 commit ce07089

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/deno/src/inputFile.ts.twig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { readableStreamFromReader } from "https://deno.land/std/streams/conversion.ts";
2-
31
const _bufferToString = (buffer: Uint8Array): ReadableStream<Uint8Array> => {
42
return new ReadableStream({
53
start(controller) {
@@ -16,7 +14,7 @@ export class InputFile {
1614

1715
static fromPath = (filePath: string, filename: string): InputFile => {
1816
const file = Deno.openSync(filePath);
19-
const stream = readableStreamFromReader(file);
17+
const stream = file.readable;
2018
const size = Deno.statSync(filePath).size;
2119
return new InputFile(stream, filename, size);
2220
};

0 commit comments

Comments
 (0)