forked from external-repos/pa11y-dashboard

This commit adds request logging to the app using morgan. Every request will now be logged not one but twice: one when the request is received, and a second time when the response is sent. The response logging also prints out the time elapsed in processing the request, which will be useful to debug performance issues (calls to the dashboard home are currently taking 4 - 15s on a populated database). The new code uses a tiny middleware that uses nanoid to generate a random request id that can be used to match requests in the logs. This logging will help us determine which requests are successful, which requests are slow, and establish what requests may have contributed to causing an application crash, making future debugging easier.
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"name": "pa11y-dashboard",
|
|
"version": "4.1.0",
|
|
"private": true,
|
|
"description": "Pa11y Dashboard is a visual web interface to the Pa11y accessibility reporter",
|
|
"keywords": [
|
|
"accessibility",
|
|
"analysis",
|
|
"report"
|
|
],
|
|
"author": "Team Pa11y",
|
|
"contributors": [
|
|
"Perry Harlock (http://www.phwebs.co.uk/)",
|
|
"Rowan Manning (http://rowanmanning.com/)"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/pa11y/dashboard.git"
|
|
},
|
|
"homepage": "https://github.com/pa11y/dashboard",
|
|
"bugs": "https://github.com/pa11y/dashboard/issues",
|
|
"license": "GPL-3.0",
|
|
"engines": {
|
|
"node": ">=12 <16"
|
|
},
|
|
"dependencies": {
|
|
"body-parser": "~1.19.0",
|
|
"compression": "~1.7.4",
|
|
"express": "~4.17.1",
|
|
"express-hbs": "~2.4.0",
|
|
"http-headers": "~3.0.2",
|
|
"kleur": "~4.1.4",
|
|
"moment": "~2.29.1",
|
|
"morgan": "~1.10.0",
|
|
"nanoid": "~3.3.1",
|
|
"pa11y-webservice": "~4.0.0",
|
|
"pa11y-webservice-client-node": "~3.0.0",
|
|
"underscore": "~1.13.1"
|
|
},
|
|
"devDependencies": {
|
|
"bower": "^1.8.13",
|
|
"cheerio": "^1.0.0-rc.10",
|
|
"eslint": "^7.27.0",
|
|
"less": "^3.11.1",
|
|
"mocha": "^8.4.0",
|
|
"pa11y-lint-config": "^1.2.1",
|
|
"proclaim": "^3.6.0",
|
|
"request": "^2.88.2",
|
|
"uglify-js": "^3.11.0"
|
|
},
|
|
"scripts": {
|
|
"start": "node index.js",
|
|
"test": "make ci"
|
|
}
|
|
}
|