koajs / router

Router middleware for Koa. Maintained by @forwardemail and @ladjs.
MIT License
862 stars 176 forks source link

Correct @hapi/boom usage example #128

Closed RavenHursT closed 3 years ago

RavenHursT commented 3 years ago

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.

RE: https://github.com/koajs/router/issues/127

niftylettuce commented 3 years ago

Fantastic!! Thank you @RavenHursT