From 115e46573b42e1f6a80ff623d23b2bc3a4f35f8a Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Fri, 18 Aug 2017 19:41:29 +0200 Subject: [PATCH] Use _.fromPairs instead of _.object which was removed in lodash 4.0.0 Connects-To: #636 Change-Type: patch --- build/actions/help.js | 2 +- lib/actions/help.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/actions/help.js b/build/actions/help.js index f1bd1fe1..d145190e 100644 --- a/build/actions/help.js +++ b/build/actions/help.js @@ -28,7 +28,7 @@ columnify = require('columnify'); messages = require('../utils/messages'); parse = function(object) { - return _.object(_.map(object, function(item) { + return _.fromPairs(_.map(object, function(item) { var signature; if (item.alias != null) { signature = item.toString(); diff --git a/lib/actions/help.coffee b/lib/actions/help.coffee index 7804e56f..9693e273 100644 --- a/lib/actions/help.coffee +++ b/lib/actions/help.coffee @@ -21,7 +21,7 @@ columnify = require('columnify') messages = require('../utils/messages') parse = (object) -> - return _.object _.map object, (item) -> + return _.fromPairs _.map object, (item) -> # Hacky way to determine if an object is # a function or a command