diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d02535b..2f2859fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Version 1.15.2, released 2020-08-19 +----------------------------------- +Minor improvements: +* Specify MimeType to always use for AJAX templates ([#742](https://github.com/twigjs/twig.js/pull/742)) by [MasterOdin](https://github.com/MasterOdin) +* Added token count validation ([#745](https://github.com/twigjs/twig.js/pull/742)) by [HakS](https://github.com/haks) +* Async renderFile error callback ([#748](https://github.com/twigjs/twig.js/pull/748)) by [ArnauMrJeff](https://github.com/ArnauMrJeff) +* Ternary operator overrides context fix ([#737](https://github.com/twigjs/twig.js/issues/737)) by [oleg-andreyev](https://github.com/oleg-andreyev) +* Update lodash to `4.17.19` +* Update elliptic to `6.5.3` + Version 1.15.1, released 2020-04-16 ----------------------------------- Major improvements: diff --git a/lib/compile.js b/lib/compile.js index c96b4c40..cf63d381 100644 --- a/lib/compile.js +++ b/lib/compile.js @@ -20,12 +20,17 @@ exports.compile = function (options, files) { files.forEach(file => { FS.stat(file, (err, stats) => { + if (err) { + console.error('ERROR ' + file + ': Unable to stat file'); + return; + } + if (stats.isDirectory()) { parseTemplateFolder(file, options.pattern); } else if (stats.isFile()) { parseTemplateFile(file); } else { - console.log('ERROR ' + file + ': Unable to stat file'); + console.log('ERROR ' + file + ': Unknown file information'); } }); }); diff --git a/package-lock.json b/package-lock.json index 8d55c863..987567bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "twig", - "version": "1.15.1", + "version": "1.15.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b3e6dbef..d403b39f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "John Roepke (http://john.sh/)", "name": "twig", "description": "JS port of the Twig templating language.", - "version": "1.15.1", + "version": "1.15.2", "homepage": "https://github.com/twigjs/twig.js", "license": "BSD-2-Clause", "licenses": [