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 2039cf4 commit b5dd654Copy full SHA for b5dd654
src/client.ts
@@ -124,7 +124,7 @@ export class ScrapflyClient {
124
}
125
126
if (format === 'blob') {
127
- content = Buffer.from(await response.arrayBuffer());
+ content = new Uint8Array(await response.arrayBuffer());
128
result.format = 'binary';
129
130
@@ -306,6 +306,7 @@ export class ScrapflyClient {
306
307
308
const content = new Uint8Array(result.image);
309
+
310
// Use Deno's write file method
311
await writeFile(file_path, content);
312
0 commit comments