express-async-handler
Advanced tools
Comparing version 1.1.3 to 1.1.4
const asyncUtil = fn => | ||
function asyncUtilWrap(req, res, next, ...args) { | ||
const fnReturn = fn(req, res, next, ...args) | ||
function asyncUtilWrap(...args) { | ||
const fnReturn = fn(...args) | ||
const next = args[args.length-1] | ||
return Promise.resolve(fnReturn).catch(next) | ||
@@ -5,0 +6,0 @@ } |
{ | ||
"name": "express-async-handler", | ||
"version": "1.1.3", | ||
"version": "1.1.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
12677
94