8000 revert debuglog (#198) · koajs/router@4331e1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 4331e1f

Browse files
revert debuglog (#198)
1 parent 638aa53 commit 4331e1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/router.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
* @link https://github.com/alexmingoia/koa-router
66
*/
77
const http = require('node:http');
8-
const util = require('node:util');
98

10-
const debug = util.debuglog('koa-router');
9+
const debug = require('debug')('koa-router');
1110

1211
const compose = require('koa-compose');
1312
const HttpError = require('http-errors');

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222
],
2323
"dependencies": {
24+
"debug": "^4.4.1",
2425
"http-errors": "^2.0.0",
2526
"koa-compose": "^4.1.0",
2627
"path-to-regexp": "^6.3.0"

0 commit comments

Comments
 (0)
0