From f61f8fc5d210104923f38c02b15aeafb849276fc Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Fri, 28 Feb 2020 18:02:33 -0500 Subject: [PATCH] Update to lodash 4. --- lib/compiler.js | 2 +- lib/executor.js | 7 ++++--- package.json | 5 ++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/compiler.js b/lib/compiler.js index fdc0047..e3ec0c7 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -1,5 +1,5 @@ var assert = require('assert'); -var cloneDeep = require('lodash/lang/cloneDeep'); +var cloneDeep = require('lodash/cloneDeep'); var fs = require('fs'); var path = require('path'); var ConfigLoader = require('./config-loader'); diff --git a/lib/executor.js b/lib/executor.js index ec04db5..668d27d 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -1,5 +1,6 @@ var assert = require('assert'); -var _ = require('underscore'); +var isFinite = require('lodash/isFinite'); +var find = require('lodash/find'); var semver = require('semver'); /** @@ -77,7 +78,7 @@ function setHost(app, instructions) { function setPort(app, instructions) { //jshint camelcase:false - var port = _.find([ + var port = find([ process.env.npm_config_port, process.env.OPENSHIFT_SLS_PORT, process.env.OPENSHIFT_NODEJS_PORT, @@ -86,7 +87,7 @@ function setPort(app, instructions) { process.env.npm_package_config_port, app.get('port'), 3000 - ], _.isFinite); + ], isFinite); if(port !== undefined) { var portType = typeof port; diff --git a/package.json b/package.json index 58c4ed9..9e944b1 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,8 @@ "dependencies": { "commondir": "0.0.1", "debug": "^0.8.1", - "lodash": "^3.7.0", - "semver": "^2.3.0", - "underscore": "^1.6.0" + "lodash": "^4.17.15", + "semver": "^2.3.0" }, "devDependencies": { "browserify": "^4.1.8",