load-helpers
Advanced tools
Comparing version 0.2.7 to 0.2.8
10
index.js
@@ -12,3 +12,4 @@ /*! | ||
module.exports = function (cache) { | ||
module.exports = function (cache, options) { | ||
options = options || {}; | ||
cache = cache || {}; | ||
@@ -38,5 +39,10 @@ | ||
function addHelper(name, fn) { | ||
cache[name] = typeof fn === 'string' | ||
var fn = typeof fn === 'string' | ||
? utils.tryRequire(fn) | ||
: fn; | ||
if (options.async === true) { | ||
fn.async = true; | ||
} | ||
cache[name] = fn; | ||
return cache; | ||
@@ -43,0 +49,0 @@ } |
{ | ||
"name": "load-helpers", | ||
"description": "The most interesting project in the world > Verb", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"homepage": "https://github.com/jonschlinkert/load-helpers", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -107,2 +107,2 @@ # load-helpers [![NPM version](https://badge.fury.io/js/load-helpers.svg)](http://badge.fury.io/js/load-helpers) | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 21, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 02, 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
8108
119