diff --git a/package.json b/package.json index afbd007..730d306 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,13 @@ "parse-request": "^6.0.2" }, "devDependencies": { - "@babel/cli": "^7.22.15", - "@babel/core": "^7.22.17", - "@babel/preset-env": "^7.22.15", - "@commitlint/cli": "^17.7.1", - "@commitlint/config-conventional": "^17.7.0", + "@babel/cli": "^7.24.1", + "@babel/core": "^7.24.4", + "@babel/preset-env": "^7.24.4", + "@commitlint/cli": "^19.3.0", + "@commitlint/config-conventional": "^19.2.2", "ava": "^5.3.1", - "axe": "^12.2.3", + "axe": "^12.2.5", "babelify": "^10.0.0", "browserify": "^17.0.0", "cross-env": "^7.0.3", @@ -42,25 +42,25 @@ "eslint-config-xo-lass": "^2.0.1", "eslint-plugin-compat": "^4.2.0", "eslint-plugin-node": "^11.1.0", - "express": "^4.18.2", + "express": "^4.19.2", "express-request-id": "1", "fixpack": "^4.0.0", - "husky": "^8.0.3", + "husky": "^9.0.11", "jsdom": "15", - "koa": "^2.14.2", + "koa": "^2.15.3", "koa-better-request-id": "^1.2.0", "koa-better-response-time": "^1.2.0", - "koa-router": "^12.0.0", - "lint-staged": "^14.0.1", + "koa-router": "^12.0.1", + "lint-staged": "^15.2.2", "lodash": "^4.17.21", "nyc": "^15.1.0", "remark-cli": "^11.0.0", "remark-preset-github": "^4.0.4", "request-received": "^0.0.3", "response-time": "^2.3.2", - "rimraf": "^5.0.1", + "rimraf": "^5.0.5", "signale": "^1.4.0", - "supertest": "^6.3.3", + "supertest": "^7.0.0", "tinyify": "3.0.0", "xo": "^0.56.0" }, diff --git a/src/message.js b/src/message.js index e63abb9..d590890 100644 --- a/src/message.js +++ b/src/message.js @@ -40,12 +40,12 @@ function devFriendlyLogFormat(options) { res.statusCode >= 500 ? 'red' : res.statusCode >= 400 - ? 'yellow' - : res.statusCode >= 300 - ? 'cyan' - : res.statusCode >= 200 - ? 'green' - : 'white'; + ? 'yellow' + : res.statusCode >= 300 + ? 'cyan' + : res.statusCode >= 200 + ? 'green' + : 'white'; let responseTime = '-'; @@ -56,12 +56,12 @@ function devFriendlyLogFormat(options) { milliseconds >= 1000 ? 'red' : milliseconds >= 500 - ? 'magenta' - : milliseconds >= 250 - ? 'yellow' - : milliseconds >= 100 - ? 'cyan' - : 'green'; + ? 'magenta' + : milliseconds >= 250 + ? 'yellow' + : milliseconds >= 100 + ? 'cyan' + : 'green'; responseTime = c[responseColor](`${milliseconds} ms`); } diff --git a/src/middleware.js b/src/middleware.js index 6cbe877..23c3cdd 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -70,8 +70,8 @@ module.exports = function (...args) { typeof res._header === 'string' ? res._header : typeof res.getHeaders === 'function' - ? res.getHeaders() - : null + ? res.getHeaders() + : null }, this.config.parseRequest )