diff options
| author | netop://ウィビ <paul@webb.page> | 2026-10-26 13:21:27 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-10-26 13:21:27 -0700 |
| commit | bc06c099c03579e6bda6d3a5a6b4e014b1e919fb (patch) | |
| tree | 20c874b9455fd6f6ad323bd4557ebb947bc85e4f /main.ts | |
| parent | 02e2bc0839c1199ba090707f2067104821aed41b (diff) | |
| download | blog-bc06c099c03579e6bda6d3a5a6b4e014b1e919fb.tar.gz blog-bc06c099c03579e6bda6d3a5a6b4e014b1e919fb.zip | |
new memo
- migrates to Ende from Deno
Diffstat (limited to '')
| -rw-r--r-- | main.ts | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 ------------------------------------------- ***/ |