diff --git a/lib/container/container.js b/lib/container/container.js index f81f447..887d263 100644 --- a/lib/container/container.js +++ b/lib/container/container.js @@ -487,7 +487,7 @@ function resolveOptions(options) { const scopes = _.keys(scopesConfig); if (typeof scope !== 'undefined') { - if (_.contains(scopes, scope)) { + if (_.includes(scopes, scope)) { options = _.defaults(options, scopesConfig[scope]); } else { throw new TypeError('Unsuported scope value `' + scope + '`, available scopes are [' + scopes.join(', ') + '].'); diff --git a/lib/environment/loader.js b/lib/environment/loader.js index e8a6929..e6961b7 100644 --- a/lib/environment/loader.js +++ b/lib/environment/loader.js @@ -91,7 +91,7 @@ function filterFiles(executionMode, file) { const ext = path.extname(file); const supportedExtensions = _.keys(handlers); - if (!_.contains(supportedExtensions, ext)) { + if (!_.includes(supportedExtensions, ext)) { return false; } diff --git a/lib/plugins/index.js b/lib/plugins/index.js index a50dbad..837f9b0 100644 --- a/lib/plugins/index.js +++ b/lib/plugins/index.js @@ -17,7 +17,7 @@ function loadPlugins(project) { return utils.readPackageFile(`node_modules/${dependency}`); }).filter((pkg) => { const keywords = pkg.keywords || []; - return _.contains(keywords, 'node-registry-plugin'); + return _.includes(keywords, 'node-registry-plugin'); }).map((pkg) => { const pluginPath = path.resolve('node_modules', pkg.name, 'plugin.js'); let plugin = {}; diff --git a/package.json b/package.json index 9076fa7..cc256e3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "debug": "^2.2.0", "eventemitter2": "^1.0.3", "js-yaml": "^3.4.6", - "lodash": "^4.11.2", + "lodash": "^4.12.0", "node-env-file": "^0.1.8" }, "devDependencies": {