twig-layout
Advanced tools
Comparing version 1.0.0-alpha.1.4 to 1.0.0-alpha.1.5
@@ -791,5 +791,6 @@ /*! | ||
async getTemplateContent(file) { | ||
const exists = await utils.asyncFileExists(file) | ||
const filePath = path.join(this._options.views, file); | ||
const exists = await utils.asyncFileExists(filePath) | ||
if (exists) { | ||
return promisify(fs.readFile)(path.join(this._options.views, file), 'utf8') | ||
return promisify(fs.readFile)(filePath, 'utf8') | ||
} else { | ||
@@ -796,0 +797,0 @@ throw new Error ('file not found: ' + file) |
@@ -12,2 +12,3 @@ { | ||
"@midgar/utils": "^1.0.0-alpha.1.2", | ||
"node-eval": "^2.0.0", | ||
"string-hash": "^1.1.3", | ||
@@ -44,3 +45,3 @@ "twig": "^1.13.2" | ||
}, | ||
"version": "1.0.0-alpha.1.4" | ||
"version": "1.0.0-alpha.1.5" | ||
} |
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
3717233
131031
4
+ Addednode-eval@^2.0.0
+ Addednode-eval@2.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)