We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d390a9 commit 04884deCopy full SHA for 04884de
lib/router.js
@@ -5,15 +5,12 @@
5
* @link https://github.com/alexmingoia/koa-router
6
*/
7
8
-const { debuglog } = require('util');
9
-
10
const compose = require('koa-compose');
11
const HttpError = require('http-errors');
12
const methods = require('methods');
13
const { pathToRegexp } = require('path-to-regexp');
14
const Layer = require('./layer');
15
16
-const debug = debuglog('koa-router');
+const debug = require('debug')('koa-router');
17
18
/**
19
* @module koa-router
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",
0 commit comments