async-helpers
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -151,3 +151,3 @@ /*! | ||
// generate a unique ID for the wrapped helper | ||
var id = thisArg.prefix + thisArg.globalCounter + (thisArg.counter++) + '__'; | ||
var id = thisArg.prefix + thisArg.globalCounter + '_' + (thisArg.counter++) + '__'; | ||
var obj = { | ||
@@ -263,3 +263,7 @@ id: id, | ||
} | ||
res = stashed.fn.apply(stashed.thisArg, args); | ||
try { | ||
res = stashed.fn.apply(stashed.thisArg, args); | ||
} catch (err) { | ||
return next(err); | ||
} | ||
if (!stashed.fn.async) { | ||
@@ -266,0 +270,0 @@ return next(null, res); |
{ | ||
"name": "async-helpers", | ||
"description": "Use async helpers in templates with engines that typically only handle sync helpers. Handlebars and Lodash have been tested.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "https://github.com/doowb/async-helpers", | ||
@@ -6,0 +6,0 @@ "author": { |
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
12818
255