Compare commits

...
Author SHA1 Message Date
Quinlan Jung 20f5e8a8f6 [eas-cli] rename getUpdateGroupJsonInfo 2023-12-18 14:51:18 -08:00
4 changed files with 8 additions and 8 deletions

No files matched your search

@@ -40,7 +40,7 @@ import {
uploadAssetsAsync, uploadAssetsAsync,
} from '../../project/publish'; } from '../../project/publish';
import { ensureEASUpdateIsConfiguredAsync } from '../../update/configure'; import { ensureEASUpdateIsConfiguredAsync } from '../../update/configure';
import { getUpdateGroupJsonInfo } from '../../update/utils'; import { getUpdatesJsonInfo } from '../../update/utils';
import { import {
checkManifestBodyAgainstUpdateInfoGroup, checkManifestBodyAgainstUpdateInfoGroup,
getCodeSigningInfoAsync, getCodeSigningInfoAsync,
@@ -469,7 +469,7 @@ export default class UpdatePublish extends EasCommand {
} }
if (jsonFlag) { if (jsonFlag) {
printJsonOnlyOutput(getUpdateGroupJsonInfo(newUpdates)); printJsonOnlyOutput(getUpdatesJsonInfo(newUpdates));
} else { } else {
if (new Set(newUpdates.map(update => update.group)).size > 1) { if (new Set(newUpdates.map(update => update.group)).size > 1) {
Log.addNewLineIfNone(); Log.addNewLineIfNone();
@@ -34,7 +34,7 @@ import {
getUpdateMessageForCommandAsync, getUpdateMessageForCommandAsync,
} from '../../project/publish'; } from '../../project/publish';
import { ensureEASUpdateIsConfiguredAsync } from '../../update/configure'; import { ensureEASUpdateIsConfiguredAsync } from '../../update/configure';
import { getUpdateGroupJsonInfo } from '../../update/utils'; import { getUpdatesJsonInfo } from '../../update/utils';
import { import {
CodeSigningInfo, CodeSigningInfo,
checkDirectiveBodyAgainstUpdateInfoGroup, checkDirectiveBodyAgainstUpdateInfoGroup,
@@ -228,7 +228,7 @@ export default class UpdateRollBackToEmbedded extends EasCommand {
} }
if (jsonFlag) { if (jsonFlag) {
printJsonOnlyOutput(getUpdateGroupJsonInfo(newUpdates)); printJsonOnlyOutput(getUpdatesJsonInfo(newUpdates));
} else { } else {
if (new Set(newUpdates.map(update => update.group)).size > 1) { if (new Set(newUpdates.map(update => update.group)).size > 1) {
Log.addNewLineIfNone(); Log.addNewLineIfNone();
+2 -2
View File
@@ -7,7 +7,7 @@ import Log from '../../log';
import { import {
formatUpdateGroup, formatUpdateGroup,
getUpdateGroupDescriptions, getUpdateGroupDescriptions,
getUpdateGroupJsonInfo, getUpdatesJsonInfo,
} from '../../update/utils'; } from '../../update/utils';
import { enableJsonOutput, printJsonOnlyOutput } from '../../utils/json'; import { enableJsonOutput, printJsonOnlyOutput } from '../../utils/json';
@@ -47,7 +47,7 @@ export default class UpdateView extends EasCommand {
const updatesByGroup = await UpdateQuery.viewUpdateGroupAsync(graphqlClient, { groupId }); const updatesByGroup = await UpdateQuery.viewUpdateGroupAsync(graphqlClient, { groupId });
if (jsonFlag) { if (jsonFlag) {
printJsonOnlyOutput(getUpdateGroupJsonInfo(updatesByGroup)); printJsonOnlyOutput(getUpdatesJsonInfo(updatesByGroup));
} else { } else {
const [updateGroupDescription] = getUpdateGroupDescriptions([updatesByGroup]); const [updateGroupDescription] = getUpdateGroupDescriptions([updatesByGroup]);
+2 -2
View File
@@ -201,8 +201,8 @@ export function formatUpdateTitle(update: UpdateFragment): string {
)} by ${actorName}, runtimeVersion: ${runtimeVersion}] ${message}`; )} by ${actorName}, runtimeVersion: ${runtimeVersion}] ${message}`;
} }
export function getUpdateGroupJsonInfo(updateGroups: UpdateFragment[]): UpdateJsonInfo[] { export function getUpdatesJsonInfo(updates: UpdateFragment[]): UpdateJsonInfo[] {
return updateGroups.map(update => ({ return updates.map(update => ({
id: update.id, id: update.id,
createdAt: update.createdAt, createdAt: update.createdAt,
group: update.group, group: update.group,