Skip to content

Commit

Permalink
fix large binary input on deno
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 31, 2022
1 parent e23e181 commit 08c6744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deno/mod.ts
Expand Up @@ -298,7 +298,7 @@ let ensureServiceIsRunning = (): Promise<Service> => {
},
writeFile(contents, callback) {
Deno.makeTempFile().then(
tempFile => Deno.writeFile(tempFile, new TextEncoder().encode(contents)).then(
tempFile => Deno.writeFile(tempFile, typeof contents === 'string' ? new TextEncoder().encode(contents) : contents).then(
() => callback(tempFile),
() => callback(null)),
() => callback(null))
Expand Down

0 comments on commit 08c6744

Please sign in to comment.