feat: upgrade fresh

This commit is contained in:
2025-01-05 14:59:05 +01:00
parent d0e7af971e
commit 1937ef55bb
8 changed files with 40 additions and 22 deletions

View File

@ -1,6 +1,6 @@
import { PageProps } from "$fresh/server.ts";
import { resources } from "@lib/resources.ts";
import { CSS, KATEX_CSS } from "https://deno.land/x/gfm@0.2.5/mod.ts";
import { CSS, KATEX_CSS } from "gfm";
import { Head } from "$fresh/runtime.ts";
import { Emoji } from "@components/Emoji.tsx";

View File

@ -5,7 +5,7 @@ import { AccessDeniedError, BadRequestError } from "@lib/errors.ts";
import { createStreamResponse, isValidUrl } from "@lib/helpers.ts";
import * as openai from "@lib/openai.ts";
import tds from "https://cdn.skypack.dev/turndown@7.1.1";
import tds from "https://cdn.skypack.dev/turndown@7.2.0";
import { Article, createArticle } from "@lib/resource/articles.ts";
import { getYoutubeVideoDetails } from "@lib/youtube.ts";
import { extractYoutubeId, isYoutubeLink } from "@lib/string.ts";
@ -21,8 +21,6 @@ async function processCreateArticle(
streamResponse: ReturnType<typeof createStreamResponse>;
},
) {
log.info("create article from url", { url: fetchUrl });
streamResponse.enqueue("downloading article");

View File

@ -4,7 +4,7 @@ import {
initialize,
MagickFormat,
MagickGeometry,
} from "https://deno.land/x/imagemagick_deno@0.0.25/mod.ts";
} from "https://deno.land/x/imagemagick_deno@0.0.31/mod.ts";
import { parseMediaType } from "https://deno.land/std@0.224.0/media_types/parse_media_type.ts";
import * as cache from "@lib/cache/image.ts";