Cleans up the code in httptrap.js and adds tests for it (100% code coverage via npm test). Also cleaned up a few bugs. Nothing should change from a user perspective.
Moves the existing hapi.js module to hapi/legacy.js. The version of hapi that was being supported is now considered legacy. Nothing should change from a user perspective.
Adds hapi/index.js for hapi 17 support. To use it, users would require('circonus-cir/hapi'). If it were automatically exposed, it would break for users on Node < 8. This is due to new language features used by hapi 17.
This PR does the following in separate commits:
npm test
). Also cleaned up a few bugs. Nothing should change from a user perspective.hapi/legacy.js
. The version of hapi that was being supported is now considered legacy. Nothing should change from a user perspective.hapi/index.js
for hapi 17 support. To use it, users wouldrequire('circonus-cir/hapi')
. If it were automatically exposed, it would break for users on Node < 8. This is due to new language features used by hapi 17.