Update Lodash to v4.6.1
This commit is contained in:
parent
73919f7902
commit
d637317826
|
@ -90,7 +90,7 @@
|
||||||
"handlebars": "^4.0.2",
|
"handlebars": "^4.0.2",
|
||||||
"js-beautify": "^1.6.2",
|
"js-beautify": "^1.6.2",
|
||||||
"jscs": "^2.1.1",
|
"jscs": "^2.1.1",
|
||||||
"lodash": "3.10.1",
|
"lodash": "4.6.1",
|
||||||
"loophole": "^1.0.0",
|
"loophole": "^1.0.0",
|
||||||
"node-dir": "^0.1.8",
|
"node-dir": "^0.1.8",
|
||||||
"node-uuid": "^1.4.3",
|
"node-uuid": "^1.4.3",
|
||||||
|
|
|
@ -308,7 +308,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
_.filter( @beautifiers, (beautifier) ->
|
_.filter( @beautifiers, (beautifier) ->
|
||||||
|
|
||||||
# logger.verbose('beautifier',beautifier, language)
|
# logger.verbose('beautifier',beautifier, language)
|
||||||
_.contains(beautifier.languages, language)
|
_.includes(beautifier.languages, language)
|
||||||
)
|
)
|
||||||
|
|
||||||
getBeautifierForLanguage : (language) ->
|
getBeautifierForLanguage : (language) ->
|
||||||
|
|
|
@ -91,6 +91,6 @@ module.exports = class Languages
|
||||||
_.union(
|
_.union(
|
||||||
_.filter(@languages, (language) -> _.isEqual(language.name, name))
|
_.filter(@languages, (language) -> _.isEqual(language.name, name))
|
||||||
_.filter(@languages, (language) -> _.isEqual(language.namespace, namespace))
|
_.filter(@languages, (language) -> _.isEqual(language.namespace, namespace))
|
||||||
_.filter(@languages, (language) -> _.contains(language.grammars, grammar))
|
_.filter(@languages, (language) -> _.includes(language.grammars, grammar))
|
||||||
_.filter(@languages, (language) -> _.contains(language.extensions, extension))
|
_.filter(@languages, (language) -> _.includes(language.extensions, extension))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue