Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Apr 24, 2024
1 parent 34b50d5 commit e34688b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion functions/crypto/hmac_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createHmacSha, verifyHmacSha } from "./hmac.ts";

const signingInput = "someinput";
const key = "secret";
const decoder = new TextDecoder();

Deno.test("create and verify hmac", async function (): Promise<void> {
const signature = await createHmacSha("HS256", key, signingInput);
Expand Down
5 changes: 4 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { fallBack, logger, type LoggerOptions } from "./middlewares/mod.ts";
import { resolveMainModule } from "./functions/path.ts";

export type DefaultHandlerOptions =
// deno-lint-ignore no-explicit-any
& { handlerOptions?: ServerHandlerOptions<Record<string, any>> }
& { loggerOptions?: LoggerOptions }
& { hostname: string };
Expand Down Expand Up @@ -40,7 +41,9 @@ export function createDefaultHandler(
const handlerOptions = { ...options.handlerOptions, pid };
const loggerOptions = { debug: true, ...options.loggerOptions };

const handler = createHandler(Context)(tryMiddleware)(fallBack)(
const handler = createHandler(Context, handlerOptions)(tryMiddleware)(
fallBack,
)(
logger(options.hostname, loggerOptions),
);
return handler;
Expand Down

0 comments on commit e34688b

Please sign in to comment.