diff options
Diffstat (limited to 'main.ts')
| -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 ------------------------------------------- ***/ |