Comparing version 0.10.6 to 0.10.7
@@ -59,7 +59,12 @@ "use strict"; | ||
} | ||
const helpersObj = eval(helpersFile.contents); | ||
for (const helperName of Object.keys(helpersObj)) { | ||
const helperHashKey = `${helpersFile.name}.${helperName}`; | ||
acc[helperHashKey] = helpersObj[helperName]; | ||
const helpersMapOrFunction = eval(helpersFile.contents); | ||
if (typeof helpersMapOrFunction === 'function') { | ||
acc[helpersFile.name] = helpersMapOrFunction; | ||
} | ||
else { | ||
for (const helperName of Object.keys(helpersMapOrFunction)) { | ||
const helperHashKey = `${helpersFile.name}.${helperName}`; | ||
acc[helperHashKey] = helpersMapOrFunction[helperName]; | ||
} | ||
} | ||
return acc; | ||
@@ -66,0 +71,0 @@ }, {}); |
{ | ||
"name": "symply", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"description": "A simple static site generator.", | ||
@@ -5,0 +5,0 @@ "author": "Oleg Legun <oleg.legun@gmail.com>", |
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
230752
2436