From 8e78ee5215bd438ba64d4d45e35b36544af3a4e2 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 25 Oct 2023 09:10:49 +0000 Subject: [PATCH] chore(deps): update deno dependencies --- routes/generate_png.tsx | 2 +- routes/service_worker.js.ts | 2 +- utils/text.ts | 4 ++-- utils/text_test.ts | 2 +- utils/twemoji_test.ts | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/routes/generate_png.tsx b/routes/generate_png.tsx index e5f6f5e..f4be884 100644 --- a/routes/generate_png.tsx +++ b/routes/generate_png.tsx @@ -1,6 +1,6 @@ import { Handlers, RouteConfig } from "$fresh/server.ts"; -import { contentType } from "https://deno.land/std@0.173.0/media_types/mod.ts"; +import { contentType } from "https://deno.land/std@0.204.0/media_types/mod.ts"; import { getEmojiSVG, isEmoji } from "../utils/twemoji.ts"; import { getTextSVG, svgToPng } from "../utils/text.ts"; diff --git a/routes/service_worker.js.ts b/routes/service_worker.js.ts index 12a41e5..3356a5f 100644 --- a/routes/service_worker.js.ts +++ b/routes/service_worker.js.ts @@ -1,6 +1,6 @@ import { Handlers } from "$fresh/server.ts"; -import { contentType } from "https://deno.land/std@0.173.0/media_types/mod.ts"; +import { contentType } from "https://deno.land/std@0.204.0/media_types/mod.ts"; export const handler: Handlers = { async GET() { diff --git a/utils/text.ts b/utils/text.ts index 53e0602..96c7d45 100644 --- a/utils/text.ts +++ b/utils/text.ts @@ -1,9 +1,9 @@ -import { initialize, svg2png } from "https://esm.sh/svg2png-wasm@1.3.4"; +import { initialize, svg2png } from "https://esm.sh/svg2png-wasm@1.4.1/"; // NOTE: avoid TLA const initPromise = Promise.all([ initialize( - fetch("https://esm.sh/svg2png-wasm@1.3.4/svg2png_wasm_bg.wasm"), + fetch("https://esm.sh/svg2png-wasm@1.4.1//svg2png_wasm_bg.wasm"), ), Deno.readFile( new URL("./fonts/Noto_Sans_JP/NotoSansJP-Regular.otf", import.meta.url), diff --git a/utils/text_test.ts b/utils/text_test.ts index 4b5b38f..ce779c3 100644 --- a/utils/text_test.ts +++ b/utils/text_test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.173.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.204.0/testing/asserts.ts"; import { getTextSVG, svgToPng } from "./text.ts"; diff --git a/utils/twemoji_test.ts b/utils/twemoji_test.ts index 66d980c..8d985a7 100644 --- a/utils/twemoji_test.ts +++ b/utils/twemoji_test.ts @@ -1,9 +1,9 @@ -import { assertEquals } from "https://deno.land/std@0.173.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.204.0/testing/asserts.ts"; import { assertSpyCall, assertSpyCalls, stub, -} from "https://deno.land/std@0.173.0/testing/mock.ts"; +} from "https://deno.land/std@0.204.0/testing/mock.ts"; import { getEmojiSVG, isEmoji } from "./twemoji.ts";