async-helpers
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -157,3 +157,3 @@ /*! | ||
if (matches) { | ||
argRefs.push({arg: arg, idx: i, matches: matches}); | ||
argRefs.push({arg: arg, idx: i}); | ||
} | ||
@@ -261,9 +261,2 @@ } | ||
lazy.async.each(stashed.argRefs, function (ref, next2) { | ||
if (ref.matches.length) { | ||
return self.resolveIds(ref.arg, function (err, value) { | ||
if (err) return next2(err); | ||
stashed.args[ref.idx] = value; | ||
next2(); | ||
}); | ||
} | ||
self.resolveId(ref.arg, function (err, value) { | ||
@@ -270,0 +263,0 @@ if (err) return next2(err); |
{ | ||
"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.3.3", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/doowb/async-helpers", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -19,3 +19,3 @@ # async-helpers [![NPM version](https://badge.fury.io/js/async-helpers.svg)](http://badge.fury.io/js/async-helpers) [![Build Status](https://travis-ci.org/doowb/async-helpers.svg)](https://travis-ci.org/doowb/async-helpers) | ||
### [AsyncHelpers](index.js#L26) | ||
### [AsyncHelpers](index.js#L32) | ||
@@ -32,3 +32,3 @@ Create a new instance of AsyncHelpers | ||
### [.set](index.js#L62) | ||
### [.set](index.js#L68) | ||
@@ -51,3 +51,3 @@ Add a helper to the cache. | ||
### [.get](index.js#L85) | ||
### [.get](index.js#L91) | ||
@@ -69,3 +69,3 @@ Get all helpers or a helper with the given name. | ||
### [.wrap](index.js#L184) | ||
### [.wrap](index.js#L190) | ||
@@ -86,3 +86,3 @@ Wrap a helper with async handling capibilities. | ||
### [.reset](index.js#L205) | ||
### [.reset](index.js#L211) | ||
@@ -99,3 +99,3 @@ Reset all the stashed helpers. | ||
### [.resolveId](index.js#L228) | ||
### [.resolveId](index.js#L234) | ||
@@ -122,5 +122,5 @@ Resolve a stashed helper by the generated id. | ||
* [engine-cache](https://github.com/jonschlinkert/engine-cache): express.js inspired template-engine manager. | ||
* [helper-cache](https://github.com/jonschlinkert/helper-cache): Easily register and get helper functions to be passed to any template engine or node.js… [more](https://github.com/jonschlinkert/helper-cache) | ||
* [template-helpers](https://github.com/jonschlinkert/template-helpers): Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or… [more](https://github.com/jonschlinkert/template-helpers) | ||
* [engine-cache](https://www.npmjs.com/package/engine-cache): express.js inspired template-engine manager. | [homepage](https://github.com/jonschlinkert/engine-cache) | ||
* [helper-cache](https://www.npmjs.com/package/helper-cache): Easily register and get helper functions to be passed to any template engine or node.js… [more](https://www.npmjs.com/package/helper-cache) | [homepage](https://github.com/jonschlinkert/helper-cache) | ||
* [template-helpers](https://www.npmjs.com/package/template-helpers): Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or… [more](https://www.npmjs.com/package/template-helpers) | [homepage](https://github.com/jonschlinkert/template-helpers) | ||
@@ -137,3 +137,3 @@ ## Run tests | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/async-helpers/issues/new) | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/async-helpers/issues/new). | ||
@@ -154,2 +154,2 @@ ## Author | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 23, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 30, 2015._ |
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
14684
321