With the latest version of @hapi/boom (v9.1.1) the notImplemented and methodNotAllowed properties on the default export of the package are not constructors. So there's not need for the keyword new. This also updates the package reference from boom => @hapi/boom.
With the latest version of @hapi/boom (
v9.1.1
) thenotImplemented
andmethodNotAllowed
properties on thedefault
export of the package are not constructors. So there's not need for the keywordnew
. This also updates the package reference fromboom
=>@hapi/boom
.RE: https://github.com/koajs/router/issues/127