Giter Club home page Giter Club logo

ouch's People

Contributors

0xnbk avatar fansanelli avatar floatdrop avatar harishanchu avatar marcorivm avatar viglucci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ouch's Issues

Question: possible to inject additional JS?

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

Source map support

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?

Core modules could not have sources on fs

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?

npm audit reports a Prototype Pollution

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.