continuationlabs / hapi-setup

hapi plugin for viewing the server configuration
8 stars 6 forks source link

Update Plugin Logic #12

Closed arb closed 9 years ago

arb commented 9 years ago

Now that https://github.com/hapijs/hapi/commit/e0d66e80de3f817675c682ff6efad80e4d252d3b happened, we should be able to get away from _registrations.

sathishsoundharajan commented 9 years ago

May be i am getting this error due to that update.

Debug: internal, implementation, error
    TypeError: Uncaught error: Cannot convert undefined or null to object
    at Function.keys (native)
    at e:\Workspace\Sathish\hapi-killer\node_modules\hapi-setup\lib\index.js:18:
12
    at Array.map (native)
    at constructResponse (e:\Workspace\Sathish\hapi-killer\node_modules\hapi-set
up\lib\index.js:13:40)
    at Object.setup (e:\Workspace\Sathish\hapi-killer\node_modules\hapi-setup\li
b\index.js:56:12)
    at server.route.handler (e:\Workspace\Sathish\hapi-killer\lib\internals\inde
x.js:18:54)
    at Object.internals.handler (e:\Workspace\Sathish\hapi-killer\node_modules\h
api\lib\handler.js:93:36)
    at e:\Workspace\Sathish\hapi-killer\node_modules\hapi\lib\handler.js:28:23
    at internals.Protect.run (e:\Workspace\Sathish\hapi-killer\node_modules\hapi
\lib\protect.js:68:5)
    at exports.execute (e:\Workspace\Sathish\hapi-killer\node_modules\hapi\lib\h
andler.js:22:22)

Hapi 10.3

arb commented 9 years ago

We are actively working on getting this working on hapi10 (see here). However, at present, only hapi 8 and 9 are supported.