Skip to content

Commit

Permalink
chore(deps): update deno dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored Mar 25, 2024
1 parent ebd427a commit d108e98
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion routes/generate_png.tsx
Original file line number Diff line number Diff line change
@@ -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.220.1/media_types/mod.ts";

import { getEmojiSVG, isEmoji } from "../utils/twemoji.ts";
import { getTextSVG, svgToPng } from "../utils/text.ts";
Expand Down
2 changes: 1 addition & 1 deletion routes/service_worker.js.ts
Original file line number Diff line number Diff line change
@@ -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.220.1/media_types/mod.ts";

export const handler: Handlers = {
async GET() {
Expand Down
4 changes: 2 additions & 2 deletions utils/text.ts
Original file line number Diff line number Diff line change
@@ -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),
Expand Down
2 changes: 1 addition & 1 deletion utils/text_test.ts
Original file line number Diff line number Diff line change
@@ -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.220.1/testing/asserts.ts";

import { getTextSVG, svgToPng } from "./text.ts";

Expand Down
4 changes: 2 additions & 2 deletions utils/twemoji_test.ts
Original file line number Diff line number Diff line change
@@ -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.220.1/testing/asserts.ts";
import {
assertSpyCall,
assertSpyCalls,
stub,
} from "https://deno.land/std@0.173.0/testing/mock.ts";
} from "https://deno.land/std@0.220.1/testing/mock.ts";

import { getEmojiSVG, isEmoji } from "./twemoji.ts";

Expand Down

0 comments on commit d108e98

Please sign in to comment.