From d63731782668792080990fb09c9ef8bbe8695003 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Thu, 3 Mar 2016 19:49:20 -0400 Subject: [PATCH] Update Lodash to v4.6.1 --- package.json | 2 +- src/beautifiers/index.coffee | 2 +- src/languages/index.coffee | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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)) )