mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-06 01:31:32 +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');
|
messages = require('../utils/messages');
|
||||||
|
|
||||||
parse = function(object) {
|
parse = function(object) {
|
||||||
return _.object(_.map(object, function(item) {
|
return _.fromPairs(_.map(object, function(item) {
|
||||||
var signature;
|
var signature;
|
||||||
if (item.alias != null) {
|
if (item.alias != null) {
|
||||||
signature = item.toString();
|
signature = item.toString();
|
||||||
|
@ -21,7 +21,7 @@ columnify = require('columnify')
|
|||||||
messages = require('../utils/messages')
|
messages = require('../utils/messages')
|
||||||
|
|
||||||
parse = (object) ->
|
parse = (object) ->
|
||||||
return _.object _.map object, (item) ->
|
return _.fromPairs _.map object, (item) ->
|
||||||
|
|
||||||
# Hacky way to determine if an object is
|
# Hacky way to determine if an object is
|
||||||
# a function or a command
|
# a function or a command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user