express-async-router
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -61,3 +61,4 @@ /// <reference path="_references.d.ts" /> | ||
} | ||
routerMatcher.call.apply(routerMatcher, [router, name].concat(args.map(function (a) { return wrapHandler(a, sender); }))); | ||
var last = args.length - 1, mappedArgs = args.map(function (a, i) { return i === last ? wrapHandler(a, sender) : wrapHandlerOrErrorHandler(a); }); | ||
routerMatcher.apply(router, [name].concat(mappedArgs)); | ||
return _this; | ||
@@ -64,0 +65,0 @@ }; |
{ | ||
"name": "express-async-router", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Express Async Router - An Express Router wrapper which automatically manage Promise.", | ||
@@ -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
13404
180