Skip to content

Commit

Permalink
fix lodash contains method
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Spasic authored and Vladimir Spasic committed Jun 8, 2016
1 parent e285cf0 commit 41526e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/container/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(', ') + '].');
Expand Down
2 changes: 1 addition & 1 deletion lib/environment/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 41526e5

Please sign in to comment.