quorrajs / ouch Goto Github PK
View Code? Open in Web Editor NEWNodeJS errors for cool kids
Home Page: https://quorrajs.github.io/Ouch
License: MIT License
NodeJS errors for cool kids
Home Page: https://quorrajs.github.io/Ouch
License: MIT License
Is it possible to inject additional JS into the PrettyPageHandler ejs template?
When using technologies such as live-reload with gulp to watch server files, it would be nice to be able to provide an additional block of HTML as a string or provide a URL to that points to a JS file to the configuration objects to that the live reload script can be included on the page for automatic reload on server file change.
It currently looks like that in layout.ejs (https://github.com/quorrajs/Ouch/blob/master/resources/views/layout.ejs#L31) the block of JS read from (https://github.com/quorrajs/Ouch/blob/master/resources/js/ouch.base.js) is dumped onto the page. Would it be possible to dump a second block fo JS that is provided through configuration, or iterate an array of js file URL's to be included?
Thanks for your time
It always returns 500 , what if i want to change status to something else, may be 404
Any chance of updating resources as per the newer whoops version? https://github.com/filp/whoops
Hi, I'm use express with webpack hot module replacement.
While error handling with enabled source map we got that Unable to locate file source, because of
the generated path, for example my\express-webpack-hot-reload.build\webpack:\server\routes\index.js does not exists. May be create config option, for real path files?
Is it possible that Ouch could support the Webpack dev server?
When exception thrown from async operation this code trys to read events.js
and crashes:
ERR! index.js (dev) ENOENT, no such file or directory 'events.js'
ERR! index.js (dev) at Object.fs.openSync (fs.js:439:18)
ERR! index.js (dev) at Object.fs.readFileSync (fs.js:290:15)
ERR! index.js (dev) at Object.frame.__proto__.getFileContents (/home/floatdrop/test-project/server/node_modules/ouch/exception/frame.js:89:47)
ERR! index.js (dev) at Object.frame.__proto__.getFileLines (/home/floatdrop/test-project/server/node_modules/ouch/exception/frame.js:39:33)
ERR! index.js (dev) at __line (eval at <anonymous> (/home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:455:12), <anonymous>:55:29)
ERR! index.js (dev) at Array.forEach (native)
ERR! index.js (dev) at eval (eval at <anonymous> (/home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:455:12), <anonymous>:14:15)
ERR! index.js (dev) at /home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:482:14
ERR! index.js (dev) at include (/home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:480:39)
ERR! index.js (dev) at eval (eval at <anonymous> (/home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:455:12), <anonymous>:29:21)
ERR! index.js (dev) at /home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:482:14
ERR! index.js (dev) at Object.exports.render (/home/floatdrop/test-project/server/node_modules/ouch/node_modules/ejs/lib/ejs.js:316:13)
ERR! index.js (dev) at TemplateHelper.render (/home/floatdrop/test-project/server/node_modules/ouch/util/TemplateHelper.js:65:16)
ERR! index.js (dev) at PrettyPageHandler.handle (/home/floatdrop/test-project/server/node_modules/ouch/handler/PrettyPageHandler.js:143:34)
ERR! index.js (dev) at next (/home/floatdrop/test-project/server/node_modules/ouch/Ouch.js:132:29)
ERR! index.js (dev) at /home/floatdrop/test-project/server/node_modules/ouch/Ouch.js:139:9
Shouldn't it be wrapped in try {} catch
?
Hello
Any planning to implement handlers involving Graphql?
❤️
Best Regards!
Hello,
'npm audit' reports a 'Prototype Pollution' issue due to your 'lodash' < 4.17.5 dependency.
Would you mind to check?
$ npm audit
=== npm audit security report ===
┌──────────────────────────────────────────────────────────────────────────────┐
│ Manual Review │
│ Some vulnerabilities require your attention to resolve │
│ │
│ Visit https://go.npm.me/audit-guide for additional guidance │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Prototype Pollution │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=4.17.5 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ quasar-cli [dev] │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ quasar-cli > ouch > lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://nodesecurity.io/advisories/577 │
└───────────────┴──────────────────────────────────────────────────────────────┘
found 1 low severity vulnerability in 13536 scanned packages
1 vulnerability requires manual review. See the full report for details.
Many thanks
Cheers,
Francesco
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.