mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Use _.fromPairs instead of _.object which was removed in lodash 4.0.0
Connects-To: #636 Change-Type: patch
This commit is contained in:
parent
2ad789457f
commit
115e46573b
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user