Skip to content

Commit

Permalink
removed semver in the "production" code
Browse files Browse the repository at this point in the history
  • Loading branch information
noel-schenk committed Nov 2, 2019
1 parent e87ba75 commit 31b7329
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
var fs = require('fs');
var path = require('path');
var Promise = require('bluebird');
var semver = require('semver');

var join = path.join;
var resolve = path.resolve;
Expand Down Expand Up @@ -1772,11 +1771,6 @@ exports.twing = fromStringRenderer('twing');
*/

exports.twing.render = function(str, options, cb) {
if (!semver.satisfies(process.version, '>=8.0.0')) {
return promisify(cb, function(cb) {
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) {
var engine = requires.twing || (requires.twing = require('twing'));
try {
Expand Down

0 comments on commit 31b7329

Please sign in to comment.