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 f1a4746 commit ce07089Copy full SHA for ce07089
templates/deno/src/inputFile.ts.twig
@@ -1,5 +1,3 @@
1
-import { readableStreamFromReader } from "https://deno.land/std/streams/conversion.ts";
2
-
3
const _bufferToString = (buffer: Uint8Array): ReadableStream<Uint8Array> => {
4
return new ReadableStream({
5
start(controller) {
@@ -16,7 +14,7 @@ export class InputFile {
16
14
17
15
static fromPath = (filePath: string, filename: string): InputFile => {
18
const file = Deno.openSync(filePath);
19
- const stream = readableStreamFromReader(file);
+ const stream = file.readable;
20
const size = Deno.statSync(filePath).size;
21
return new InputFile(stream, filename, size);
22
};
0 commit comments