mirror of https://github.com/hashicorp/consul
12 lines
299 B
JavaScript
12 lines
299 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export default {
|
|
Node: (item) => item.Node,
|
|
Address: (item) => item.Address,
|
|
PeerName: (item) => item.PeerName,
|
|
Meta: (item) => Object.entries(item.Meta || {}).reduce((prev, entry) => prev.concat(entry), []),
|
|
};
|