Use isHttpError utility provided by http-errors

This new utility method was introduced in http-errors v1.8.0. Let's use
that instead of instanceof. This also upgrades the http-errors dependency
This commit is contained in:
Viljami Kuosmanen 2020-10-25 11:38:54 +01:00 committed by John McLear
parent aef4cce0c9
commit c502ca3259
3 changed files with 25 additions and 6 deletions

View file

@ -45,7 +45,7 @@
"find-root": "1.1.0",
"formidable": "1.2.1",
"graceful-fs": "4.2.4",
"http-errors": "1.7.3",
"http-errors": "1.8.0",
"js-cookie": "^2.2.1",
"jsonminify": "0.4.1",
"languages4translatewiki": "0.1.3",