express-async-errors
express-async-errors copied to clipboard
async/await support for ExpressJS
This PR brings in following changes: - added `.editorconfig` - updated `.gitignore`, ESLint & Travis CI config - removal of `npm` leftovers - completed migration to `yarn` - upgrade of...
This PR brings in support for generators. 🎉 (stacked onto #23)
Simply sets the function name to the new function during wrap. Ref #16
I ran into this when doing Datadog tracing with this library enabled. The function name just shows up as `newFn` in the Datadog APM trace view which isn't very helpful....
This is my start script in package.json `"start": "node --watch --no-warnings=ExperimentalWarning --loader @swc-node/register/esm src/index.ts",` and I have imported like `import "express-async-errors";` this ReferenceError: require is not defined in ES module...
curious.... when it would be supported.. Thanks.
Eg.: https://github.com/dimdenGD/ultimate-express/ The Ultimate Express is full Express compatibility, based on µWebSockets.