From ea3f379b1bd76cbc0f0832d282c75c9ef2408522 Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Sun, 22 Jun 2025 14:14:59 -0700 Subject: [PATCH] fix: let's just have some debugging --- deno.json | 2 +- server.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index b3e304d..31c6025 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,7 @@ { "name": "@andyburke/serverus", "description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.", - "version": "0.0.8", + "version": "0.0.9", "license": "MIT", "exports": { ".": "./serverus.ts", diff --git a/server.ts b/server.ts index 8a2e358..b4ce180 100644 --- a/server.ts +++ b/server.ts @@ -4,12 +4,12 @@ */ import * as colors from '@std/fmt/colors'; -import * as fs from '@std/fs'; import * as path from '@std/path'; -import { walk } from '@std/fs'; const DEFAULT_HANDLER_DIRECTORIES = [path.join(import.meta.dirname ?? '.', 'handlers')]; - +console.dir({ + meta: import.meta +}); /** A `HANDLER` must take a `Request` and return a `Response` if it can handle it. */ type HANDLER = (request: Request) => Promise | Response | null | undefined;