reason-request-handler

0.1.0 • Public • Published

Why Bluebird?

See AsyncStackTraceExample.re

// Without Bluebird: // at processTicksAndRejections (internal/process/task_queues.js:85:5 // Error: This is a simulated error from the database driver // at Object.raiseError (node_modules/bs-platform/lib/js/js_exn.js:6:9) // at src/AsyncStackTraceExample.bs.js:35:68

// With Bluebird: // Error: This is a simulated error from the database driver // at Object.raiseError (node_modules/bs-platform/lib/js/js_exn.js:6:9) // at src/AsyncStackTraceExample.bs.js:38:68 // From previous event: // at Object.let$dotasync (src/Promise.bs.js:7:12) // at handler (src/AsyncStackTraceExample.bs.js:33:20) // at Object._1 (node_modules/bs-platform/lib/js/curry.js:65:12) // at wrappedHandler (src/Handler.bs.js:273:19) // at Object._3 (node_modules/bs-platform/lib/js/curry.js:175:12) // at node_modules/bs-express/src/Express.js:397:25 // at Layer.handle as handle_request // at next (node_modules/express/lib/router/route.js:137:13) // at jsonParser (node_modules/body-parser/lib/types/json.js:110:7) // at Layer.handle as handle_request // at next (node_modules/express/lib/router/route.js:137:13) // at Route.dispatch (node_modules/express/lib/router/route.js:112:3) // at Layer.handle as handle_request // at node_modules/express/lib/router/index.js:281:22 // at Function.process_params (node_modules/express/lib/router/index.js:335:12) // at next (node_modules/express/lib/router/index.js:275:10) // at Function.handle (node_modules/express/lib/router/index.js:174:3) // at router (node_modules/express/lib/router/index.js:47:12) // at Layer.handle as handle_request

Package Sidebar

Install

npm i reason-request-handler

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

11.6 kB

Total Files

8

Last publish

Collaborators

  • mrmurphy