futurestudio / hapi-dev-errors Goto Github PK
View Code? Open in Web Editor NEWA hapi plugin to return better error details and skip the look at command line to catch the issue.
License: MIT License
A hapi plugin to return better error details and skip the look at command line to catch the issue.
License: MIT License
Hi, thanks for hapi-dev-errors. I use it in a project which is written in Typescript. Now I noticed, that the line position in the error message are not matching the code.
I use ts-node to run the dev server, with source-maps activated. When I use the debugger, the position matches correctly.
Do you have some tips how to solve this?
5.5.3
to 5.5.4
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
@hapi/vision is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
It seems like the hapi-swagger plugin overrides hapi-dev-errors
. Do you have a solution, eventually an integration with hapi-swagger to get better error handling.
PS: awesome plugin
Update this hapi plugin to support the new major release
Related: hapijs/hapi#3658
I wrote a test which passing on hapi: 17.5.4
but failing on hapi: 17.5.5
. Difference that when your response schema failing and on request, you don't specify headers in 17.5.4
onPreResponse
doesn't invoke. Server will response with json
but in 17.5.5
it invokes onPreResponse
.
This is branch with new test: https://github.com/venikman/hapi-dev-errors/blob/master/test/failed-response-schema.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.