Skip to content

Commit aa22361

Browse files
committed
fix: fmt script and update denolock
1 parent 5083cf7 commit aa22361

2 files changed

Lines changed: 267 additions & 3 deletions

File tree

deno.lock

Lines changed: 259 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/utils/screenshot.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ await browser.close();
2424
// convert to jpeg
2525
const image2x = await Image.decode(raw);
2626

27-
await Deno.writeFile(`./www/static/showcase/${id}2x.jpg`, await image2x.encodeJPEG(80));
27+
await Deno.writeFile(
28+
`./www/static/showcase/${id}2x.jpg`,
29+
await image2x.encodeJPEG(80),
30+
);
2831

2932
const image1x = image2x.resize(image2x.width / 2, Image.RESIZE_AUTO);
30-
await Deno.writeFile(`./www/static/showcase/${id}1x.jpg`, await image1x.encodeJPEG(80));
33+
await Deno.writeFile(
34+
`./www/static/showcase/${id}1x.jpg`,
35+
await image1x.encodeJPEG(80),
36+
);

0 commit comments

Comments
 (0)