slanatech / swagger-stats

API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
https://swaggerstats.io/
MIT License
892 stars 137 forks source link

Issue 109/auth for hapi plugin #110

Closed fenrirx22 closed 3 years ago

fenrirx22 commented 4 years ago

I've just moved the part of code for auth to separate module so I can reuse it. The hapi plugin routes are pretty similar to the express in swsInterface file. I've just used proper symbols to inform hapi that res.end was called so it will not try to do anything with the res anymore ( it would raise an exception ).

ghost commented 4 years ago

DeepCode's analysis on #bfb5e9 found:

Description Example fixes
No catch method for promise. This may result in an unhandled promise rejection. Occurrences: :wrench: Example fixes
Content-type application/json set in setHeader does not specify a charset. Add charset=utf-8 or another charset. Occurrences: :wrench: Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

sv2 commented 3 years ago

Implemented in v 0.99.1