fix(utils): restore missing dependencies for screenshot utility (#3016)

The relevant dependencies were lost in previous cleanups. This situation
caused the screenshot function to fail.

This PR properly cleans up the functional function and restores its
operation.

---------

Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
This commit is contained in:
zhizheng
2025-06-11 17:47:57 +02:00
committed by GitHub
co-authored by 李嘉图·M·路
parent b2807b7720
commit cb402b9839
3 changed files with 72 additions and 3 deletions
+1
View File
@@ -87,6 +87,7 @@
"fresh/dev": "./src/dev/mod.ts",
"fresh/runtime": "./src/runtime/shared.ts",
"github-slugger": "npm:github-slugger@^2.0.0",
"imagescript": "https://deno.land/x/imagescript@1.3.0/mod.ts",
"marked": "npm:marked@^15.0.11",
"marked-mangle": "npm:marked-mangle@^1.1.9",
"prismjs": "npm:prismjs@^1.29.0"
Generated
+70 -2
View File
@@ -1,6 +1,8 @@
{
"version": "5",
"specifiers": {
"jsr:@astral/astral@~0.5.3": "0.5.3",
"jsr:@deno-library/progress@^1.5.1": "1.5.1",
"jsr:@deno/cache-dir@0.14": "0.14.0",
"jsr:@deno/doc@0.172": "0.172.0",
"jsr:@deno/graph@0.86": "0.86.9",
@@ -12,6 +14,8 @@
"jsr:@marvinh-test/fresh-island@*": "0.0.1",
"jsr:@marvinh-test/fresh-island@^0.0.1": "0.0.1",
"jsr:@std/assert@0.221": "0.221.0",
"jsr:@std/assert@^1.0.13": "1.0.13",
"jsr:@std/async@1": "1.0.13",
"jsr:@std/async@^1.0.13": "1.0.13",
"jsr:@std/bytes@^1.0.2": "1.0.6",
"jsr:@std/bytes@^1.0.5": "1.0.6",
@@ -23,18 +27,25 @@
"jsr:@std/encoding@1": "1.0.10",
"jsr:@std/encoding@^1.0.10": "1.0.10",
"jsr:@std/encoding@^1.0.5": "1.0.10",
"jsr:@std/expect@^1.0.16": "1.0.16",
"jsr:@std/fmt@1": "1.0.8",
"jsr:@std/fmt@1.0.3": "1.0.3",
"jsr:@std/fmt@^1.0.3": "1.0.8",
"jsr:@std/fmt@^1.0.7": "1.0.8",
"jsr:@std/fmt@^1.0.8": "1.0.8",
"jsr:@std/front-matter@^1.0.5": "1.0.9",
"jsr:@std/fs@1": "1.0.17",
"jsr:@std/fs@^1.0.16": "1.0.17",
"jsr:@std/fs@^1.0.17": "1.0.17",
"jsr:@std/fs@^1.0.6": "1.0.17",
"jsr:@std/html@1": "1.0.4",
"jsr:@std/html@^1.0.4": "1.0.4",
"jsr:@std/http@^1.0.15": "1.0.16",
"jsr:@std/internal@^1.0.6": "1.0.8",
"jsr:@std/internal@^1.0.7": "1.0.8",
"jsr:@std/internal@^1.0.8": "1.0.8",
"jsr:@std/io@0.225": "0.225.2",
"jsr:@std/io@0.225.0": "0.225.0",
"jsr:@std/json@^1.0.2": "1.0.2",
"jsr:@std/jsonc@1": "1.0.2",
"jsr:@std/media-types@1": "1.1.0",
@@ -45,12 +56,15 @@
"jsr:@std/path@^1.0.6": "1.0.9",
"jsr:@std/path@^1.0.8": "1.0.9",
"jsr:@std/path@^1.0.9": "1.0.9",
"jsr:@std/path@^1.1.0": "1.1.0",
"jsr:@std/semver@1": "1.0.5",
"jsr:@std/streams@1": "1.0.9",
"jsr:@std/streams@^1.0.9": "1.0.9",
"jsr:@std/testing@^1.0.12": "1.0.13",
"jsr:@std/toml@^1.0.3": "1.0.5",
"jsr:@std/uuid@^1.0.7": "1.0.7",
"jsr:@std/yaml@^1.0.5": "1.0.6",
"jsr:@zip-js/zip-js@^2.7.52": "2.7.62",
"npm:@opentelemetry/api@1": "1.9.0",
"npm:@opentelemetry/api@^1.9.0": "1.9.0",
"npm:@opentelemetry/sdk-trace-base@1": "1.30.1_@opentelemetry+api@1.9.0",
@@ -76,13 +90,30 @@
"npm:ts-morph@^25.0.1": "25.0.1"
},
"jsr": {
"@astral/astral@0.5.3": {
"integrity": "d6a4628313d8be99aac0f51005c1dc090fa3b4c6b5c8335c26a52d4842aa1276",
"dependencies": [
"jsr:@deno-library/progress",
"jsr:@std/async@1",
"jsr:@std/fs@1",
"jsr:@std/path@1",
"jsr:@zip-js/zip-js"
]
},
"@deno-library/progress@1.5.1": {
"integrity": "966611826b8bb27baae73ab1c4fa4317cd4edd2abb99750cd6f8488d22d5b121",
"dependencies": [
"jsr:@std/fmt@1.0.3",
"jsr:@std/io@0.225.0"
]
},
"@deno/cache-dir@0.14.0": {
"integrity": "729f0b68e7fc96443c09c2c544b830ca70897bdd5168598446d752f7a4c731ad",
"dependencies": [
"jsr:@deno/graph@0.86",
"jsr:@std/fmt@^1.0.3",
"jsr:@std/fs@^1.0.6",
"jsr:@std/io",
"jsr:@std/io@0.225",
"jsr:@std/path@^1.0.8"
]
},
@@ -158,6 +189,12 @@
"@std/assert@0.221.0": {
"integrity": "a5f1aa6e7909dbea271754fd4ab3f4e687aeff4873b4cef9a320af813adb489a"
},
"@std/assert@1.0.13": {
"integrity": "ae0d31e41919b12c656c742b22522c32fb26ed0cba32975cb0de2a273cb68b29",
"dependencies": [
"jsr:@std/internal@^1.0.6"
]
},
"@std/async@1.0.13": {
"integrity": "1d76ca5d324aef249908f7f7fe0d39aaf53198e5420604a59ab5c035adc97c96"
},
@@ -179,6 +216,16 @@
"@std/encoding@1.0.10": {
"integrity": "8783c6384a2d13abd5e9e87a7ae0520a30e9f56aeeaa3bdf910a3eaaf5c811a1"
},
"@std/expect@1.0.16": {
"integrity": "ceeef6dda21f256a5f0f083fcc0eaca175428b523359a9b1d9b3a1df11cc7391",
"dependencies": [
"jsr:@std/assert@^1.0.13",
"jsr:@std/internal@^1.0.7"
]
},
"@std/fmt@1.0.3": {
"integrity": "97765c16aa32245ff4e2204ecf7d8562496a3cb8592340a80e7e554e0bb9149f"
},
"@std/fmt@1.0.8": {
"integrity": "71e1fc498787e4434d213647a6e43e794af4fd393ef8f52062246e06f7e372b7"
},
@@ -211,6 +258,12 @@
"jsr:@std/streams@^1.0.9"
]
},
"@std/internal@1.0.8": {
"integrity": "fc66e846d8d38a47cffd274d80d2ca3f0de71040f855783724bb6b87f60891f5"
},
"@std/io@0.225.0": {
"integrity": "c1db7c5e5a231629b32d64b9a53139445b2ca640d828c26bf23e1c55f8c079b3"
},
"@std/io@0.225.2": {
"integrity": "3c740cd4ee4c082e6cfc86458f47e2ab7cb353dc6234d5e9b1f91a2de5f4d6c7",
"dependencies": [
@@ -235,12 +288,15 @@
"@std/path@0.221.0": {
"integrity": "0a36f6b17314ef653a3a1649740cc8db51b25a133ecfe838f20b79a56ebe0095",
"dependencies": [
"jsr:@std/assert"
"jsr:@std/assert@0.221"
]
},
"@std/path@1.0.9": {
"integrity": "260a49f11edd3db93dd38350bf9cd1b4d1366afa98e81b86167b4e3dd750129e"
},
"@std/path@1.1.0": {
"integrity": "ddc94f8e3c275627281cbc23341df6b8bcc874d70374f75fec2533521e3d6886"
},
"@std/semver@1.0.5": {
"integrity": "529f79e83705714c105ad0ba55bec0f9da0f24d2f726b6cc1c15e505cc2c0624"
},
@@ -250,6 +306,15 @@
"jsr:@std/bytes@^1.0.5"
]
},
"@std/testing@1.0.13": {
"integrity": "74418be16f627dfe996937ab0ffbdbda9c1f35534b78724658d981492f121e71",
"dependencies": [
"jsr:@std/assert@^1.0.13",
"jsr:@std/fs@^1.0.17",
"jsr:@std/internal@^1.0.8",
"jsr:@std/path@^1.1.0"
]
},
"@std/toml@1.0.5": {
"integrity": "08061156e9c5716443a144b6e40a8668738b8b424ad99ab0b6fdf1b6ea4da806",
"dependencies": [
@@ -265,6 +330,9 @@
},
"@std/yaml@1.0.6": {
"integrity": "c9a5a914e1d51c46756cb10e356710035cfa905e713c90d3b711413fd3aead27"
},
"@zip-js/zip-js@2.7.62": {
"integrity": "11cbe0746fa1e52e6e0a601c89ba97365f16e38a07f139b9d9914f988aec9081"
}
},
"npm": {
+1 -1
View File
@@ -1,4 +1,4 @@
import { launch } from "astral";
import { launch } from "@astral/astral";
import { Image } from "imagescript";
if (Deno.args.length !== 2) {