express-async-handler
Advanced tools
Comparing version 1.0.3 to 1.0.4
const asyncUtil = fn => | ||
(req, res, next, ...args) => | ||
fn(req, res, next, ...args) | ||
function asyncUtilWrap(req, res, next, ...args) { | ||
return fn(req, res, next, ...args) | ||
.catch(next); | ||
} | ||
module.exports = asyncUtil |
{ | ||
"name": "express-async-handler", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Express Error Handler for Async Functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11051
49