Skip to content

Commit

Permalink
twing 4 starts at node version 8
Browse files Browse the repository at this point in the history
  • Loading branch information
noel-schenk committed Nov 1, 2019
1 parent fb5be3f commit 08da520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1772,9 +1772,9 @@ exports.twing = fromStringRenderer('twing');
*/

exports.twing.render = function(str, options, cb) {
if (!semver.satisfies(process.version, '>=6.0.0')) {
if (!semver.satisfies(process.version, '>=8.0.0')) {
return promisify(cb, function(cb) {
throw new Error('This node version is not supported for Twing. Please upgrade to at least node version 6.0.0 or a recommended version >=8.x');
throw new Error('This node version is not supported for Twing 4 (used in consolidate/express.js). Please upgrade to at least node version >=8.x');
});
}
return promisify(cb, function(cb) {
Expand Down

0 comments on commit 08da520

Please sign in to comment.