Skip to content

Commit

Permalink
feat: use std 0.156.0
Browse files Browse the repository at this point in the history
  • Loading branch information
justinawrey committed Sep 19, 2022
1 parent 7eb7f5d commit 481849f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cli/fsrouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const args = flags.parse(Deno.args, {
negatable: Object.keys(defaultOptions),
});

await setupLogger(args.debug);
setupLogger(args.debug);
log.debug("Executable called with args:", args);

if (args.help) {
Expand Down
2 changes: 1 addition & 1 deletion core/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export async function fsRouter(
convertToNumber = true,
}: RouterOptions = {},
): Promise<http.Handler> {
await setupLogger(debug);
setupLogger(debug);

log.debug("fsRouter initialized with root dir:", rootDir);
log.debug("fsRouter initialized with options:", { debug, bootMessage });
Expand Down
2 changes: 1 addition & 1 deletion core/log.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { colors, log } from "../deps.ts";

export function setupLogger(debug: boolean): Promise<void> {
export function setupLogger(debug: boolean): void {
return log.setup({
handlers: {
default: new log.handlers.ConsoleHandler("DEBUG", {
Expand Down
14 changes: 7 additions & 7 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * as colors from "https://deno.land/std@0.154.0/fmt/colors.ts";
export * as fs from "https://deno.land/std@0.154.0/fs/mod.ts";
export * as path from "https://deno.land/std@0.154.0/path/mod.ts";
export * as http from "https://deno.land/std@0.154.0/http/mod.ts";
export * as log from "https://deno.land/std@0.154.0/log/mod.ts";
export * as flags from "https://deno.land/std@0.154.0/flags/mod.ts";
export * as asserts from "https://deno.land/std@0.154.0/testing/asserts.ts";
export * as colors from "https://deno.land/std@0.156.0/fmt/colors.ts";
export * as fs from "https://deno.land/std@0.156.0/fs/mod.ts";
export * as path from "https://deno.land/std@0.156.0/path/mod.ts";
export * as http from "https://deno.land/std@0.156.0/http/mod.ts";
export * as log from "https://deno.land/std@0.156.0/log/mod.ts";
export * as flags from "https://deno.land/std@0.156.0/flags/mod.ts";
export * as asserts from "https://deno.land/std@0.156.0/testing/asserts.ts";

0 comments on commit 481849f

Please sign in to comment.