Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Apr 24, 2024
1 parent 0bfd30a commit 3a515e6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,39 @@
"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",
"eslint": "^8.49.0",
"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"
},
Expand Down
24 changes: 12 additions & 12 deletions src/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '-';

Expand All @@ -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`);
}

Expand Down
4 changes: 2 additions & 2 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 3a515e6

Please sign in to comment.