aboutsummaryrefslogtreecommitdiff
path: root/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts14
1 files changed, 7 insertions, 7 deletions
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 ------------------------------------------- ***/