load-helpers
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -16,2 +16,6 @@ /*! | ||
function loadHelpers(key, val) { | ||
if (typeof key === 'function') { | ||
throw new TypeError('key should be an object, array or string.'); | ||
} | ||
if (typeof val === 'function') { | ||
@@ -39,3 +43,3 @@ return addHelper(key, val); | ||
function addHelpers(helpers, opts) { | ||
if (Array.isArray(helpers)) { | ||
if (Array.isArray(helpers) && helpers.length) { | ||
helpers.forEach(function (helper) { | ||
@@ -42,0 +46,0 @@ loadHelpers(helper, opts); |
{ | ||
"name": "load-helpers", | ||
"description": "The most interesting project in the world > Verb", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"homepage": "https://github.com/jonschlinkert/load-helpers", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
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
7816
111