From bc06c099c03579e6bda6d3a5a6b4e014b1e919fb Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Mon, 26 Oct 2026 13:21:27 -0700 Subject: new memo - migrates to Ende from Deno --- main.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main.ts') diff --git a/main.ts b/main.ts index 35d6f4e..0c9f201 100644 --- a/main.ts +++ b/main.ts @@ -4,13 +4,13 @@ /*** IMPORT ------------------------------------------- ***/ import { - join, green as shellGreen, magenta as shellMagenta, underline as shellUnderline -} from "dep/std.ts"; +} from "@std/fmt/colors"; -import { dedent } from "dep/x/dedent.ts"; +import { default as dedent } from "@netopwibby/dedent"; +import { join } from "@std/path"; /*** UTILITY ------------------------------------------ ***/ @@ -36,7 +36,7 @@ import populateRecents from "src/helper/populate-recents.ts"; const version = await getVersion(); -const server = Deno.serve({ +const server = Ende.serve({ handler: async(req) => { const { origin, pathname } = new URL(req.url); @@ -282,10 +282,10 @@ const server = Deno.serve({ ); }, port -}) as Deno.HttpServer; +}) as Ende.HttpServer; -Deno.addSignalListener("SIGINT", gracefulShutdown); -Deno.addSignalListener("SIGTERM", gracefulShutdown); +Ende.addSignalListener("SIGINT", gracefulShutdown); +Ende.addSignalListener("SIGTERM", gracefulShutdown); /*** HELPER ------------------------------------------- ***/ -- cgit v1.2.3