toymachiner62 / hapi-authorization

ACL plugin for hapijs
MIT License
80 stars 25 forks source link

Hapi 11: TypeError: server.after is not a function #9

Closed NicolasRitouet closed 8 years ago

NicolasRitouet commented 8 years ago

This PR fixes the error with hapi 11. Hapi 11 removed the server.after method and added a new event: https://github.com/hapijs/hapi/issues/2814

This fix will allow to support the old version of hapi if server.after is defined, otherwise, it will use the new event.

NicolasRitouet commented 8 years ago

@toymachiner62 do you plan to make a release for this?

toymachiner62 commented 8 years ago

Oops my bad. I will release it shortly.

NicolasRitouet commented 8 years ago

Awesome, thanks ! :trophy:

toymachiner62 commented 8 years ago

Version 2.2.1 pushed to npm.

NicolasRitouet commented 8 years ago

Great, thanks again.