diff --git a/package.json b/package.json index 25cb739..1dcb81c 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "handlebars": "^4.0.2", "js-beautify": "^1.6.2", "jscs": "^2.1.1", - "lodash": "3.10.1", + "lodash": "4.6.1", "loophole": "^1.0.0", "node-dir": "^0.1.8", "node-uuid": "^1.4.3", diff --git a/src/beautifiers/index.coffee b/src/beautifiers/index.coffee index 53067d4..7b913c7 100644 --- a/src/beautifiers/index.coffee +++ b/src/beautifiers/index.coffee @@ -308,7 +308,7 @@ module.exports = class Beautifiers extends EventEmitter _.filter( @beautifiers, (beautifier) -> # logger.verbose('beautifier',beautifier, language) - _.contains(beautifier.languages, language) + _.includes(beautifier.languages, language) ) getBeautifierForLanguage : (language) -> diff --git a/src/languages/index.coffee b/src/languages/index.coffee index 5a699dc..f376d7c 100644 --- a/src/languages/index.coffee +++ b/src/languages/index.coffee @@ -91,6 +91,6 @@ module.exports = class Languages _.union( _.filter(@languages, (language) -> _.isEqual(language.name, name)) _.filter(@languages, (language) -> _.isEqual(language.namespace, namespace)) - _.filter(@languages, (language) -> _.contains(language.grammars, grammar)) - _.filter(@languages, (language) -> _.contains(language.extensions, extension)) + _.filter(@languages, (language) -> _.includes(language.grammars, grammar)) + _.filter(@languages, (language) -> _.includes(language.extensions, extension)) )