diff --git a/deno.json b/deno.json index e8cabfd..0473671 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.11.4", + "version": "0.11.5", "license": "MIT", "exports": { ".": "./serverus.ts", diff --git a/handlers/html.ts b/handlers/html.ts index 7bb2e71..eead3b7 100644 --- a/handlers/html.ts +++ b/handlers/html.ts @@ -4,7 +4,7 @@ */ import * as path from '@std/path'; -import { md_to_html } from '@andyburke/serverus/handlers/markdown'; +import { md_to_html } from './markdown.ts'; // https://stackoverflow.com/a/75205316 const replaceAsync = async (str: string, regex: RegExp, asyncFn: (match: any, ...args: any) => Promise) => { diff --git a/handlers/typescript.ts b/handlers/typescript.ts index 25c4a0d..e68aed8 100644 --- a/handlers/typescript.ts +++ b/handlers/typescript.ts @@ -8,7 +8,7 @@ import { walk } from '@std/fs'; import { delay } from '@std/async/delay'; import * as path from '@std/path'; import { getCookies } from '@std/http/cookie'; -import { PRECHECK } from '@andyburke/serverus/server'; +import { PRECHECK } from '../server.ts'; /** A `PRECHECK_TABLE` maps from HTTP methods to an array of `PRECHECK`s to be run. */ export type PRECHECKS_TABLE = Record<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', PRECHECK[]>;