From 04884de4df8cdb118e4871ed802aed0ee3594d88 Mon Sep 17 00:00:00 2001 From: Jeremy Daley <77355440+jeremy-daley-kr@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:15:17 -0400 Subject: [PATCH] revert conversion of 'debug' package for 'node:util::debuglog' (#173) --- lib/router.js | 5 +---- package.json | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/router.js b/lib/router.js index 3c920d7..0dae41e 100644 --- a/lib/router.js +++ b/lib/router.js @@ -5,15 +5,12 @@ * @link https://github.com/alexmingoia/koa-router */ -const { debuglog } = require('util'); - const compose = require('koa-compose'); const HttpError = require('http-errors'); const methods = require('methods'); const { pathToRegexp } = require('path-to-regexp'); const Layer = require('./layer'); - -const debug = debuglog('koa-router'); +const debug = require('debug')('koa-router'); /** * @module koa-router diff --git a/package.json b/package.json index bb0fbaa..f64097d 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@koajs" ], "dependencies": { + "debug": "^4.3.4", "http-errors": "^2.0.0", "koa-compose": "^4.1.0", "methods": "^1.1.2",