{"_id":"hapi-error","_rev":"31-5d64ace0aec3b7ed504c8c8959e24c64","name":"hapi-error","description":"catch errors in your hapi application and display the appropriate error message/page","dist-tags":{"latest":"3.0.0"},"versions":{"0.0.1":{"name":"hapi-error","version":"0.0.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"index.js","scripts":{"test":"tape"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","gitHead":"17e54caaaaea19aba8afceb150ba826ffbebf58a","_id":"hapi-error@0.0.1","_shasum":"852cd70ce17e6f40d118e11f30347188ed82f87f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"852cd70ce17e6f40d118e11f30347188ed82f87f","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-0.0.1.tgz","integrity":"sha512-UnAv1VKU3wAYxIXMBngPHQ3/mJt5iyqR8KQVP1rjfFlCQFyQhVJFgd67IMGZd0Y+LAH4NbDrMRrXdj5v0gL2tQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDepByeEFX/2onwG863QY/T24j9wJ8HmfjjEgD0Tuh2hgIhALqtXuPraToVOfO5XiOcWNz223sK3RF6JnDAeSkWhgjL"}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-0.0.1.tgz_1460936976224_0.3316809255629778"},"directories":{}},"1.0.1":{"name":"hapi-error","version":"1.0.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon test/server_example.js","start":"node test/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^3.1.3","decache":"^3.0.5","handlebars":"^4.0.5","hapi":"^13.4.0","istanbul":"^0.4.2","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"b8a300e11e61e76d4d77701023398f9d5113f475","_id":"hapi-error@1.0.1","_shasum":"c8f38ba48dee5bbf5f6949e85e11b417af94b452","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nelsonic","email":"nodecoder@gmail.com"},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"dist":{"shasum":"c8f38ba48dee5bbf5f6949e85e11b417af94b452","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.0.1.tgz","integrity":"sha512-WoE/bsd+sqtFT+FF/AUxRYPcTxU1bz4NTgfvy83rK7KbAjoE2tQrO0JdcTaHO52Ou51FzhKztujJJvlq/jae/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5AUjS1hSH0ffzQypzMN729L/pC4cJTf3EG841fOVAPwIhANliD1kIqGlFj8l2o4u31b8BQJWKYXJUzbmSdQqdOb8H"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.0.1.tgz_1463323001857_0.5621498508844525"},"directories":{}},"1.0.2":{"name":"hapi-error","version":"1.0.2","description":"catch errors in your hapi application and display the appropriate error message/page","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon test/server_example.js","start":"node test/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"boom":"^3.1.3","hapi":"^13.4.0","handlebars":"^4.0.5","vision":"^4.1.0"},"devDependencies":{"decache":"^3.0.5","istanbul":"^0.4.2","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0"},"pre-commit":["check-coverage"],"gitHead":"af466c38dfa9a00903f6fd16d3ec7bc71089e0ef","_id":"hapi-error@1.0.2","_shasum":"bb6ef4adcace9cbfdbaba290c8f7392660fee50d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nelsonic","email":"nodecoder@gmail.com"},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"dist":{"shasum":"bb6ef4adcace9cbfdbaba290c8f7392660fee50d","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.0.2.tgz","integrity":"sha512-jjphRGAmdbS/nZza567FpiJge8S6uAs86uUWT7ZdTnks/8C2IlnbKkKuSz9z9fpmzkIFO+8EgzDaB2Z/84EjyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFYxWUfL5IpjuE+TARkVa9gXcxg1XvlmpUgO1ePwN26gIhAMPlBI1tO7n3F+ECM0ZPOWMfYa7oZZhXRw3EG/nIABPw"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.0.2.tgz_1463326756206_0.531152005540207"},"directories":{}},"1.0.3":{"name":"hapi-error","version":"1.0.3","description":"catch errors in your hapi application and display the appropriate error message/page","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^3.1.3","decache":"^3.0.5","handlebars":"^4.0.5","hapi":"^13.4.0","hoek":"^4.0.0","istanbul":"^0.4.2","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"1c42635c8bd16230c273f3f58de0bbda4ce10985","_id":"hapi-error@1.0.3","_shasum":"bd7303ef8a52bf8521a3d14274c02836b11ee78e","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nelsonic","email":"nodecoder@gmail.com"},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"dist":{"shasum":"bd7303ef8a52bf8521a3d14274c02836b11ee78e","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.0.3.tgz","integrity":"sha512-2NdzjBz/lxwBoOwCNpOflhXH2bH2bhL75RoNQkujM2RdGq0Q/6WDPbNpMQke+25Q391L2uR4USvXdbNGTfgVjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFVmrz+wH/cCzwJMbkFt7d6GcCVRxcstRQummaxk61mwIhALC/jWzxkMI/9T+eM9Hw/IXUAIG4PfznnPfmtvdPN17t"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.0.3.tgz_1463328925775_0.685712929116562"},"directories":{}},"1.0.4":{"name":"hapi-error","version":"1.0.4","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^3.1.3","decache":"^3.0.5","handlebars":"^4.0.5","hapi":"^13.4.0","hoek":"^4.0.0","istanbul":"^0.4.2","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"e2946e944de410742527a87fac73b4b9a8c8c187","_id":"hapi-error@1.0.4","_shasum":"10ade73cd8d51e4d03454a376414011339e7c2e4","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nelsonic","email":"nodecoder@gmail.com"},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"dist":{"shasum":"10ade73cd8d51e4d03454a376414011339e7c2e4","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.0.4.tgz","integrity":"sha512-jsRTYVh4vYIkeAhqZKVztzx0htLxlyEUeRugHTA4KAPLHbYMELzXd9M5fAcxBX2cobwVO3GAydUyuUOTtFoj2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSsWyTUxOGAb12MD5t5cH2JpD0U3pG45V6BPMfS5XKBwIgHYFgHLMyyDWTGU7gxioyvyYQgEUQflEEK7MN1ZgiiVE="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.0.4.tgz_1463338301141_0.24210857530124485"},"directories":{}},"1.1.0":{"name":"hapi-error","version":"1.1.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^3.2.2","decache":"^4.1.0","handlebars":"^4.0.5","hapi":"^14.2.0","hoek":"^4.0.2","istanbul":"^0.4.2","joi":"^9.0.4","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"4c0af22c899db16e00f71b2e64cb1ec51fb3e7d3","_id":"hapi-error@1.1.0","_shasum":"c0deca28db41875a9ce4539573f3936912187ad6","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"c0deca28db41875a9ce4539573f3936912187ad6","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.1.0.tgz","integrity":"sha512-41ldFPR9u77YvrDwINP4vYHnhNAyRfhR5B0H/f4ou7CX2YBNZH42/q8BDRA/cVv4zRnfIksWvLEwZZfdr34f8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8tghdHi6pePpmdJj9g2bjGoDX2oFYKVka1TxZtsyA0AIhAOv5ss/UV4hDsmjIDb9TWKWt6oVQDN+cHeipMZTb3gGo"}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.1.0.tgz_1471890782079_0.4276933507062495"},"directories":{}},"1.1.1":{"name":"hapi-error","version":"1.1.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^3.2.2","decache":"^4.1.0","handlebars":"^4.0.5","hapi":"^14.2.0","hoek":"^4.0.2","istanbul":"^0.4.2","joi":"^9.0.4","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"70a831f8d5ebb1f57dc20bbd16c3315a80fca4e0","_id":"hapi-error@1.1.1","_shasum":"b994d7bcd0d6117e39003e40f0a791901da04d04","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"b994d7bcd0d6117e39003e40f0a791901da04d04","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.1.1.tgz","integrity":"sha512-MtxBdtPy9ahVftCubFAI/iBF3aC7o3fV6MSBba1UPH0M1HByezt562sPwFAQoRjRyeMbJj3+EYeEdm3XhpmxIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsTcLeev2utnhr1rSbj0RMCrrpU9BViREGjbZ0vQ4coAIhAIKJkm513VpeZbzsCPft5fO7FItiLTRbw75KonQXO+l6"}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.1.1.tgz_1472062004357_0.9306807175744325"},"directories":{}},"1.1.2":{"name":"hapi-error","version":"1.1.2","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^3.2.2","decache":"^4.1.0","handlebars":"^4.0.5","hapi":"^14.2.0","hoek":"^4.0.2","istanbul":"^0.4.2","joi":"^9.0.4","nodemon":"^1.9.1","pre-commit":"^1.1.2","tap-spec":"^4.1.1","tape":"^4.4.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"dee6e858b5745d2b1fb11d27e07bc6468c8bb232","_id":"hapi-error@1.1.2","_shasum":"22bfe4f97b68ee94d8368bdcbd95c0283012e075","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nelsonic","email":"nodecoder@gmail.com"},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"dist":{"shasum":"22bfe4f97b68ee94d8368bdcbd95c0283012e075","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.1.2.tgz","integrity":"sha512-aho9zf+fZlEreCBCh/bsDqZL5G9oj511s2rLa5D9D9I8b5TYkhIyqkB/I1evy72jUM9FI/oPsXP7a5sjUoqCGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYDMfUcILl10ykk5qlECFAVb2n93OpjCKzoXwX8FG5aQIhANrkQcfDRHicdoQoW1UTJ1D+FieSZQoje9jgp0GAxvVh"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.1.2.tgz_1472116921157_0.7399871698580682"},"directories":{}},"1.1.3":{"name":"hapi-error","version":"1.1.3","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{},"devDependencies":{"boom":"^4.0.0","decache":"^4.1.0","handlebars":"^4.0.5","hapi":"^15.0.2","hoek":"^4.0.2","istanbul":"^0.4.5","joi":"^9.0.4","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.0","vision":"^4.1.0"},"pre-commit":["check-coverage"],"gitHead":"b243272862e662686f471ef4d4f65bfe924caa1d","_id":"hapi-error@1.1.3","_shasum":"297b1022298debc32db30f553eb0842d3560123d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nelsonic","email":"nodecoder@gmail.com"},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"dist":{"shasum":"297b1022298debc32db30f553eb0842d3560123d","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.1.3.tgz","integrity":"sha512-4d8IP3Vz/xf+mlMx7qK095kMrDMRAqCs1DOLAXb+yHnaBwv1LAp6J/i8YaOU8OAd6kA9cLcJPYladIVAcEf2Rg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1Mxu9/s4d9fRaB02oQZkWk9/2Gculho9MomAO42GhzAiEA1Wz0VktaAebh9TLk2pcBouMFh/Lxr0GkL3g6Nur5HXU="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.1.3.tgz_1472470108044_0.41965721431188285"},"directories":{}},"1.2.0":{"name":"hapi-error","version":"1.2.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.0.2"},"devDependencies":{"boom":"^4.0.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.0.2","istanbul":"^0.4.5","joi":"^9.0.4","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.0","vision":"^4.1.0"},"pre-commit":["lint","check-coverage"],"gitHead":"451975f9fa738256b1455632f750ee21ddd4f154","_id":"hapi-error@1.2.0","_shasum":"318d8a8ece22a1d8bb847963e7f9e8666970f537","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"318d8a8ece22a1d8bb847963e7f9e8666970f537","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.2.0.tgz","integrity":"sha512-JKTF9B0Yz+0WyECNlsGjRVYNOrIkR2C4QlfIQOVlxtr6RCeqS9xVz+oT2/PE31YhsL8uGoYgSphCN7VwbHrgtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwPekIe9QjvwuJ2QKyUBWG8CrDl8+lF38+n4iYKeM9oAiBqUTY2vsjLsqBmUAB1uOoDC3Alz4E8O2NS9o/c5n7+3w=="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.2.0.tgz_1475594071336_0.40812823129817843"},"directories":{}},"1.3.0":{"name":"hapi-error","version":"1.3.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.0.2"},"devDependencies":{"boom":"^4.0.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.0.2","istanbul":"^0.4.5","joi":"^9.0.4","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.0","vision":"^4.1.0"},"pre-commit":["lint","check-coverage"],"gitHead":"02cc014a49b9ea25c67dd32430dd081e173ccd36","_id":"hapi-error@1.3.0","_shasum":"d56516ca8fbdbf79d16271076827a0d58c8b461b","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"d56516ca8fbdbf79d16271076827a0d58c8b461b","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.3.0.tgz","integrity":"sha512-8K3St5HiM1plYGvx3aZiKun0LqWq7q/TeFkvIlQNIYahwJZ3I858MLzu7gHE/u6J6UCDMyZA/bFusIqBmDrF4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNrWbpNSHA3mFKeeWeEW1wWNiOx/ck1BaEyJlU9dFXDwIhAMyYP6LVzrHmxdgMmFf4mpXNI5lTJQoWOOQgJNaHOWOH"}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.3.0.tgz_1475627063760_0.6119657412637025"},"directories":{}},"1.4.0":{"name":"hapi-error","version":"1.4.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"coverage":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","test":"npm run coverage","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"keywords":["error","message","html","json","page","useful"],"author":{"name":"dwyl & co"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.0.2"},"devDependencies":{"boom":"^4.0.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.0.2","hapi-auth-jwt2":"^7.1.3","istanbul":"^0.4.5","joi":"^9.0.4","jsonwebtoken":"^7.1.9","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.0","vision":"^4.1.0"},"pre-commit":["lint","check-coverage"],"gitHead":"9504e02422a172345e29e65f1ae2774004759716","_id":"hapi-error@1.4.0","_shasum":"70746604424dee98ac6e8f94a1b963eb69d8e277","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"70746604424dee98ac6e8f94a1b963eb69d8e277","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.4.0.tgz","integrity":"sha512-wfumH20QAinT77kIETITUKRhv7U29CjwJDwETOxy813NS28zsii3bDN9hrnT0XP3h9FUJ9NwWcds+yb6p7VJEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzUbUV3koLH9eoSd337Kf7ua6lfKyys98lCdBR7RtywAiEA9lGJ80aE3rqWV60P/BLhKoDpeaGtLzFPNsywXvLZlhU="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.4.0.tgz_1475694340272_0.4806380304507911"},"directories":{}},"1.4.1":{"name":"hapi-error","version":"1.4.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run coverage && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.1.0"},"devDependencies":{"boom":"^4.1.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.1.1","hapi-auth-jwt2":"^7.1.3","istanbul":"^0.4.5","joi":"^9.1.0","jsonwebtoken":"^7.1.9","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.2","vision":"^4.1.0"},"pre-commit":["lint","test"],"keywords":["custom","customise","error","hapi","hapijs","hapi.js","helpful","html","json","message","page","useful","user friendly"],"author":{"name":"dwyl & co"},"gitHead":"aaa9e08b7f32bd06bd9b38f56529d343f6f187de","_id":"hapi-error@1.4.1","_shasum":"77b046247b8014ab84eaf1fdaea0affc8fbd7922","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"77b046247b8014ab84eaf1fdaea0affc8fbd7922","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.4.1.tgz","integrity":"sha512-fHiKG+UEhMYqC97EsjB5fRW/x1hsCBeWs5YeF99LWi+ZUOwie5xIo57IKD1qzT+xwOzDLhxnmZJr536RiB9Vmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbvWDZqDKBjb6gMVUd1st2je6k9E/+AtC54K/Qy1CB3AiEAkLD4KX2SGZT6IhzOg0jD2oVUgL7aNV5UD0/K/gtP2jw="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.4.1.tgz_1475753130787_0.9730863161385059"},"directories":{}},"1.5.0":{"name":"hapi-error","version":"1.5.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.1.0"},"devDependencies":{"boom":"^4.1.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.1.1","hapi-auth-jwt2":"^7.1.3","istanbul":"^0.4.5","joi":"^9.1.0","jsonwebtoken":"^7.1.9","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.2","vision":"^4.1.0"},"pre-commit":["lint","check-coverage"],"keywords":["custom","customise","error","hapi","hapijs","hapi.js","helpful","html","json","message","page","useful","user friendly"],"author":{"name":"dwyl & co"},"gitHead":"899c81010abc9959c531c5f808ad7627254cbb60","_id":"hapi-error@1.5.0","_shasum":"06c77e3eeaddfb05a31ccf835f08e77b8bb1dbab","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"06c77e3eeaddfb05a31ccf835f08e77b8bb1dbab","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.5.0.tgz","integrity":"sha512-Jyt+jizqvOgCYChBA9LWvBPLJiYgh6sZu2nHP8xol2NKv9wbS0kj9ViaSXqPs8sA6YLKvBjes/R57fHo0zHEyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIDMhe+bcCALzsZ0K2+Oio4yfHoZcYSyZNPa/cLhaRDwIgcqQjK8AgFE8LjuQ9PKkvf1+g9mSsFFHnakrpID9cOFA="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.5.0.tgz_1476443658917_0.047084603225812316"},"directories":{}},"1.5.1":{"name":"hapi-error","version":"1.5.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.1.0"},"devDependencies":{"boom":"^4.1.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.2.0","hapi-auth-jwt2":"^7.2.0","istanbul":"^0.4.5","joi":"^10.0.1","jsonwebtoken":"^7.1.9","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.2","vision":"^4.1.0"},"pre-commit":["lint","check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"gitHead":"3b966b1a4a8b22f33834afc12608e7b66f9d6465","_id":"hapi-error@1.5.1","_shasum":"268c0fdc3d89d25f9c9dc57308f3ca4851bc920c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"268c0fdc3d89d25f9c9dc57308f3ca4851bc920c","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.5.1.tgz","integrity":"sha512-v/w8m3GkQhuEhkZI3Y616DNCwQhweHViLEyHV4qMnQgI362XlVHRuXQKgZeAu8ALUuvYBYi4uccJfndW/BX60w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEC6Do7tP+gawQwHl5bgWBs7LmQGlClZZSIx1qezh+9tAiEAlhn6tDZnEf/rD/b0A0LvAkIybjhjyCifNHYbcrsFOAA="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.5.1.tgz_1479541882196_0.10410856152884662"},"directories":{}},"1.6.0":{"name":"hapi-error","version":"1.6.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.1.0"},"devDependencies":{"boom":"^4.1.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.2.0","hapi-auth-jwt2":"^7.2.0","istanbul":"^0.4.5","joi":"^10.0.1","jsonwebtoken":"^7.1.9","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.2","vision":"^4.1.0"},"pre-commit":["lint","check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"gitHead":"0f3f8ef1743b5ba0061e30b9ae3aec0ed32185ba","_id":"hapi-error@1.6.0","_shasum":"2935eaa92cc5a9c0bb9ec7575891bea4ede34c08","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"2935eaa92cc5a9c0bb9ec7575891bea4ede34c08","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.6.0.tgz","integrity":"sha512-DGacupDln53GLAMUz6OZ7doqCXdug88krR2FZ3NsthxRHfncMzPgxPEX/hTfJbadvNOpv5nrUulQcZ/q/1AzTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqX+Zw3bwwU6tydsAucjWfwjElQMYnAnYA9nBDil0NZAiAW+ox3ntyH5FiNeRWmxmyO88G2ZW0cIt82FPTu3OPE7Q=="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-error-1.6.0.tgz_1479724636474_0.23576774774119258"},"directories":{}},"1.7.0":{"name":"hapi-error","version":"1.7.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.1.0"},"devDependencies":{"boom":"^4.1.0","decache":"^4.1.0","good":"^7.0.2","good-console":"^6.1.2","good-squeeze":"^5.0.0","goodparts":"^1.1.0","handlebars":"^4.0.5","hapi":"^15.2.0","hapi-auth-jwt2":"^7.2.0","istanbul":"^0.4.5","joi":"^10.0.1","jsonwebtoken":"^7.1.9","nodemon":"^1.10.2","pre-commit":"^1.1.3","tap-spec":"^4.1.1","tape":"^4.6.2","vision":"^4.1.0"},"pre-commit":["check-coverage","lint"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"gitHead":"915a48a0f26a71f105024610200000bb7db2c0ed","_id":"hapi-error@1.7.0","_shasum":"9015e8d49980bdb9550cfdce815cc010030e12dc","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"9015e8d49980bdb9550cfdce815cc010030e12dc","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.7.0.tgz","integrity":"sha512-nPFQWbN71otqUDnx4z1W6cqYUttW2DtZviX0XfVXNBcHcDiJZ9j7baVML8f0L+ReD+SmLBF0l2d9S86P61aaHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUOrwxe36Np+TbKWdtu9amLnSKj717F5JVDjW0hl9GAgIgFx57VLDiyabKoawhWttLGlFUF8MDIjZtcEthIwXcYq8="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/hapi-error-1.7.0.tgz_1484319765117_0.980064052157104"},"directories":{}},"1.8.0":{"name":"hapi-error","version":"1.8.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js  | node_modules/tap-spec/bin/cmd.js","nocov":"./node_modules/tape/bin/tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^4.1.0"},"devDependencies":{"boom":"^5.1.0","decache":"^4.1.0","good":"^7.2.0","good-console":"^6.4.0","good-squeeze":"^5.0.2","goodparts":"^1.2.1","handlebars":"^4.0.10","hapi":"^16.4.3","hapi-auth-jwt2":"^7.3.0","istanbul":"^0.4.5","joi":"^10.6.0","jsonwebtoken":"^7.4.1","nodemon":"^1.11.0","pre-commit":"^1.2.2","tap-spec":"^4.1.1","tape":"^4.7.0","vision":"^4.1.0"},"pre-commit":["check-coverage","lint"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"gitHead":"db83dea54344a8e0429ee86f2d24464204c157de","_id":"hapi-error@1.8.0","_shasum":"f12ec881c71ebd1ae80b9bbcb987b5273ba4d57b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"shasum":"f12ec881c71ebd1ae80b9bbcb987b5273ba4d57b","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-1.8.0.tgz","integrity":"sha512-hU74d125AyVJkcjuo82z0RoZVTge6gCxdwq+DfdprQ+9uzrGbtmxUDepHTs/4Qbj57I2Ly+10N75D2CenxRGGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyKNYKxjwcSOgyzjYcGQVkkI5VXIgIP7OmW8o0+Co8dgIhAIbdAVxo8UOUajvSaRGMGEvdkYpYxD0KaN9gZadjub3d"}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error-1.8.0.tgz_1499821170504_0.04234888916835189"},"directories":{}},"2.0.0":{"name":"hapi-error","version":"2.0.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","codecov":"nyc report --reporter=text-lcov > coverage.lcov tape ./test/*.test.js && codecov","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^5.0.3"},"devDependencies":{"boom":"^7.2.0","codecov":"^3.0.4","decache":"^4.1.0","good":"^8.1.1","good-console":"^7.1.0","good-squeeze":"^5.0.2","handlebars":"^4.0.10","hapi":"^17.2.3","hapi-auth-jwt2":"^8.1.0","joi":"^13.4.0","jsonwebtoken":"^8.3.0","nodemon":"^1.11.0","nyc":"12.0.2","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"4.9.1","tape-async":"2.3.0","vision":"^5.3.3"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","test/*.js"]},"gitHead":"61acf86efe27c6e3dcb1e4e30c2542fcd1d889cb","_id":"hapi-error@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"integrity":"sha512-b2ztL8EQHHZvwaWwmYGWxr9iIKaMs1DbYQCU/bJiOcTV90Khr0soFCaY3pjoFFFTTbKqdwjbNIPopnphJs7fjw==","shasum":"c7849b78bb9030a85c6248564f30bc7efe9d3fcc","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-2.0.0.tgz","fileCount":16,"unpackedSize":39749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbilZnCRA9TVsSAnZWagAA1gwP/3nhUEh3MgNn3+lMU3Bl\nwBLbqz8NmmmSyZZj7w5ifw91hksgVKVM9NlDIgK520RJG/5d1y4K4LhYD2++\nEHErN6LH+AuKDqaWdQiTzJvpkFATzkHCWlWR21N2kc9i23KvUz94vYliBnzH\nmattTmECqljmdANwG2ycY1RNCwq43+72ISCTeWO1p6Ff8uudfZiFaqE1tSCM\n+8VVQ+FOR+ZCfsUluo2DoQ37OfHosUewg71YH7S0QGsv7YdWiqGpBf5M5dcR\nondvYSe404hfKx6Rh4jdylqOuyKWQmEfYFip2cTM5mrDVk7vpO7+OTIT7Mv/\nH4Xa0tdVNtl+r21MHCx1/fSn+Jlphqxv66ilDeeoZ4p5+dtV/Y+L/XS4guAA\nXTGa95RsDQ9dtowvVDQNlmc2hPlLl+5tDDaSnHz/n7mSCvvgczsY1j2CT3F8\n0Dkh2kgD6xxfsH+zkSJOnjdD0y9rZ9WoNgsPty0MkE8NqGr5ubsALruebL0y\nQZXcKCF81ZlBL43qkIsbDbAMET5flRsPl2801GFwoi5QFB4bhd007ztT7Qy1\nPmJmMdItrPX5/4ybz2M5Cke5mkwDPgPuPEIrmy7NL3RV+93YQxlslnA3/Qle\nrct7pSE1g5OvEjrPQO5Ss+KM17ceWV1HqbiA8Isk2X3v9axM1TmcPnY557fg\nDx7X\r\n=GBjj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCFkzrw1emd2ZH+wrmYwg8ZXNfylGVssyCPwnjenj4oAIgOVWs6kOoiD3t292k+hVEkSX2oPbiLH9/vYzGmHNLV5k="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_2.0.0_1535792742231_0.8972289455395888"},"_hasShrinkwrap":false},"2.0.1":{"name":"hapi-error","version":"2.0.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","codecov":"nyc report --reporter=text-lcov > coverage.lcov tape ./test/*.test.js && codecov","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^5.0.3"},"devDependencies":{"boom":"^7.2.0","codecov":"^3.0.4","decache":"^4.1.0","good":"^8.1.1","good-console":"^7.1.0","good-squeeze":"^5.0.2","handlebars":"^4.0.10","hapi":"^17.2.3","hapi-auth-jwt2":"^8.1.0","joi":"^13.4.0","jsonwebtoken":"^8.3.0","nodemon":"^1.11.0","nyc":"12.0.2","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"4.9.1","tape-async":"2.3.0","vision":"^5.3.3"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","test/*.js"]},"gitHead":"da7f02480f645c976d57df11c52fc690685e20da","_id":"hapi-error@2.0.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"integrity":"sha512-6GDSe1NXz3O6U96sS//uPtK+uZpfeq2GMMCfyfYcN3xktQO7i08Uhme9884VuxrzG4wui8oO128CORvuJefEOQ==","shasum":"49f2e9e07ac395606382d48cb2bffb6f992f08d6","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-2.0.1.tgz","fileCount":16,"unpackedSize":39373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbilbtCRA9TVsSAnZWagAAtBsQAJbVBiryhvKJsWY69Hnj\nxN5oivtJkxi9Xp6YgAT6V31ErWdm5Rx4eAJHwR/UcqJFsEZYPUEv8MaRz4A3\nJ2hsyV5JZW9I53pti4FrXaHx3Mfkr+zogJE0O0tbrzA/UKtdXaSjshcl7F+J\nfC6OSGhDCurLPDpayuEQ8K+CR3yeztyFoH6DA/ohCO7T1znLuMT4O3ruzkIi\n/y+OoUohImr3znm7uuCcYbSE3Mjlgx5f4Ho3PVPLI4RsJTzjoHWF5X0FhhvP\nvCuxsmtxmtUu7yQrqv8WSelORyxEb7oFZ+58sOs7tCHCW8PYGqvTjhtkg+Fm\naYDIzL+l5Cn1pnzYD3lrJtVTBJkZNTqMR0tWa7AphansPJvmWoxqqcp+BZKK\n56piRub6ay7gIX7NsVA2MbKMpSm0u5aIVtpfd/Fiy+wdU84pvMi+HEekpPP9\nY+golsIkSKPUUzCus2RnwuHbx4iCEoYxmMW014YNOKmhVviHqH3Y1fCAujb+\nGKmcmO08VMV6p3BZOguRHWl2yRtJYVjuf9WKtkRbDkpHjrhN4pt5F65XPwN0\nQlRwJ5ldMx/0vPPhILd0dOYhDrYu+Oe5J6002n4DkAOeTX5RdszGu+k+yFcd\nE4adVrDTKc/rhS55SVz39o0wrBDT2OX9YEMi//70wahxaWPOTOGGpnHGqUU3\n4DSL\r\n=sdzB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3yI8+uAAr/fvYZIMaFcN2lV9mYMpqEr6PwbxBATJmfAiBC1QMB7ybhEZDjDlSECYr+eKT1FTpnD2fQ+4MmY9y97w=="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_2.0.1_1535792877220_0.6034521957790564"},"_hasShrinkwrap":false},"2.1.0":{"name":"hapi-error","version":"2.1.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","codecov":"nyc report --reporter=text-lcov > coverage.lcov tape ./test/*.test.js && codecov","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^5.0.3"},"devDependencies":{"boom":"^7.2.0","codecov":"^3.0.4","decache":"^4.1.0","good":"^8.1.1","good-console":"^7.1.0","good-squeeze":"^5.0.2","handlebars":"^4.0.10","hapi":"^17.2.3","hapi-auth-jwt2":"^8.1.0","joi":"^13.4.0","jsonwebtoken":"^8.3.0","nodemon":"^1.11.0","nyc":"12.0.2","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"4.9.1","tape-async":"2.3.0","vision":"^5.3.3"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","test/*.js"]},"gitHead":"27221501a4e3ad0f0d13c406fb1c142678db11f8","_id":"hapi-error@2.1.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"integrity":"sha512-SxA2LSmnb/ZJ6bZKFvpx+qWzIyfLiBe9E6ncC/GjxGj5BZjXQr7i/ffMkzwJziw9SKino0boWpbN/grxj78qiQ==","shasum":"41b55ce3378a5a7e382e67c76ae9582153a22b63","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-2.1.0.tgz","fileCount":16,"unpackedSize":39372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboxxjCRA9TVsSAnZWagAAeDQP/2nFwnVg1vCa+4ublCQT\nPFnlqsVlGXuP8IzMr/bno9urPu/AGmWI88kEa+sk6L3BazF2IUA5QZNFOQYI\nbQGBlFSeoL7eW9yLgKOROCpUtvayg/BHsDW2DJSQ0x+xLFsmWWZr95Ars3oG\ntqK4RM/nuLV6ZpYr8NuprtSIXgCvLf0xqX5yU00IMP2LYFjDnV5D7gb+Mtf8\nuxpdC6AcExLu726Q3nEdQSVMkMd6XI2i0Mne7gRr8GdgH/TB0F0kIUqL5YWJ\nax1j7FjsOMCs+/Ciaq7j/vDqAmDDmjo4/ugz3K5wwYCdXKwYnqRAYXXquLzm\nF1yx/b2TeeJcByYkinZDDdWu6O0I7abThXIbAjrJF7Q65z7NZ9b7J2UGRXPG\nMum/AKcctVLJmVy0lqQZwo6KLpCOOX/8nHlDmiBblVzHqJBw+9fU9BV3YKhj\n5ibglpJyZs87DGwM2wUFrR31NfRGpYUW+7rqjZAnm0fd3PxBy3dldt5dIrpw\nns1dMGhQGVbcH4NgP7tXvm0kGNCyl4PvsUlRcgEQWqAZ/tzsVrAi+a8iN4GK\nKDxOrENW4Jhfao3LJBxBUjNSjsXglDne1oMvzoKGatatVanAjrKYq2pLS1nN\nW8ohoJX8zNN5M3eDNGHzKiRDPWxJb1UgXi+VRAzLUX4IlsrtQYt4ZBNNItmb\nZQYU\r\n=fj1m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzlAUDlLsq+705VqLNb0SX5rB6jyVoijsSZYz+YvPjPAIhAND/jYVhx6tYzXJ3NHbhTQdLd4Ex+WvlyCmKp0cRvLJ1"}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_2.1.0_1537416290723_0.6331873325197592"},"_hasShrinkwrap":false},"2.2.2":{"name":"hapi-error","version":"2.2.2","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"hoek":"^5.0.3"},"devDependencies":{"boom":"^7.2.0","decache":"^4.1.0","good":"^8.1.1","good-console":"^7.1.0","good-squeeze":"^5.0.2","handlebars":"^4.0.10","hapi":"^17.2.3","hapi-auth-jwt2":"^8.1.0","joi":"^13.4.0","jsonwebtoken":"^8.3.0","nodemon":"^1.11.0","nyc":"12.0.2","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"4.9.1","tape-async":"2.3.0","vision":"^5.3.3"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","coverage/*","test/*.js"],"report-dir":"./coverage","reporter":["lcov","text"],"cache":false,"all":true},"gitHead":"64634b198bc976cd51c6c3b38751424740c207a7","_id":"hapi-error@2.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"integrity":"sha512-yrQWj2fyl2UPngWX+nIjDE/plRRSTzMX1GK4n1J7xQStIn4hE+gFpvJAASrabwmSZCedpW1Q+cmZkPMaAnUG+A==","shasum":"8e173f028f17b9ca49fd294fd6ddf3a9cff757d7","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-2.2.2.tgz","fileCount":16,"unpackedSize":40508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMFkoCRA9TVsSAnZWagAA5qgP/jH5Op87HAY4UgsUpSxW\nP9/zixezLk6bQpzMJ3VRNzKgt+B3ZEtwPUHLRmhMKGJysTP7Wx15vk2MvvF9\nu2DPQjoQUfClLwmFtANOJXzF4pRm5ViQaHGlBNH5C4acCg0pDf6nJsGudweQ\nz6DyuDQFa4OlMCGs5Yf15JgWAjTPUT2Q2ujeuG7PYjHdeyUU9Kc54ciwNUC+\n9evWFqViGd+2vxeiTjCZiPU5Dwo5sTfaSP5QbVdn7l0v2ZCV5U5PNcN4r8O2\n3xfBpsjY5TKtWOPbIqybuCRaJKdFmKtGUnxWHKKSBCQ7ItokjWRheNYiwZ8C\nQboP2rY9Ow/uok9z56/eDqAonx9q6PUC3dnKviNeS1YIjc92JxKEZdXBgY1l\nhxQmEurFQoE/8m1qPCy2yZq0twaRDpmwO0V4e+jlxC5PEFMWEWywgXKdiSu9\nKf7BBNbtdjTBc6synEs7uTOuIybi1w5bzDTK9m87a09ptQD03biZaH439V3s\nw+zavjPvMXCWNkyQMka8UM8Ych//zcBeWS5dXFL78nXjtVUcd7QkO3/UBKxb\nVmJiALX/sChdrubSbNHQ4Jr99lKfFL82JCgQWc78hpgPMlcC9GmGiJGz0zfA\nxmtOOK9u8osEAM2i4OJA9mahVBAK77nklXBpfFvY7zx566ssA9phsXhyqHig\nh3SU\r\n=6U/G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDlxVi5auHnsup+6pZ8CabFSkP0USBElGHBMA12ijo6QIgC6URBUOTLSNS8v68ab7k01/AK3YQE/rd1UadId1tfOQ="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_2.2.2_1580226856265_0.6103066745882952"},"_hasShrinkwrap":false},"2.3.0":{"name":"hapi-error","version":"2.3.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"engines":{"node":">=8.10.0"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"GPL-2.0","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"@hapi/hoek":"^9.0.2"},"devDependencies":{"@hapi/boom":"^9.0.0","@hapi/good":"^9.0.0","decache":"^4.5.1","handlebars":"^4.7.2","hapi":"^18.1.0","hapi-auth-jwt2":"^8.8.1","joi":"^14.3.1","jsonwebtoken":"^8.5.1","nodemon":"^2.0.2","nyc":"15.0.0","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"4.13.0","tape-async":"2.3.0","vision":"^5.4.4"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","coverage/*","test/*.js"],"report-dir":"./coverage","reporter":["lcov","text"],"cache":false,"all":true},"gitHead":"f32a99fa7800d7f35144e030898feb75ec0230be","_id":"hapi-error@2.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"dist":{"integrity":"sha512-bu/4rd8SHm/0JGovw6g7srA7JzOyADCkOaQQ1528GkJ2rvNZ5giGf6Crx39dzHIQtoINTNv6J/kGIGGIYeS1RQ==","shasum":"e83bbdbd021446dd30780d4869400a4408a63b03","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-2.3.0.tgz","fileCount":16,"unpackedSize":41074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMKFcCRA9TVsSAnZWagAAxQkP/1XzwietO5tPUMu/n18K\nf0uvSsKWtQdEoxzpE6JGTnoVv32g8KPFVOIhBzpYBo/S5IZD65lEbtiZnUTb\nwsr+S4GQ/IF5z8sj40l0rtCA8J2gd66FrJ5RLSadTPu6y7p3hgjCBqtjfTb3\nzME4t/CMXXIhS3EKCu0/dvbkSm/m8bHNiVvg80daYz2ZnlRJ7jo4j0/YKEnt\ng81gkEveBhx5PXd4iegGuIWiEwOgY1R3soq7yJQ1JPzO+b6SaaHY5Z2ce74a\ns1q+thNP935sAEeFXTGGekYOGjQfT6O01xGHmYHOeCeeJElW11n+643vOxdr\ntXujVnal6hP+Dci4FjR06tjJ2FRDg7AGqPNwpNJkGu3V2JrKEESJNieci1RF\nG18rZaAaviiArxegnm+2DOTYOdmdFNzQaIBbqpmKXDbklIMdCj20MVsoYNKY\nushZb9HduuhMk5uUsnTT5y4YNdEz7W3/oiGTBln7JW0Csd47ZITCiCR3YTxR\nSd0qrDvydLQTYQlrW/0+tIyjGW5v3PrkVQqwerI0JAUt3IufHWJXNF0nYKPJ\nFpi3qFcQ4MPPBLLYmulUv6YvpWrgrudGGQBHnxtbSfE8SNTTsN8vdGa1lgsN\ne3SpEvHQCIq9Z11rTpMu6qwdX+WaOmFadcaJicxBqaF+Tt2OJAgZ0W+WR3l9\n90cQ\r\n=PmCe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGlwhC1Cu9Q2rGFDiUtCPNKFzh5N+wWbw/jWto122SaAiA5L0kpnVQMZjboYvO3KmOFK0BJNR2zgMF3MexHGwCuLA=="}]},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_2.3.0_1580245339840_0.9209559040828297"},"_hasShrinkwrap":false},"2.3.1":{"name":"hapi-error","version":"2.3.1","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"engines":{"node":">=8.10.0"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"@hapi/hoek":"^9.0.2"},"devDependencies":{"@hapi/boom":"^9.0.0","@hapi/good":"^9.0.0","decache":"^4.5.1","handlebars":"^4.7.2","hapi":"^18.1.0","hapi-auth-jwt2":"^8.8.1","joi":"^14.3.1","jsonwebtoken":"^8.5.1","nodemon":"^2.0.2","nyc":"15.0.0","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"4.13.0","tape-async":"2.3.0","vision":"^5.4.4"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","coverage/*","test/*.js"],"report-dir":"./coverage","reporter":["lcov","text"],"cache":false,"all":true},"gitHead":"e4781fe4acc3d2fe60f7bc7b9f1e5bee860f75c2","_id":"hapi-error@2.3.1","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-YBDsX2ycyeThOeC3OsScAUYkcqa/SB/hLaTH79vKfcbrb6AtxNaypCoi/w2xTchpmN2M95bniAgly741AXPP2A==","shasum":"3ae847a7ff606948801d5a3b1b4ccc06d1036a80","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-2.3.1.tgz","fileCount":18,"unpackedSize":43484,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFowsXGBD7ftGQInB/tXC2D0sDtz0LzODiKqzyGq4RSjAiEAiarmu5BuwbmQ2OCinjrM/uqBkYgUdHCJprRvsNoxScQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuLhOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpR3hAAlD+wpARrjqfI/m+cjF4Jt9dOdsy/HfG+61uGCDTyptUSP81r\r\nm629gPfOGEVN3234Kk3Uh42k/FsFGJAUmTP0npPjJwi8f0TbhuC2R8Bhb/MG\r\n8BLxVkHLDtUNDjZAdngrmHImupSsruI2DeJSiAf+KyDEIDzr0Y3ayFOV0Y4N\r\nF8/9A1YINSFuZY5ZdRqakCKVG8IJ0U4qdiRq83RO/xDX4BdQMWgowOrAUA+5\r\nPaROCrQmyoKAzXBW7oD39JJcpL/a4XIHSkQW3fPqRxnZ1XYGcK06lxo5nVEA\r\n1Dg/kGpG00+bilIyRUUw/F9Ug1rjDltfhwngziqTmMttkK/m+FHo3iBt1H9a\r\nudCEugFtVpcI+YyMfjT4ozJZwBmIC/0Nk9jiMyVhp6zgPswZQsDlycNF5v8n\r\nuwLj7JGqabiL4tx0h+gGHZyv/LDm3tXGgtp25014i82lhLYaswr0vBpR2At0\r\nQMDoW8lp2vJkfR3X10z/n2IYznadBUVscKOuOsvW5WfWHG2olh7eWfkiMosF\r\n93eRd8OdUs0G8cdQeZNkvC64lCm9TxN8p3JUjaQbjCk+I9Ilj95TjKyzuqzf\r\nefY76NXrjblVvTGwO00cEvKTPJquG5KtumLBzy3SNOHc04v+AjuPYHBzvxon\r\nUJM9UnuupiYWELLVzgUDrZIu3SSUxKZ8ACE=\r\n=3IEr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"directories":{},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_2.3.1_1656272974693_0.16337996762259888"},"_hasShrinkwrap":false},"3.0.0":{"name":"hapi-error","version":"3.0.0","description":"catch errors in your hapi application and display the appropriate error message/page","main":"lib/index.js","scripts":{"test":"nyc tape ./test/*.test.js | tap-nyc","nocov":"tape ./test/*.test.js","dev":"PORT=8000 ./node_modules/.bin/nodemon example/server_example.js","start":"node example/server_example.js","check-coverage":"npm run test && nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100","lint":"goodparts ./lib"},"engines":{"node":">=14.0.0"},"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"homepage":"https://github.com/dwyl/hapi-error#readme","dependencies":{"@hapi/hoek":"^10.0.0"},"devDependencies":{"@hapi/boom":"^10.0.0","@hapi/good":"^9.0.1","@hapi/hapi":"^20.2.2","@hapi/validate":"^2.0.0","@hapi/vision":"^6.1.0","@types/hapi":"^18.0.7","decache":"^4.6.1","handlebars":"^4.7.7","hapi-auth-jwt2":"^10.2.0","jsonwebtoken":"^8.5.1","nodemon":"^2.0.18","nyc":"15.1.0","pre-commit":"^1.2.2","tap-nyc":"1.0.3","tape":"5.5.3","tape-async":"2.3.0"},"pre-commit":["check-coverage"],"keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"author":{"name":"dwyl & co"},"nyc":{"exclude":["example/*.js","coverage/*","test/*.js"],"report-dir":"./coverage","reporter":["lcov","text"],"cache":false,"all":true},"gitHead":"d2b985b6f5a5255dd63285deddfad21233ed18a8","_id":"hapi-error@3.0.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-WIFuOCdte8MhzURhsn4aaqulSuI6c1xTERF7G55GFpRqIrN0H0orjX0yBBmHrXVRPLDhVy7+qp7d3q7ican0QA==","shasum":"2499569de99650752e76d9e07f91e4223ff1c8cb","tarball":"https://registry.npmjs.org/hapi-error/-/hapi-error-3.0.0.tgz","fileCount":19,"unpackedSize":44006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5satWR3UX5L6tsRUzRKNBu1tkSClPa5TCShd6CTYQuAiAIcQn5biaTo8106DqBht0JWByu9V16b//yury4xrJMbg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiui8IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmossA/+OqTJTjLyQASsxGQq8ueFgaSR8Vn/l4W2XavDK7G6nZOlFguU\r\n7tM6keWkDvFjt1Ydz+xaRiEEVeBEUnDvrXjtKBAjY4nwwniKTU2n5Z5pF193\r\nd1FLHiPQbpwODHYpzcezOk41mRCVOM8Mw0du+IDeb7qemmD5ADSy5vuzv1g0\r\njWJujgE1tbr8EXYRVIKYX0JjoDQY6w+Qt7gevSgXyN5jeTY027L/8iACmwSM\r\nW2e1ywahCvRQoYAZEzoZb4/WbSYHVF9VLSw+m6ImbuWcsa2PREETfoYa+CcR\r\nYJtd+u93Xfc3Uc1oLsIIajdkg8Dj8hLWMs1pDn0iv3SNLS+l+9WwjcL2Ri76\r\nOrbRIznr8W0Ite0BTuRJOcx0gBPK8tOThuG3S7SIBFovKQH12y3xxNrKWolf\r\nkprcPvRo1t3VNL6Y7F6GE48t+7F/DHoGINl4dm0OLzGCwfaCO2thT6j2/BS6\r\nifUaCi/5NT+7874d+nTnYnTY2rXcdOliHd52lUYd8fjxTQEtbN1UtTdoxRKh\r\n8t+hMgRBQOhchAAf7mWJM9b9SNbOMENTH8nLZsPa/v6Gw5dsB9ikpndmxAR4\r\nOboTcZKsAVFZtqL4cyQWwEXCB0v0XcXlhBKhk1Jjatj7EzYOHwAAqQwi0jOG\r\ndWJ3HtIAino9qjLIWiL+qaWTC6nzdcUc0CA=\r\n=pzft\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nelsonic","email":"contact.nelsonic@gmail.com"},"directories":{},"maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-error_3.0.0_1656368903983_0.042898307489782184"},"_hasShrinkwrap":false}},"readme":"<div align=\"center\">\n\n# `hapi-error`\n\nIntercept errors in your Hapi web app/api\nand send a *useful* message to the client.\n\n![dilbert-404-error](https://cloud.githubusercontent.com/assets/194400/17856406/53feeee4-6875-11e6-8480-d493906f6aa1.png)\n\n[![Known Vulnerabilities](https://snyk.io/test/github/dwyl/hapi-error/badge.svg?targetFile=package.json&style=flat-square)](https://snyk.io/test/github/dwyl/hapi-error?targetFile=package.json)\n[![Build Status](https://img.shields.io/travis/dwyl/hapi-error/master.svg?style=flat-square)](https://travis-ci.org/dwyl/hapi-error)\n[![codecov.io](https://img.shields.io/codecov/c/github/dwyl/hapi-error/master.svg?style=flat-square)](https://codecov.io/github/dwyl/hapi-error?branch=master)\n[![HAPI 20.2.x](https://img.shields.io/badge/hapi-18.4.0-brightgreen.svg?style=flat-square \"Latest Hapi.js\")](https://hapijs.com)\n[![Node.js Version](https://img.shields.io/node/v/hapi-error.svg?style=flat-square \"Node.js 14 and above supported\")](https://nodejs.org/download/)\n[![Dependencies Status](https://david-dm.org/dwyl/hapi-error/status.svg?style=flat-square)](https://david-dm.org/dwyl/hapi-error)\n[![devDependencies Status](https://david-dm.org/dwyl/hapi-error/dev-status.svg?style=flat-square)](https://david-dm.org/dwyl/hapi-error?type=dev)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/dwyl/hapi-error/issues)\n[![HitCount](https://hits.dwyl.io/dwyl/hapi-error.svg)](https://hits.dwyl.io/dwyl/hapi-error)\n[![npm package version](https://img.shields.io/npm/v/hapi-error.svg?style=flat-square)](https://www.npmjs.com/package/hapi-error)\n\n\n</div>\n\n## *Why*?\n\n> #### Seeing an (_unhelpful/unfriendly_) error message is _by far_ the _most frustrating_ part of the \"**User _Experience_**\" (**UX**) of your web app/site.\n\nMost _non-technical_ people (_\"average\" web users_) have _no clue_\nwhat a `401` error is. And if you/we the developer(s) do not _communicate_ with them, it can quickly lead to confusion and\n[_abandonment_](https://en.wikipedia.org/wiki/Abandonment_rate)!\nIf instead of simply displaying **`401`** we _inform_ people:\n`\"Please login to see that page.\"` we _**instantly improve**_\nthe **UX** and thus make that person's day/life better. :heart:\n\n> _The \"**Number 1 Rule**\" is to make sure your **error messages**\nsound like they’ve been **written for/by humans**_.\n[~ _The **Four H**'s of Writing Error Messages_](https://uxmas.com/2012/the-4-hs-of-writing-error-messages)\n\n## *What*?\n\nBy `default`, `Hapi` does _not_ give people *friendly* error messages.\n\n`hapi-error` is a plugin that lets your Hapi app display _consistent_, _**human-friendly**_ & *useful*\nerror messages so the _people_ using your app\n[_don't panic_](https://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker%27s_Guide_to_the_Galaxy#Don.27t_Panic).\n\n> Try it: https://hapi-error.herokuapp.com/panacea\n\n\nUnder the hood, Hapi uses\n[`Boom`](https://github.com/dwyl/learn-hapi#error-handling-with-boom)\nto handle errors. These errors are returned as `JSON`. e.g:\n\nIf a URL/Endpoint does not exist a `404` error is returned:  \n![hapi-login-404-error](https://cloud.githubusercontent.com/assets/194400/14770263/06bdc6dc-0a65-11e6-9f9b-80944711a4f1.png)\n\nWhen a person/client attempts to access a \"*restricted*\" endpoint without\nthe proper authentication/authorisation a `401` error is shown:\n\n![hapi-login-401-error](https://cloud.githubusercontent.com/assets/194400/14770276/57022f20-0a65-11e6-86de-d9b8e456b344.png)\n\nAnd if an *unknown* error occurs on the server, a `500` error is *thrown*:\n\n![localhost-500-error](https://cloud.githubusercontent.com/assets/194400/14770517/98a4b6d6-0a6b-11e6-8448-4b66e3df9a9a.png)\n\nThe `hapi-error` plugin *re-purposes* the `Boom` errors (*both the standard Hapi errors and your custom ones*) and instead display human-friendly error *page*:\n\n![hapi-error-screens](https://cloud.githubusercontent.com/assets/194400/15275274/ef9e5402-1abe-11e6-9313-71b11c61f032.png)\n\n> ***Note***: *super basic error page example is just what we came up with in a few minutes, you have full control over what your error page looks like, so use your imagination*!\n\n> ***Note***: if the client expects a JSON response simply define\nthat in the `headers.accept` and it will still receive the JSON error messages.\n\n## *v3.0.0 Changes*\n1. Support for Hapi.js v20\n2. Not backward compatible with Hapi.js < v18\n3. Requires NodeJS v14 and above\n\n## *How*?\n\n> **Note**: If you (_or anyone on your team_) are _unfamiliar_ with **Hapi.js** we have a\nquick guide/tutorial to help get you started: [https://github.com/dwyl/**learn-hapi**](https://github.com/dwyl/learn-hapi)\n\nError handling in 3 *easy* steps:\n\n### 1. Install the [plugin](https://www.npmjs.com/package/hapi-error) from NPM:\n\n```sh\nnpm install hapi-error --save\n```\n\n### 2. Include the plugin in your Hapi project\n\nInclude the plugin when you `register` your `server`:\n\n```js\nvar Hapi = require('@hapi/hapi');\nvar Path = require('path');\nvar server = new Hapi.Server({ port: process.env.PORT || 8000 });\n\nserver.route([\n  {\n    method: 'GET',\n    path: '/',\n    config: {\n      handler: function (request, reply) {\n        reply('hello world');\n      }\n    }\n  },\n  {\n    method: 'GET',\n    path: '/error',\n    config: {\n      handler: function (request, reply) {\n        reply(new Error('500'));\n      }\n    }\n  }\n]);\n\n// this is where we include the hapi-error plugin:\nmodule.exports = async () => {\n  try {\n    await server.register(require('hapi-error'));\n    await server.register(require('vision'));\n    server.views({\n      engines: {\n        html: require('handlebars') // or Jade or Riot or React etc.\n      },\n      path: Path.resolve(__dirname, '/your/view/directory')\n    });\n    await server.start();\n    return server;\n  } catch (e) {\n    throw e;\n  }\n};\n```\n\n> See: [/example/server_example.js](https://github.com/dwyl/hapi-error/blob/master/example/server_example.js) for simple example\n\n### 3. Create an Error View Template\n\nThe default template name is `error_template` and is expected to exist, but can be configured in the options:\n\n```js\nconst config = {\n  templateName: 'my-error-template'\n};\n```\n\n> Note: `hapi-error` plugin *expects* you are using [`Vision`](https://github.com/hapijs/vision) (*the standard view rendering library for Hapi apps*)\nwhich allows you to use Handlebars, Jade, [**Riot**](https://github.com/dwyl/hapi-riot), React, etc. for your templates.\n\nYour `templateName` (*or `error_template.ext` `error_template.tag` `error_template.jsx`*) should make use of the 3 variables it will be passed:\n\n+ `errorTitle` - *the error tile generated by Hapi*\n+ `statusCode` - *HTTP statusCode sent to the client *e.g: `404`* (*not found*)\n+ `errorMessage` - the *human-friendly error message*\n\n> for an example see: [`/example/error_template.html`](https://github.com/dwyl/hapi-error/blob/master/example/error_template.html)\n\n### 4. *Optional* Add `statusCodes` config object to transform messages or redirect for certain status codes\n\nEach status code can be given two properties `message` and `redirect`.\n\nThe default config object for status codes:\n```\nconst config = {\n  statusCodes: {\n    401: { message: 'Please Login to view that page' },\n    400: { message: 'Sorry, we do not have that page.' },\n    404: { message: 'Sorry, that page is not available.' }\n  }\n};\n```\nWe want to provide useful error messages that are pleasant for the user. If you think there are better defaults for messages or other codes then do let us know via [issue](https://github.com/dwyl/hapi-error/issues).\n\nAny of the above can be overwritten and new status codes can be added.\n\n#### `message` Parse/replace the error message\n\nThis parameter can be of the form `function(message, request)` or just simply a `'string'` to replace the message.\n\nAn example of a use case would be handling errors form joi validation.\n\nOr erroring in different languages.\n```js\nconst config = {\n  statusCodes: {\n    \"401\": {\n      \"message\": function(msg, req) {\n        var lang = findLang(req);\n\n        return translate(lang, message);\n      }\n    }\n  }\n};\n```\n\nOr providing nice error messages like in the default config above.\n\n#### `redirect` *Redirecting* to another endpoint\n\nSometimes you don't _want_ to show an error page;\n_instead_ you want to re-direct to another page.\nFor example, when your route/page requires the person\nto be authenticated (_logged in_), but they have\nnot supplied a valid session/token to view the route/page.\n\nIn this situation the default Hapi behaviour is to return a `401` (_unauthorized_) error,\nhowever this is not very _useful_ to the _person_ using your application.\n\nRedirecting to a specific url is _easy_ with `hapi-error`:\n\n```js\nconst config = {\n  statusCodes: {\n    \"401\": { // if the statusCode is 401\n      \"redirect\": \"/login\" // redirect to /login page/endpoint\n    },\n    \"403\": { // if the statusCode is 403\n      \"redirect\": function (request) {\n        return \"/login?redirect=\" + request.url.pathname\n      }\n    }\n  }\n}\n(async () => {\n  await server.register({\n      plugin: require('hapi-error'),\n      options: config // pass in your redirect configuration in options\n    });\n  await server.register(require('vision'));\n})();\n```\n\nThis in both cases will `redirect` the client/browser to the `/login` endpoint\nand will append a query parameter with the url the person was _trying_ to visit.\nWith the use of function instead of simple string you can further manipulate the resulted url.\nShould the parameter be a function and return false it will be ignored.\n\ne.g: GET /admin --> 401 unauthorized --> redirect to /login?redirect=/admin\n\n> Redirect Example: [/redirect_server_example.js](https://github.com/dwyl/hapi-error/blob/master/test/redirect_server_example.js)\n\n\n## *That's it*!\n\n*Want more...?* [*ask*!](https://github.com/dwyl/hapi-error/issues)\n\n## *Custom* Error Messages using `request.handleError`\n\nWhen you `register` the `hapi-error` plugin a _useful_ `handleError` method\nbecomes available in every request handler which allows you to (_safely_)\n\"handle\" any \"*thrown*\" errors using just one line of code.\n\nConsider the following Hapi route handler code that is fetching data from a generic Database:\n\n```js\nfunction handler (request, reply) {\n  db.get('yourkey', function (err, data) {\n    if (err) {\n      return reply('error_template', { msg: 'A database error occurred'});\n    } else {\n      return reply('amazing_app_view', {data: data});\n    }\n  });\n}\n```\nThis can be re-written (*simplified*) using `request.handleError` method:\n\n```js\nfunction handler (request, reply) {\n  db.get('yourkey', function (err, data) { // much simpler, right?\n    request.handleError(err, 'A database error occurred');\n    return reply('amazing_app_view', {data: data});\n  }); // this has *exactly* the same effect in much less code.\n}\n```\nOutput:\n\n![hapi-error-a-database-error-occured](https://cloud.githubusercontent.com/assets/194400/19078231/590d2d80-8a47-11e6-82e2-742d193b43b9.png)\n\n#### Explanation:\n\nUnder the hood, `request.handleError` is using `Hoek.assert` which\nwill `assert` that there is ***no error*** e.g:\n\n`Hoek.assert(!err, 'A database error occurred');`\n\nWhich means that if there *is* an error, it will be \"*thrown*\"\nwith the message you define in the *second argument*.\n\n<br />\n\n### `handleError` _everywhere_\n\n> Need to call `handleError` _outside_ of the context of the `request` ?\n\nSometimes we create handlers that perform a task _outside_ of the context of\na route/handler (_e.g accessing a database or API_) in this context\nwe still want to use `handleError` to simplify error handling.\n\nThis is easy with `hapi-error`, here's an example:\n\n```js\nvar handleError = require('hapi-error').handleError;\n\ndb.get(key, function (error, result) {\n  handleError(error, 'Error retrieving ' + key + ' from DB :-( ');\n  return callback(err, result);\n});\n```\nor in a file operation (_uploading a file to AWS S3_):\n\n```js\nvar handleError = require('hapi-error').handleError;\n\ns3Bucket.upload(params, function (err, data) {\n  handleError(error, 'Error retrieving ' + key + ' from DB :-( ');\n  return callback(err, result);\n}\n```\n\nProvided the `handleError` is called from a function/helper\nthat is being _run_ by a Hapi server any errors will be _intercepted_\nand _logged_ and displayed (_nicely_) to people using your app.\n\n### _custom_ data in error pages\n\n> Want/need to pass some more/custom data to display in your `error_template` view?\n\nAll you have to do is pass an object to `request.handleError` with an\nerrorMessage property and any other template properties you want!\n\nFor example:  \n```js\nrequest.handleError(!error, {errorMessage: 'Oops - there has been an error',\nemail: 'example@mail.co', color:'blue'});\n```\nYou will then be able to use {{email}} and {{color}} in your `error_template.html`\n\n### logging\n\nAs with _all_ hapi apps/APIs the recommended approach to logging\nis to use [`good`](https://github.com/dwyl/learn-hapi#logging-with-good)\n\n`hapi-error` logs all errors using `server.log` (_the standard way of logging in Hapi apps_) so once you enable `good` in your app you will _see_ any errors in your logs.\n\ne.g:  \n![hapi-error-log](https://cloud.githubusercontent.com/assets/194400/19013932/f2471060-87d6-11e6-980a-d7210c9fea7e.png)\n\n### Debugging\n\nIf you need more debugging in your error template, `hapi-error` exposes _several_\nuseful properties which you can use.\n\n```js\n{\n  \"method\":\"GET\",\n  \"url\":\"/your-endpoint\",\n  \"headers\":{\n    \"authorization\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTIzLCJlbWFpbCI6ImhhaUBtYWlsLm1lIiwiaWF0IjoxNDc1Njc0MDQ2fQ.Xc6nCPQW4ZSf9jnIIs8wYsM4bGtvpe8peAxp6rq4y0g\",\n    \"user-agent\":\"shot\",\n    \"host\":\"http://yourserver:3001\"\n  },\n  \"info\":{\n    \"received\":1475674046045,\n    \"responded\":0,\n    \"remoteAddress\":\"127.0.0.1\",\n    \"remotePort\":\"\",\n    \"referrer\":\"\",\n    \"host\":\"http://yourserver:3001\",\n    \"acceptEncoding\":\"identity\",\n    \"hostname\":\"http://yourserver:3001\"\n  },\n  \"auth\":{\n    \"isAuthenticated\":true,\n    \"credentials\":{\n       \"id\":123,\n       \"email\":\"hai@mail.me\",\n       \"iat\":1475674046\n    },\n    \"strategy\":\"jwt\",\n    \"mode\":\"required\",\n    \"error\":null,\n    \"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTIzLCJlbWFpbCI6ImhhaUBtYWlsLm1lIiwiaWF0IjoxNDc1Njc0MDQ2fQ.Xc6nCPQW4ZSf9jnIIs8wYsM4bGtvpe8peAxp6rq4y0g\"\n  },\n  \"email\":\"hai@mail.me\",\n  \"payload\":null,\n  \"response\":{\n    \"statusCode\":500,\n    \"error\":\"Internal Server Error\",\n    \"message\":\"An internal server error occurred\"\n  }\n}\n```\n\nAll the properties which are logged by `hapi-error` are available in\nyour error template.\n\n### Are Query Parameters Preserved?\n\n***Yes***! e.g: if the original url is `/admin?sort=desc`\nthe redirect url will be: `/login?redirect=/admin?sort=desc`\nSuch that after the person has logged in they will be re-directed\nback to to `/admin?sort=desc` _as desired_.\n\nAnd it's valid to have multiple question marks in the URL see:\nhttps://stackoverflow.com/questions/2924160/is-it-valid-to-have-more-than-one-question-mark-in-a-url\nso the query is preserved and can be used to send the person\nto the _exact_ url they requested _after_ they have successfully logged in.\n\n<br />\n\n### Under the Hood (_Implementation Detail_):\n\nWhen there is an error in the request/response cycle,\nthe Hapi `request` Object has *useful* error object we can use.\n\nTry logging the `request.response` in one of your Hapi route handlers:\n\n```js\nconsole.log(request.response);\n```\nA typical `Boom` error has the format:\n```js\n{ [Error: 500]\n  isBoom: true,\n  isServer: true,\n  data: null,\n  output:\n   { statusCode: 500,\n     payload:\n      { statusCode: 500,\n        error: 'Internal Server Error',\n        message: 'An internal server error occurred' },\n     headers: {} },\n  reformat: [Function] }\n```\n\nThe way to *intercept* this error is with a plugin that gets invoked\n*before* the response is returned to the client.\n\nSee: [lib/index.js](https://github.com/dwyl/hapi-error/blob/master/lib/index.js)\nfor details on how the plugin is implemented.\n\nIf you have _any_ questions, just [*ask*!](https://github.com/dwyl/hapi-error/issues)\n\n\n## Background Reading & Research\n\n+ Writing *useful* / *friendly* error messages:\nhttps://medium.com/@thomasfuchs/how-to-write-an-error-message-883718173322\n","maintainers":[{"name":"nelsonic","email":"contact.nelsonic@gmail.com"}],"time":{"modified":"2022-06-27T22:28:24.277Z","created":"2016-04-17T23:49:37.297Z","0.0.1":"2016-04-17T23:49:37.297Z","1.0.1":"2016-05-15T14:36:44.170Z","1.0.2":"2016-05-15T15:39:18.717Z","1.0.3":"2016-05-15T16:15:27.739Z","1.0.4":"2016-05-15T18:51:43.263Z","1.1.0":"2016-08-22T18:33:04.149Z","1.1.1":"2016-08-24T18:06:46.204Z","1.1.2":"2016-08-25T09:22:04.108Z","1.1.3":"2016-08-29T11:28:29.212Z","1.2.0":"2016-10-04T15:14:33.184Z","1.3.0":"2016-10-05T00:24:25.725Z","1.4.0":"2016-10-05T19:05:42.594Z","1.4.1":"2016-10-06T11:25:33.206Z","1.5.0":"2016-10-14T11:14:20.717Z","1.5.1":"2016-11-19T07:51:22.855Z","1.6.0":"2016-11-21T10:37:18.357Z","1.7.0":"2017-01-13T15:02:45.899Z","1.8.0":"2017-07-12T00:59:31.501Z","2.0.0":"2018-09-01T09:05:42.438Z","2.0.1":"2018-09-01T09:07:57.347Z","2.1.0":"2018-09-20T04:04:50.887Z","2.2.0":"2019-04-22T18:44:54.982Z","2.2.2":"2020-01-28T15:54:16.375Z","2.3.0":"2020-01-28T21:02:19.931Z","2.3.1":"2022-06-26T19:49:34.832Z","3.0.0":"2022-06-27T22:28:24.189Z"},"homepage":"https://github.com/dwyl/hapi-error#readme","keywords":["custom","customise","error","friendly","hapi","hapijs","hapi.js","helpful","html","human","json","message","page","useful","user friendly","UX"],"repository":{"type":"git","url":"git+https://github.com/dwyl/hapi-error.git"},"author":{"name":"dwyl & co"},"bugs":{"url":"https://github.com/dwyl/hapi-error/issues"},"license":"BSD-3-Clause","readmeFilename":"README.md","users":{"monczek":true}}