eas-cli 16.28.0 → 16.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -94
- package/build/analytics/AnalyticsManager.js +4 -4
- package/build/analytics/common.js +1 -2
- package/build/api.js +5 -5
- package/build/branch/delete.js +1 -2
- package/build/branch/queries.js +5 -5
- package/build/branch/utils.js +2 -2
- package/build/build/android/build.js +3 -4
- package/build/build/android/graphql.js +1 -2
- package/build/build/android/prepareJob.js +1 -2
- package/build/build/android/syncProjectConfiguration.js +2 -3
- package/build/build/android/version.js +6 -6
- package/build/build/build.js +3 -4
- package/build/build/configure.js +4 -5
- package/build/build/createContext.js +1 -2
- package/build/build/evaluateConfigWithEnvVarsAsync.js +1 -2
- package/build/build/graphql.js +7 -7
- package/build/build/ios/build.js +2 -3
- package/build/build/ios/credentials.js +2 -3
- package/build/build/ios/graphql.js +2 -3
- package/build/build/ios/prepareJob.js +2 -3
- package/build/build/ios/syncProjectConfiguration.js +1 -2
- package/build/build/ios/version.js +10 -10
- package/build/build/local.js +2 -2
- package/build/build/metadata.js +3 -4
- package/build/build/queries.js +4 -4
- package/build/build/runBuildAndSubmit.js +2 -3
- package/build/build/utils/appJson.js +2 -3
- package/build/build/utils/credentials.js +1 -2
- package/build/build/utils/devClient.js +1 -2
- package/build/build/utils/formatBuild.js +2 -3
- package/build/build/utils/printBuildInfo.js +4 -5
- package/build/build/utils/repository.js +8 -9
- package/build/build/utils/resourceClass.js +1 -2
- package/build/build/utils/url.js +8 -9
- package/build/build/utils/version.js +2 -3
- package/build/build/validate.js +3 -4
- package/build/channel/branch-mapping.js +24 -24
- package/build/channel/delete.d.ts +5 -0
- package/build/channel/delete.js +23 -0
- package/build/channel/print-utils.js +2 -3
- package/build/channel/queries.js +8 -8
- package/build/channel/utils.js +1 -2
- package/build/commandUtils/builds.js +3 -4
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -2
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +2 -3
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +3 -4
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -2
- package/build/commandUtils/experienceParser.d.ts +6 -0
- package/build/commandUtils/experienceParser.js +42 -0
- package/build/commandUtils/new/commands.js +3 -4
- package/build/commandUtils/new/configs.js +4 -5
- package/build/commandUtils/new/projectFiles.js +6 -7
- package/build/commandUtils/new/utils.js +1 -2
- package/build/commandUtils/projectNameValidation.d.ts +8 -0
- package/build/commandUtils/projectNameValidation.js +30 -0
- package/build/commandUtils/workflow/buildProfileUtils.js +12 -13
- package/build/commandUtils/workflow/creation.js +5 -5
- package/build/commandUtils/workflow/fetchLogs.js +2 -3
- package/build/commandUtils/workflow/inputs.js +5 -5
- package/build/commandUtils/workflow/stateMachine.js +7 -7
- package/build/commandUtils/workflow/utils.js +12 -12
- package/build/commandUtils/workflow/validation.js +4 -5
- package/build/commands/build/cancel.js +1 -2
- package/build/commands/build/delete.js +1 -2
- package/build/commands/build/index.js +1 -2
- package/build/commands/channel/delete.js +7 -23
- package/build/commands/channel/edit.js +1 -2
- package/build/commands/channel/pause.js +1 -2
- package/build/commands/channel/resume.js +1 -2
- package/build/commands/deploy/index.js +1 -1
- package/build/commands/project/init.js +3 -1
- package/build/commands/project/new.js +3 -4
- package/build/commands/update/index.d.ts +8 -0
- package/build/commands/update/index.js +39 -56
- package/build/commands/update/list.d.ts +3 -0
- package/build/commands/update/list.js +30 -1
- package/build/commands/update/revert-update-rollout.js +1 -2
- package/build/credentials/android/actions/BuildCredentialsUtils.js +6 -7
- package/build/credentials/android/api/GraphqlClient.js +21 -21
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -2
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +5 -5
- package/build/credentials/android/utils/googleServiceAccountKey.js +4 -4
- package/build/credentials/android/utils/keystore.js +2 -3
- package/build/credentials/android/utils/keystoreNew.js +3 -4
- package/build/credentials/android/utils/printCredentials.js +3 -4
- package/build/credentials/credentialsJson/read.js +3 -4
- package/build/credentials/credentialsJson/update.js +2 -3
- package/build/credentials/credentialsJson/utils.js +2 -3
- package/build/credentials/ios/actions/AppleTeamFormatting.js +1 -2
- package/build/credentials/ios/actions/AppleTeamUtils.js +1 -2
- package/build/credentials/ios/actions/AscApiKeyUtils.js +10 -10
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +7 -8
- package/build/credentials/ios/actions/DeviceUtils.js +2 -3
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -5
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +2 -3
- package/build/credentials/ios/actions/PushKeyUtils.js +5 -6
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +6 -2
- package/build/credentials/ios/api/GraphqlClient.js +24 -25
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +5 -5
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +8 -8
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +5 -5
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +5 -5
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +1 -1
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +0 -2
- package/build/credentials/ios/appstore/Credentials.js +4 -5
- package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -1
- package/build/credentials/ios/appstore/CredentialsUtils.js +6 -7
- package/build/credentials/ios/appstore/ascApiKey.d.ts +0 -1
- package/build/credentials/ios/appstore/ascApiKey.js +6 -7
- package/build/credentials/ios/appstore/authenticate.d.ts +0 -1
- package/build/credentials/ios/appstore/authenticate.js +4 -5
- package/build/credentials/ios/appstore/authenticateTypes.d.ts +0 -1
- package/build/credentials/ios/appstore/bundleId.d.ts +0 -1
- package/build/credentials/ios/appstore/bundleId.js +2 -3
- package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +0 -1
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +3 -3
- package/build/credentials/ios/appstore/capabilityIdentifiers.d.ts +0 -1
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -2
- package/build/credentials/ios/appstore/capabilityList.d.ts +0 -1
- package/build/credentials/ios/appstore/contractMessages.d.ts +0 -1
- package/build/credentials/ios/appstore/contractMessages.js +2 -3
- package/build/credentials/ios/appstore/distributionCertificate.d.ts +0 -1
- package/build/credentials/ios/appstore/distributionCertificate.js +7 -7
- package/build/credentials/ios/appstore/ensureAppExists.d.ts +6 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +55 -18
- package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +0 -1
- package/build/credentials/ios/appstore/ensureTestFlightGroup.js +1 -2
- package/build/credentials/ios/appstore/keychain.js +4 -4
- package/build/credentials/ios/appstore/provisioningProfile.d.ts +0 -1
- package/build/credentials/ios/appstore/provisioningProfile.js +5 -5
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +0 -1
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +1 -2
- package/build/credentials/ios/appstore/pushKey.js +4 -4
- package/build/credentials/ios/appstore/resolveCredentials.d.ts +0 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +6 -7
- package/build/credentials/ios/credentials.d.ts +0 -1
- package/build/credentials/ios/credentials.js +2 -2
- package/build/credentials/ios/utils/authType.d.ts +0 -1
- package/build/credentials/ios/utils/authType.js +1 -2
- package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -2
- package/build/credentials/ios/utils/p12Certificate.d.ts +0 -1
- package/build/credentials/ios/utils/p12Certificate.js +3 -4
- package/build/credentials/ios/utils/printCredentials.js +3 -4
- package/build/credentials/ios/utils/provisioningProfile.js +5 -6
- package/build/credentials/ios/validators/validateAscApiKey.js +2 -3
- package/build/credentials/ios/validators/validateDistributionCertificate.js +1 -2
- package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -2
- package/build/credentials/ios/validators/validatePushKey.js +1 -2
- package/build/credentials/manager/IosActions.js +4 -4
- package/build/credentials/manager/SelectPlatform.js +1 -1
- package/build/credentials/utils/promptForCredentials.js +3 -4
- package/build/devices/actions/create/currentMachineMethod.js +1 -2
- package/build/devices/actions/create/developerPortalMethod.d.ts +0 -1
- package/build/devices/actions/create/developerPortalMethod.js +2 -3
- package/build/devices/actions/create/inputMethod.js +1 -2
- package/build/devices/actions/create/registrationUrlMethod.js +1 -2
- package/build/devices/actions/create/utils.js +4 -5
- package/build/devices/context.js +1 -2
- package/build/devices/queries.js +4 -4
- package/build/devices/udids.js +2 -3
- package/build/devices/utils/formatDevice.js +2 -3
- package/build/fetch.d.ts +0 -1
- package/build/fetch.js +1 -1
- package/build/fingerprint/cli.js +3 -4
- package/build/fingerprint/diff.js +1 -2
- package/build/fingerprint/types.d.ts +0 -1
- package/build/fingerprint/utils.js +4 -5
- package/build/graphql/client.js +2 -2
- package/build/graphql/generated.d.ts +177 -88
- package/build/graphql/generated.js +39 -3
- package/build/graphql/mutations/PublishMutation.d.ts +2 -2
- package/build/graphql/queries/AccountUsageQuery.d.ts +1 -1
- package/build/graphql/queries/AppVersionQuery.d.ts +1 -1
- package/build/graphql/queries/BackgroundJobReceiptQuery.d.ts +1 -1
- package/build/graphql/queries/BranchQuery.d.ts +3 -3
- package/build/graphql/queries/BuildQuery.d.ts +3 -3
- package/build/graphql/queries/ChannelQuery.d.ts +2 -2
- package/build/graphql/queries/ChannelQuery.js +2 -2
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +12 -12
- package/build/graphql/queries/FingerprintQuery.d.ts +6 -6
- package/build/graphql/queries/PublishQuery.d.ts +1 -1
- package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
- package/build/graphql/queries/UserQuery.d.ts +1 -1
- package/build/graphql/queries/WorkflowJobQuery.d.ts +2 -2
- package/build/graphql/queries/WorkflowRunQuery.d.ts +4 -4
- package/build/graphql/types/AppPlatform.js +2 -3
- package/build/log.js +2 -3
- package/build/metadata/apple/config/reader.d.ts +0 -1
- package/build/metadata/apple/config/writer.d.ts +0 -1
- package/build/metadata/apple/data.d.ts +0 -1
- package/build/metadata/apple/tasks/age-rating.d.ts +0 -1
- package/build/metadata/apple/tasks/age-rating.js +0 -1
- package/build/metadata/apple/tasks/app-info.d.ts +0 -1
- package/build/metadata/apple/tasks/app-info.js +15 -4
- package/build/metadata/apple/tasks/app-review-detail.d.ts +0 -1
- package/build/metadata/apple/tasks/app-review-detail.js +0 -1
- package/build/metadata/apple/tasks/app-version.d.ts +0 -1
- package/build/metadata/apple/tasks/app-version.js +15 -3
- package/build/metadata/apple/tasks/index.js +1 -2
- package/build/metadata/apple/types.d.ts +0 -1
- package/build/metadata/auth.d.ts +0 -1
- package/build/metadata/auth.js +1 -2
- package/build/metadata/config/resolve.js +4 -5
- package/build/metadata/config/validate.js +1 -2
- package/build/metadata/download.js +1 -2
- package/build/metadata/errors.js +3 -3
- package/build/metadata/upload.js +1 -2
- package/build/metadata/utils/ajv.js +2 -3
- package/build/metadata/utils/asc.d.ts +0 -1
- package/build/metadata/utils/date.js +1 -2
- package/build/metadata/utils/log.js +1 -2
- package/build/metadata/utils/retry.js +2 -3
- package/build/metadata/utils/telemetry.d.ts +0 -1
- package/build/metadata/utils/telemetry.js +2 -3
- package/build/onboarding/git.js +3 -4
- package/build/onboarding/installDependencies.js +3 -3
- package/build/onboarding/runCommand.js +1 -2
- package/build/ora.js +1 -2
- package/build/platform.d.ts +1 -0
- package/build/platform.js +28 -10
- package/build/project/android/applicationId.js +6 -6
- package/build/project/android/gradle.js +1 -2
- package/build/project/android/gradleUtils.js +4 -4
- package/build/project/android/versions.js +3 -3
- package/build/project/applicationIdentifier.js +1 -2
- package/build/project/customBuildConfig.js +3 -4
- package/build/project/expoConfig.js +5 -6
- package/build/project/expoSdk.js +1 -2
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -3
- package/build/project/ios/bundleIdentifier.js +6 -6
- package/build/project/ios/entitlements.js +2 -3
- package/build/project/ios/exemptEncryption.js +1 -2
- package/build/project/ios/scheme.js +2 -3
- package/build/project/ios/target.d.ts +0 -1
- package/build/project/ios/target.js +8 -9
- package/build/project/ios/versions.js +3 -3
- package/build/project/maybeUploadAssetMapAsync.js +1 -2
- package/build/project/maybeUploadFingerprintAsync.js +1 -2
- package/build/project/metroConfig.js +1 -2
- package/build/project/projectUtils.js +15 -16
- package/build/project/publish.d.ts +15 -2
- package/build/project/publish.js +56 -29
- package/build/project/remoteVersionSource.js +6 -6
- package/build/project/resolveRuntimeVersionAsync.js +2 -3
- package/build/project/uploadAccountScopedFileAsync.js +1 -2
- package/build/project/uploadAccountScopedProjectSourceAsync.js +1 -2
- package/build/project/workflow.js +3 -4
- package/build/prompts.js +5 -6
- package/build/rollout/branch-mapping.js +14 -15
- package/build/rollout/utils.js +5 -6
- package/build/run/android/aapt.js +2 -3
- package/build/run/android/adb.js +8 -9
- package/build/run/android/emulator.js +6 -6
- package/build/run/android/run.js +1 -2
- package/build/run/android/sdk.d.ts +0 -1
- package/build/run/android/sdk.js +2 -2
- package/build/run/android/systemRequirements.js +1 -2
- package/build/run/ios/run.js +1 -2
- package/build/run/ios/simctl.js +1 -2
- package/build/run/ios/simulator.js +9 -10
- package/build/run/ios/systemRequirements.js +1 -2
- package/build/run/ios/xcode.js +5 -5
- package/build/run/ios/xcrun.js +3 -4
- package/build/run/run.js +2 -3
- package/build/run/utils.js +1 -2
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/android/ServiceAccountSource.js +4 -4
- package/build/submit/commons.js +2 -3
- package/build/submit/context.js +1 -2
- package/build/submit/ios/AppProduce.js +1 -2
- package/build/submit/ios/AppSpecificPasswordSource.js +3 -3
- package/build/submit/ios/AscApiKeySource.js +4 -4
- package/build/submit/ios/utils/language.js +1 -2
- package/build/submit/submit.js +3 -4
- package/build/submit/utils/builds.js +1 -2
- package/build/submit/utils/errors.js +1 -2
- package/build/submit/utils/files.js +2 -3
- package/build/submit/utils/logs.js +1 -2
- package/build/submit/utils/summary.js +2 -3
- package/build/submit/utils/urls.js +2 -3
- package/build/submit/utils/wait.js +2 -3
- package/build/update/android/UpdatesModule.js +2 -3
- package/build/update/configure.js +4 -4
- package/build/update/delete.js +1 -2
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +1 -2
- package/build/update/ios/UpdatesModule.js +2 -3
- package/build/update/queries.d.ts +5 -3
- package/build/update/queries.js +12 -9
- package/build/update/republish.js +5 -6
- package/build/update/roll-back-to-embedded.js +1 -2
- package/build/update/utils.js +15 -15
- package/build/uploads.js +3 -4
- package/build/user/User.js +2 -3
- package/build/user/actions.js +1 -2
- package/build/user/expoSsoLauncher.js +1 -2
- package/build/user/fetchSessionSecretAndSsoUser.js +1 -2
- package/build/user/fetchSessionSecretAndUser.js +1 -2
- package/build/user/fetchUser.js +1 -2
- package/build/utils/code-signing.d.ts +0 -1
- package/build/utils/code-signing.js +7 -8
- package/build/utils/date.js +1 -2
- package/build/utils/download.js +2 -3
- package/build/utils/expoCli.js +4 -4
- package/build/utils/expoUpdatesCli.js +2 -2
- package/build/utils/expodash/areSetsEqual.js +1 -1
- package/build/utils/expodash/capitalize.js +1 -1
- package/build/utils/expodash/chunk.js +1 -1
- package/build/utils/expodash/differenceBy.js +1 -1
- package/build/utils/expodash/filter.js +1 -2
- package/build/utils/expodash/groupBy.js +1 -1
- package/build/utils/expodash/intersection.js +1 -1
- package/build/utils/expodash/mapMapAsync.js +1 -1
- package/build/utils/expodash/memoize.js +1 -2
- package/build/utils/expodash/pick.js +1 -1
- package/build/utils/expodash/sortBy.js +1 -1
- package/build/utils/expodash/uniq.js +1 -1
- package/build/utils/expodash/uniqBy.js +1 -1
- package/build/utils/expodash/zipObject.js +1 -1
- package/build/utils/files.js +2 -3
- package/build/utils/formatFields.js +1 -1
- package/build/utils/image.js +3 -3
- package/build/utils/json.js +2 -3
- package/build/utils/plist.d.ts +0 -1
- package/build/utils/plist.js +3 -4
- package/build/utils/pollForBackgroundJobReceiptAsync.js +2 -2
- package/build/utils/profiles.js +3 -4
- package/build/utils/progress.js +1 -2
- package/build/utils/promise.js +1 -2
- package/build/utils/prompts.js +8 -9
- package/build/utils/queries.js +2 -3
- package/build/utils/relay.js +4 -4
- package/build/utils/statuspageService.js +1 -2
- package/build/utils/timer.js +4 -5
- package/build/utils/usage/checkForOverages.js +4 -5
- package/build/utils/variableUtils.js +4 -5
- package/build/vcs/clients/git.js +1 -2
- package/build/vcs/git.js +5 -6
- package/build/vcs/index.js +1 -2
- package/build/vcs/local.js +2 -2
- package/build/webhooks/formatWebhook.js +1 -2
- package/build/webhooks/input.js +3 -4
- package/build/worker/assets.d.ts +0 -1
- package/build/worker/assets.js +6 -7
- package/build/worker/deployment.js +8 -9
- package/build/worker/mutations.d.ts +1 -1
- package/build/worker/queries.d.ts +4 -4
- package/build/worker/upload.d.ts +0 -2
- package/build/worker/upload.js +5 -6
- package/build/worker/utils/logs.js +5 -5
- package/build/worker/utils/multipart.js +3 -3
- package/oclif.manifest.json +35 -1
- package/package.json +13 -11
package/build/update/utils.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updatePublishPlatformToAppPlatform = exports.
|
|
3
|
+
exports.updatePublishPlatformToAppPlatform = exports.UPDATE_COLUMNS_WITH_BRANCH = exports.UPDATE_COLUMNS = void 0;
|
|
4
|
+
exports.formatUpdateGroup = formatUpdateGroup;
|
|
5
|
+
exports.formatBranch = formatBranch;
|
|
6
|
+
exports.getPlatformsForGroup = getPlatformsForGroup;
|
|
7
|
+
exports.formatPlatformForUpdateGroup = formatPlatformForUpdateGroup;
|
|
8
|
+
exports.truncateString = truncateString;
|
|
9
|
+
exports.formatUpdateMessage = formatUpdateMessage;
|
|
10
|
+
exports.ensureValidVersions = ensureValidVersions;
|
|
11
|
+
exports.formatUpdateTitle = formatUpdateTitle;
|
|
12
|
+
exports.getUpdateJsonInfosForUpdates = getUpdateJsonInfosForUpdates;
|
|
13
|
+
exports.getUpdateGroupDescriptions = getUpdateGroupDescriptions;
|
|
14
|
+
exports.getUpdateGroupDescriptionsWithBranch = getUpdateGroupDescriptionsWithBranch;
|
|
15
|
+
exports.getBranchDescription = getBranchDescription;
|
|
16
|
+
exports.isBundleDiffingEnabled = isBundleDiffingEnabled;
|
|
17
|
+
exports.prewarmDiffingAsync = prewarmDiffingAsync;
|
|
4
18
|
const tslib_1 = require("tslib");
|
|
5
19
|
const timeago_js_1 = require("@expo/timeago.js");
|
|
6
20
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -34,7 +48,6 @@ function formatUpdateGroup(update) {
|
|
|
34
48
|
{ label: 'Group ID', value: update.group },
|
|
35
49
|
]);
|
|
36
50
|
}
|
|
37
|
-
exports.formatUpdateGroup = formatUpdateGroup;
|
|
38
51
|
function formatBranch({ branch, branchRolloutPercentage, update, }) {
|
|
39
52
|
const rolloutField = branchRolloutPercentage
|
|
40
53
|
? [{ label: 'Rollout', value: `${branchRolloutPercentage}%` }]
|
|
@@ -48,12 +61,10 @@ function formatBranch({ branch, branchRolloutPercentage, update, }) {
|
|
|
48
61
|
{ label: 'Group ID', value: update?.group ?? 'N/A' },
|
|
49
62
|
]);
|
|
50
63
|
}
|
|
51
|
-
exports.formatBranch = formatBranch;
|
|
52
64
|
function getPlatformsForGroup({ group, updates = [], }) {
|
|
53
65
|
const groupedUpdates = (0, groupBy_1.default)(updates, update => update.group);
|
|
54
66
|
return formatPlatformForUpdateGroup(group ? groupedUpdates[group] : undefined);
|
|
55
67
|
}
|
|
56
|
-
exports.getPlatformsForGroup = getPlatformsForGroup;
|
|
57
68
|
function formatPlatformForUpdateGroup(updateGroup) {
|
|
58
69
|
return !updateGroup || updateGroup.length === 0
|
|
59
70
|
? 'N/A'
|
|
@@ -62,14 +73,12 @@ function formatPlatformForUpdateGroup(updateGroup) {
|
|
|
62
73
|
.sort()
|
|
63
74
|
.join(', ');
|
|
64
75
|
}
|
|
65
|
-
exports.formatPlatformForUpdateGroup = formatPlatformForUpdateGroup;
|
|
66
76
|
function truncateString(originalMessage, length = 512) {
|
|
67
77
|
if (originalMessage.length > length) {
|
|
68
78
|
return originalMessage.substring(0, length - 3) + '...';
|
|
69
79
|
}
|
|
70
80
|
return originalMessage;
|
|
71
81
|
}
|
|
72
|
-
exports.truncateString = truncateString;
|
|
73
82
|
function formatUpdateMessage(update) {
|
|
74
83
|
if (!update) {
|
|
75
84
|
return 'N/A';
|
|
@@ -77,7 +86,6 @@ function formatUpdateMessage(update) {
|
|
|
77
86
|
const message = update.message ? `"${truncateString(update.message)}" ` : '';
|
|
78
87
|
return `${message}(${(0, timeago_js_1.format)(update.createdAt, 'en_US')} by ${(0, User_1.getActorDisplayName)(update.actor)})`;
|
|
79
88
|
}
|
|
80
|
-
exports.formatUpdateMessage = formatUpdateMessage;
|
|
81
89
|
function ensureValidVersions(exp, platform) {
|
|
82
90
|
const error = new Error(`Couldn't find either ${chalk_1.default.bold('runtimeVersion')} or ${chalk_1.default.bold('sdkVersion')} to configure ${chalk_1.default.bold('expo-updates')}. Specify at least one of these properties under the ${chalk_1.default.bold('expo')} key in ${chalk_1.default.bold('app.json')}. ${(0, log_1.learnMore)('https://docs.expo.dev/eas-update/runtime-versions/')}`);
|
|
83
91
|
if ([platform_1.RequestedPlatform.Android, platform_1.RequestedPlatform.All].includes(platform) &&
|
|
@@ -91,7 +99,6 @@ function ensureValidVersions(exp, platform) {
|
|
|
91
99
|
throw error;
|
|
92
100
|
}
|
|
93
101
|
}
|
|
94
|
-
exports.ensureValidVersions = ensureValidVersions;
|
|
95
102
|
function formatUpdateTitle(update) {
|
|
96
103
|
const { message, createdAt, actor, runtimeVersion } = update;
|
|
97
104
|
let actorName;
|
|
@@ -112,7 +119,6 @@ function formatUpdateTitle(update) {
|
|
|
112
119
|
}
|
|
113
120
|
return `[${(0, dateformat_1.default)(createdAt, 'mmm dd HH:MM')} by ${actorName}, runtimeVersion: ${runtimeVersion}] ${message}`;
|
|
114
121
|
}
|
|
115
|
-
exports.formatUpdateTitle = formatUpdateTitle;
|
|
116
122
|
function getUpdateJsonInfosForUpdates(updates) {
|
|
117
123
|
return updates.map(update => ({
|
|
118
124
|
id: update.id,
|
|
@@ -127,7 +133,6 @@ function getUpdateJsonInfosForUpdates(updates) {
|
|
|
127
133
|
gitCommitHash: update.gitCommitHash,
|
|
128
134
|
}));
|
|
129
135
|
}
|
|
130
|
-
exports.getUpdateJsonInfosForUpdates = getUpdateJsonInfosForUpdates;
|
|
131
136
|
function getUpdateGroupDescriptions(updateGroups) {
|
|
132
137
|
return updateGroups.map(updateGroup => ({
|
|
133
138
|
message: formatUpdateMessage(updateGroup[0]),
|
|
@@ -139,7 +144,6 @@ function getUpdateGroupDescriptions(updateGroups) {
|
|
|
139
144
|
platforms: formatPlatformForUpdateGroup(updateGroup),
|
|
140
145
|
}));
|
|
141
146
|
}
|
|
142
|
-
exports.getUpdateGroupDescriptions = getUpdateGroupDescriptions;
|
|
143
147
|
function getUpdateGroupDescriptionsWithBranch(updateGroups) {
|
|
144
148
|
return updateGroups.map(updateGroup => ({
|
|
145
149
|
branch: updateGroup[0].branch.name,
|
|
@@ -152,7 +156,6 @@ function getUpdateGroupDescriptionsWithBranch(updateGroups) {
|
|
|
152
156
|
platforms: formatPlatformForUpdateGroup(updateGroup),
|
|
153
157
|
}));
|
|
154
158
|
}
|
|
155
|
-
exports.getUpdateGroupDescriptionsWithBranch = getUpdateGroupDescriptionsWithBranch;
|
|
156
159
|
function getBranchDescription(branch) {
|
|
157
160
|
if (branch.updates.length === 0) {
|
|
158
161
|
return { branch: branch.name };
|
|
@@ -174,11 +177,9 @@ function getBranchDescription(branch) {
|
|
|
174
177
|
},
|
|
175
178
|
};
|
|
176
179
|
}
|
|
177
|
-
exports.getBranchDescription = getBranchDescription;
|
|
178
180
|
function isBundleDiffingEnabled(exp) {
|
|
179
181
|
return exp.updates?.enableBsdiffPatchSupport === true;
|
|
180
182
|
}
|
|
181
|
-
exports.isBundleDiffingEnabled = isBundleDiffingEnabled;
|
|
182
183
|
// Make authenticated requests to the launch asset URL with diffing headers
|
|
183
184
|
async function prewarmDiffingAsync(graphqlClient, appId, newUpdates) {
|
|
184
185
|
const DUMMY_EMBEDDED_UPDATE_ID = '00000000-0000-0000-0000-000000000000';
|
|
@@ -235,7 +236,6 @@ async function prewarmDiffingAsync(graphqlClient, appId, newUpdates) {
|
|
|
235
236
|
}
|
|
236
237
|
}));
|
|
237
238
|
}
|
|
238
|
-
exports.prewarmDiffingAsync = prewarmDiffingAsync;
|
|
239
239
|
exports.updatePublishPlatformToAppPlatform = {
|
|
240
240
|
android: generated_1.AppPlatform.Android,
|
|
241
241
|
ios: generated_1.AppPlatform.Ios,
|
package/build/uploads.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.uploadFileAtPathToGCSAsync = uploadFileAtPathToGCSAsync;
|
|
4
|
+
exports.uploadAccountScopedFileAtPathToGCSAsync = uploadAccountScopedFileAtPathToGCSAsync;
|
|
5
|
+
exports.uploadWithPresignedPostWithRetryAsync = uploadWithPresignedPostWithRetryAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const form_data_1 = tslib_1.__importDefault(require("form-data"));
|
|
6
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -13,13 +15,11 @@ async function uploadFileAtPathToGCSAsync(graphqlClient, type, path, handleProgr
|
|
|
13
15
|
await uploadWithSignedUrlWithProgressAsync(path, signedUrl, handleProgressEvent);
|
|
14
16
|
return signedUrl.bucketKey;
|
|
15
17
|
}
|
|
16
|
-
exports.uploadFileAtPathToGCSAsync = uploadFileAtPathToGCSAsync;
|
|
17
18
|
async function uploadAccountScopedFileAtPathToGCSAsync(graphqlClient, { type, accountId, path, handleProgressEvent, }) {
|
|
18
19
|
const signedUrl = await UploadSessionMutation_1.UploadSessionMutation.createAccountScopedUploadSessionAsync(graphqlClient, { type, accountID: accountId });
|
|
19
20
|
await uploadWithSignedUrlWithProgressAsync(path, signedUrl, handleProgressEvent);
|
|
20
21
|
return signedUrl.bucketKey;
|
|
21
22
|
}
|
|
22
|
-
exports.uploadAccountScopedFileAtPathToGCSAsync = uploadAccountScopedFileAtPathToGCSAsync;
|
|
23
23
|
async function uploadWithPresignedPostWithRetryAsync(file, presignedPost, onAssetUploadBegin) {
|
|
24
24
|
return await (0, promise_retry_1.default)(async (retry) => {
|
|
25
25
|
// retry fetch errors (usually connection or DNS errors)
|
|
@@ -49,7 +49,6 @@ async function uploadWithPresignedPostWithRetryAsync(file, presignedPost, onAsse
|
|
|
49
49
|
factor: 2,
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
exports.uploadWithPresignedPostWithRetryAsync = uploadWithPresignedPostWithRetryAsync;
|
|
53
52
|
async function uploadWithPresignedPostAsync(file, presignedPost) {
|
|
54
53
|
const fileStat = await fs_extra_1.default.stat(file);
|
|
55
54
|
const fileSize = fileStat.size;
|
package/build/user/User.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getActorDisplayName = getActorDisplayName;
|
|
4
|
+
exports.getActorUsername = getActorUsername;
|
|
4
5
|
/**
|
|
5
6
|
* Resolve the name of the actor, either normal user, sso user or robot user.
|
|
6
7
|
* This should be used whenever the "current user" needs to be displayed.
|
|
@@ -18,7 +19,6 @@ function getActorDisplayName(actor) {
|
|
|
18
19
|
return 'unknown';
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
exports.getActorDisplayName = getActorDisplayName;
|
|
22
22
|
function getActorUsername(actor) {
|
|
23
23
|
switch (actor?.__typename) {
|
|
24
24
|
case 'User':
|
|
@@ -29,4 +29,3 @@ function getActorUsername(actor) {
|
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
exports.getActorUsername = getActorUsername;
|
package/build/user/actions.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureActorHasPrimaryAccount =
|
|
3
|
+
exports.ensureActorHasPrimaryAccount = ensureActorHasPrimaryAccount;
|
|
4
4
|
function ensureActorHasPrimaryAccount(user) {
|
|
5
5
|
if (user.__typename === 'User' || user.__typename === 'SSOUser') {
|
|
6
6
|
return user.primaryAccount;
|
|
7
7
|
}
|
|
8
8
|
throw new Error('This action is not supported for robot users.');
|
|
9
9
|
}
|
|
10
|
-
exports.ensureActorHasPrimaryAccount = ensureActorHasPrimaryAccount;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSessionUsingBrowserAuthFlowAsync =
|
|
3
|
+
exports.getSessionUsingBrowserAuthFlowAsync = getSessionUsingBrowserAuthFlowAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const better_opn_1 = tslib_1.__importDefault(require("better-opn"));
|
|
@@ -96,4 +96,3 @@ async function getSessionUsingBrowserAuthFlowAsync({ expoWebsiteUrl, }) {
|
|
|
96
96
|
};
|
|
97
97
|
return await executeAuthFlow();
|
|
98
98
|
}
|
|
99
|
-
exports.getSessionUsingBrowserAuthFlowAsync = getSessionUsingBrowserAuthFlowAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchSessionSecretAndSsoUserAsync =
|
|
3
|
+
exports.fetchSessionSecretAndSsoUserAsync = fetchSessionSecretAndSsoUserAsync;
|
|
4
4
|
const expoSsoLauncher_1 = require("./expoSsoLauncher");
|
|
5
5
|
const fetchUser_1 = require("./fetchUser");
|
|
6
6
|
const api_1 = require("../api");
|
|
@@ -15,4 +15,3 @@ async function fetchSessionSecretAndSsoUserAsync() {
|
|
|
15
15
|
username: userData.username,
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
exports.fetchSessionSecretAndSsoUserAsync = fetchSessionSecretAndSsoUserAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchSessionSecretAndUserAsync =
|
|
3
|
+
exports.fetchSessionSecretAndUserAsync = fetchSessionSecretAndUserAsync;
|
|
4
4
|
const fetchUser_1 = require("./fetchUser");
|
|
5
5
|
const api_1 = require("../api");
|
|
6
6
|
async function fetchSessionSecretAndUserAsync({ username, password, otp, }) {
|
|
@@ -20,4 +20,3 @@ async function fetchSessionSecretAndUserAsync({ username, password, otp, }) {
|
|
|
20
20
|
username: userData.username,
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
exports.fetchSessionSecretAndUserAsync = fetchSessionSecretAndUserAsync;
|
package/build/user/fetchUser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchUserAsync =
|
|
3
|
+
exports.fetchUserAsync = fetchUserAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
6
|
const createGraphqlClient_1 = require("../commandUtils/context/contextUtils/createGraphqlClient");
|
|
@@ -26,4 +26,3 @@ async function fetchUserAsync({ sessionSecret, }) {
|
|
|
26
26
|
username: meUserActor.username,
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
exports.fetchUserAsync = fetchUserAsync;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getCodeSigningInfoAsync = getCodeSigningInfoAsync;
|
|
4
|
+
exports.getKeyAndCertificateFromPathsAsync = getKeyAndCertificateFromPathsAsync;
|
|
5
|
+
exports.getManifestBodyAsync = getManifestBodyAsync;
|
|
6
|
+
exports.getDirectiveBodyAsync = getDirectiveBodyAsync;
|
|
7
|
+
exports.signBody = signBody;
|
|
8
|
+
exports.checkManifestBodyAgainstUpdateInfoGroup = checkManifestBodyAgainstUpdateInfoGroup;
|
|
9
|
+
exports.checkDirectiveBodyAgainstUpdateInfoGroup = checkDirectiveBodyAgainstUpdateInfoGroup;
|
|
4
10
|
const tslib_1 = require("tslib");
|
|
5
11
|
const code_signing_certificates_1 = require("@expo/code-signing-certificates");
|
|
6
12
|
const multipart_body_parser_1 = require("@expo/multipart-body-parser");
|
|
@@ -35,7 +41,6 @@ async function getCodeSigningInfoAsync(config, privateKeyPath) {
|
|
|
35
41
|
},
|
|
36
42
|
};
|
|
37
43
|
}
|
|
38
|
-
exports.getCodeSigningInfoAsync = getCodeSigningInfoAsync;
|
|
39
44
|
async function readFileAsync(path, errorMessage) {
|
|
40
45
|
try {
|
|
41
46
|
return await fs_1.promises.readFile(path, 'utf8');
|
|
@@ -60,7 +65,6 @@ async function getKeyAndCertificateFromPathsAsync({ codeSigningCertificatePath,
|
|
|
60
65
|
certificate,
|
|
61
66
|
};
|
|
62
67
|
}
|
|
63
|
-
exports.getKeyAndCertificateFromPathsAsync = getKeyAndCertificateFromPathsAsync;
|
|
64
68
|
async function getMultipartBodyPartAsync(res, partName) {
|
|
65
69
|
const contentType = res.headers.get('content-type');
|
|
66
70
|
if (!contentType) {
|
|
@@ -74,15 +78,12 @@ async function getMultipartBodyPartAsync(res, partName) {
|
|
|
74
78
|
async function getManifestBodyAsync(res) {
|
|
75
79
|
return await getMultipartBodyPartAsync(res, 'manifest');
|
|
76
80
|
}
|
|
77
|
-
exports.getManifestBodyAsync = getManifestBodyAsync;
|
|
78
81
|
async function getDirectiveBodyAsync(res) {
|
|
79
82
|
return await getMultipartBodyPartAsync(res, 'directive');
|
|
80
83
|
}
|
|
81
|
-
exports.getDirectiveBodyAsync = getDirectiveBodyAsync;
|
|
82
84
|
function signBody(body, codeSigningInfo) {
|
|
83
85
|
return (0, code_signing_certificates_1.signBufferRSASHA256AndVerify)(codeSigningInfo.privateKey, codeSigningInfo.certificate, Buffer.from(body, 'utf-8'));
|
|
84
86
|
}
|
|
85
|
-
exports.signBody = signBody;
|
|
86
87
|
function assertAssetParity(manifestResponseBodyAssetJSON, partialManifestAsset) {
|
|
87
88
|
const baseErrorMessage = `Code signing manifest integrity error: Manifest asset tamper detected for asset: ${partialManifestAsset.bundleKey}; field: `;
|
|
88
89
|
if (manifestResponseBodyAssetJSON.hash !== partialManifestAsset.fileSHA256) {
|
|
@@ -118,7 +119,6 @@ function checkManifestBodyAgainstUpdateInfoGroup(manifestResponseBody, partialMa
|
|
|
118
119
|
assertAssetParity(correspondingManifestResponseBodyAssetJSON, (0, nullthrows_1.default)(partialManifestAsset));
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
exports.checkManifestBodyAgainstUpdateInfoGroup = checkManifestBodyAgainstUpdateInfoGroup;
|
|
122
122
|
function checkDirectiveBodyAgainstUpdateInfoGroup(directiveResponseBody) {
|
|
123
123
|
const directiveResponseBodyJSON = JSON.parse(directiveResponseBody);
|
|
124
124
|
if (!(0, areSetsEqual_1.default)(new Set(Object.keys(directiveResponseBodyJSON)), new Set(['extra', 'type', 'parameters']))) {
|
|
@@ -128,4 +128,3 @@ function checkDirectiveBodyAgainstUpdateInfoGroup(directiveResponseBody) {
|
|
|
128
128
|
throw new Error('Code signing directive integrity error: Incorrect directive type');
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
exports.checkDirectiveBodyAgainstUpdateInfoGroup = checkDirectiveBodyAgainstUpdateInfoGroup;
|
package/build/utils/date.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromNow =
|
|
3
|
+
exports.fromNow = fromNow;
|
|
4
4
|
function getBiggestInterval(seconds) {
|
|
5
5
|
let interval = seconds / 31536000;
|
|
6
6
|
if (interval > 1) {
|
|
@@ -34,4 +34,3 @@ function fromNow(date) {
|
|
|
34
34
|
const intervalAmount = Math.floor(intervalAmountFloat);
|
|
35
35
|
return `${intervalAmount} ${intervalType}${intervalAmount > 1 ? 's' : ''}`;
|
|
36
36
|
}
|
|
37
|
-
exports.fromNow = fromNow;
|
package/build/utils/download.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.downloadAndMaybeExtractAppAsync = downloadAndMaybeExtractAppAsync;
|
|
4
|
+
exports.extractAppFromLocalArchiveAsync = extractAppFromLocalArchiveAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
7
|
const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
|
|
@@ -102,14 +103,12 @@ async function downloadAndMaybeExtractAppAsync(url, platform, cachedAppPath) {
|
|
|
102
103
|
return await maybeCacheAppAsync(appPath, cachedAppPath);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
exports.downloadAndMaybeExtractAppAsync = downloadAndMaybeExtractAppAsync;
|
|
106
106
|
async function extractAppFromLocalArchiveAsync(appArchivePath, platform) {
|
|
107
107
|
const outputDir = path_1.default.join((0, paths_1.getTmpDirectory)(), (0, uuid_1.v4)());
|
|
108
108
|
await fs_extra_1.default.promises.mkdir(outputDir, { recursive: true });
|
|
109
109
|
await tarExtractAsync(appArchivePath, outputDir);
|
|
110
110
|
return await getAppPathAsync(outputDir, platform === generated_1.AppPlatform.Android ? 'apk' : 'app');
|
|
111
111
|
}
|
|
112
|
-
exports.extractAppFromLocalArchiveAsync = extractAppFromLocalArchiveAsync;
|
|
113
112
|
async function getAppPathAsync(outputDir, applicationExtension) {
|
|
114
113
|
const appFilePaths = await (0, fast_glob_1.default)(`./**/*.${applicationExtension}`, {
|
|
115
114
|
cwd: outputDir,
|
package/build/utils/expoCli.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.shouldUseVersionedExpoCLIWithExplicitPlatforms = exports.shouldUseVersionedExpoCLI = void 0;
|
|
4
|
+
exports.shouldUseVersionedExpoCLIExpensive = shouldUseVersionedExpoCLIExpensive;
|
|
5
|
+
exports.shouldUseVersionedExpoCLIWithExplicitPlatformsExpensive = shouldUseVersionedExpoCLIWithExplicitPlatformsExpensive;
|
|
6
|
+
exports.expoCommandAsync = expoCommandAsync;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
9
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -49,7 +52,6 @@ function shouldUseVersionedExpoCLIExpensive(projectDir, exp) {
|
|
|
49
52
|
// Finally ensure the CLI is available for sanity.
|
|
50
53
|
return !!resolve_from_1.default.silent(projectDir, '@expo/cli');
|
|
51
54
|
}
|
|
52
|
-
exports.shouldUseVersionedExpoCLIExpensive = shouldUseVersionedExpoCLIExpensive;
|
|
53
55
|
/**
|
|
54
56
|
* Determine if we can and should use `expo export` with multiple `--platform` flags.
|
|
55
57
|
* This is an issue related to `expo export --all` causing issues when users have Metro web configured.
|
|
@@ -62,7 +64,6 @@ function shouldUseVersionedExpoCLIWithExplicitPlatformsExpensive(projectDir) {
|
|
|
62
64
|
}
|
|
63
65
|
return gteSdkVersion(require(expoCliPath).version, '0.10.11');
|
|
64
66
|
}
|
|
65
|
-
exports.shouldUseVersionedExpoCLIWithExplicitPlatformsExpensive = shouldUseVersionedExpoCLIWithExplicitPlatformsExpensive;
|
|
66
67
|
exports.shouldUseVersionedExpoCLI = (0, memoize_1.memoize)(shouldUseVersionedExpoCLIExpensive);
|
|
67
68
|
exports.shouldUseVersionedExpoCLIWithExplicitPlatforms = (0, memoize_1.memoize)(shouldUseVersionedExpoCLIWithExplicitPlatformsExpensive);
|
|
68
69
|
async function expoCommandAsync(projectDir, args, { silent = false, extraEnv = {}, } = {}) {
|
|
@@ -102,4 +103,3 @@ async function expoCommandAsync(projectDir, args, { silent = false, extraEnv = {
|
|
|
102
103
|
}
|
|
103
104
|
await spawnPromise;
|
|
104
105
|
}
|
|
105
|
-
exports.expoCommandAsync = expoCommandAsync;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ExpoUpdatesCLICommandFailedError = exports.ExpoUpdatesCLIInvalidCommandError = exports.ExpoUpdatesCLIModuleNotFoundError = void 0;
|
|
4
|
+
exports.expoUpdatesCommandAsync = expoUpdatesCommandAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
7
|
const resolve_from_1 = tslib_1.__importStar(require("resolve-from"));
|
|
@@ -46,4 +47,3 @@ async function expoUpdatesCommandAsync(projectDir, args, options) {
|
|
|
46
47
|
throw e;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
exports.expoUpdatesCommandAsync = expoUpdatesCommandAsync;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = chunk;
|
|
3
4
|
function chunk(list, size = 1) {
|
|
4
5
|
const result = [];
|
|
5
6
|
for (let i = 0; i < list.length; i++) {
|
|
@@ -13,4 +14,3 @@ function chunk(list, size = 1) {
|
|
|
13
14
|
}
|
|
14
15
|
return result;
|
|
15
16
|
}
|
|
16
|
-
exports.default = chunk;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = differenceBy;
|
|
3
4
|
function differenceBy(a, b, key) {
|
|
4
5
|
const valuesInB = b.map(j => j[key]);
|
|
5
6
|
return a.filter(i => !valuesInB.includes(i[key]));
|
|
6
7
|
}
|
|
7
|
-
exports.default = differenceBy;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.truthy =
|
|
3
|
+
exports.truthy = truthy;
|
|
4
4
|
/** A predicate to filter arrays on truthy values, returning a type-safe array. */
|
|
5
5
|
function truthy(value) {
|
|
6
6
|
return !!value;
|
|
7
7
|
}
|
|
8
|
-
exports.truthy = truthy;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = groupBy;
|
|
3
4
|
function groupBy(list, getKey) {
|
|
4
5
|
return list.reduce((previous, currentItem) => {
|
|
5
6
|
const group = getKey(currentItem);
|
|
@@ -10,4 +11,3 @@ function groupBy(list, getKey) {
|
|
|
10
11
|
return previous;
|
|
11
12
|
}, {});
|
|
12
13
|
}
|
|
13
|
-
exports.default = groupBy;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = intersection;
|
|
3
4
|
function intersection(items1, items2) {
|
|
4
5
|
const set1 = new Set(items1);
|
|
5
6
|
const set2 = new Set(items2);
|
|
6
7
|
return Array.from(new Set([...set1].filter(i => set2.has(i))));
|
|
7
8
|
}
|
|
8
|
-
exports.default = intersection;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = mapMapAsync;
|
|
3
4
|
async function mapMapAsync(map, mapper) {
|
|
4
5
|
const resultingMap = new Map();
|
|
5
6
|
await Promise.all(Array.from(map.keys()).map(async (k) => {
|
|
@@ -9,4 +10,3 @@ async function mapMapAsync(map, mapper) {
|
|
|
9
10
|
}));
|
|
10
11
|
return resultingMap;
|
|
11
12
|
}
|
|
12
|
-
exports.default = mapMapAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.memoize =
|
|
3
|
+
exports.memoize = memoize;
|
|
4
4
|
/** `lodash.memoize` */
|
|
5
5
|
function memoize(fn) {
|
|
6
6
|
const cache = {};
|
|
@@ -14,4 +14,3 @@ function memoize(fn) {
|
|
|
14
14
|
return result;
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
exports.memoize = memoize;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = pick;
|
|
3
4
|
function pick(object, keys) {
|
|
4
5
|
return keys.reduce((obj, key) => {
|
|
5
6
|
if (object && object.hasOwnProperty(key)) {
|
|
@@ -8,4 +9,3 @@ function pick(object, keys) {
|
|
|
8
9
|
return obj;
|
|
9
10
|
}, {});
|
|
10
11
|
}
|
|
11
|
-
exports.default = pick;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = sortBy;
|
|
3
4
|
function sortBy(list, what, order = 'asc') {
|
|
4
5
|
const compareByFn = what &&
|
|
5
6
|
((a, b) => {
|
|
@@ -8,4 +9,3 @@ function sortBy(list, what, order = 'asc') {
|
|
|
8
9
|
});
|
|
9
10
|
return list.concat().sort(compareByFn);
|
|
10
11
|
}
|
|
11
|
-
exports.default = sortBy;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = uniqBy;
|
|
3
4
|
function uniqBy(list, getKey) {
|
|
4
5
|
const uniqueValues = new Set();
|
|
5
6
|
const result = [];
|
|
@@ -11,4 +12,3 @@ function uniqBy(list, getKey) {
|
|
|
11
12
|
}
|
|
12
13
|
return result;
|
|
13
14
|
}
|
|
14
|
-
exports.default = uniqBy;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = zipObject;
|
|
3
4
|
function zipObject(keys, values) {
|
|
4
5
|
if (keys.length !== values.length) {
|
|
5
6
|
throw new Error('The number of items does not match');
|
|
@@ -10,4 +11,3 @@ function zipObject(keys, values) {
|
|
|
10
11
|
}
|
|
11
12
|
return result;
|
|
12
13
|
}
|
|
13
|
-
exports.default = zipObject;
|
package/build/utils/files.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.maybeRenameExistingFileAsync = maybeRenameExistingFileAsync;
|
|
4
|
+
exports.formatBytes = formatBytes;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
7
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -21,7 +22,6 @@ async function maybeRenameExistingFileAsync(projectDir, filename) {
|
|
|
21
22
|
await fs_extra_1.default.rename(desiredFilePath, path_1.default.resolve(projectDir, getRenamedFilename(filename, num)));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
exports.maybeRenameExistingFileAsync = maybeRenameExistingFileAsync;
|
|
25
25
|
function formatBytes(bytes) {
|
|
26
26
|
if (bytes === 0) {
|
|
27
27
|
return `0`;
|
|
@@ -50,4 +50,3 @@ function formatBytes(bytes) {
|
|
|
50
50
|
}
|
|
51
51
|
return `${Math.floor(bytes / 1024)} GB`;
|
|
52
52
|
}
|
|
53
|
-
exports.formatBytes = formatBytes;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = formatFields;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
5
6
|
function formatFields(fields, options = { labelFormat: chalk_1.default.dim }) {
|
|
@@ -16,4 +17,3 @@ function formatFields(fields, options = { labelFormat: chalk_1.default.dim }) {
|
|
|
16
17
|
})
|
|
17
18
|
.join('\n');
|
|
18
19
|
}
|
|
19
|
-
exports.default = formatFields;
|
package/build/utils/image.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ImageTransparencyError = exports.ImageNonPngError = void 0;
|
|
4
|
+
exports.ensurePNGIsNotTransparentAsync = ensurePNGIsNotTransparentAsync;
|
|
5
|
+
exports.isPNGAsync = isPNGAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
8
|
const pngjs_1 = require("pngjs");
|
|
@@ -56,7 +58,6 @@ async function ensurePNGIsNotTransparentAsync(imagePathOrURL) {
|
|
|
56
58
|
});
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
|
-
exports.ensurePNGIsNotTransparentAsync = ensurePNGIsNotTransparentAsync;
|
|
60
61
|
async function isPNGAsync(imagePathOrURL) {
|
|
61
62
|
const stream = await getImageStreamAsync(imagePathOrURL);
|
|
62
63
|
return await new Promise((res, rej) => {
|
|
@@ -75,7 +76,6 @@ async function isPNGAsync(imagePathOrURL) {
|
|
|
75
76
|
});
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
exports.isPNGAsync = isPNGAsync;
|
|
79
79
|
async function getImageStreamAsync(imagePathOrURL) {
|
|
80
80
|
if (isURL(imagePathOrURL)) {
|
|
81
81
|
const response = await (0, fetch_1.default)(imagePathOrURL);
|
package/build/utils/json.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.enableJsonOutput = enableJsonOutput;
|
|
4
|
+
exports.printJsonOnlyOutput = printJsonOnlyOutput;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
7
|
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
@@ -12,7 +13,6 @@ function enableJsonOutput() {
|
|
|
12
13
|
stdoutWrite = process.stdout.write;
|
|
13
14
|
process.stdout.write = process.stderr.write.bind(process.stderr);
|
|
14
15
|
}
|
|
15
|
-
exports.enableJsonOutput = enableJsonOutput;
|
|
16
16
|
function printJsonOnlyOutput(value) {
|
|
17
17
|
(0, assert_1.default)(stdoutWrite, 'this should only be called with --json flag');
|
|
18
18
|
try {
|
|
@@ -23,7 +23,6 @@ function printJsonOnlyOutput(value) {
|
|
|
23
23
|
process.stdout.write = process.stderr.write.bind(process.stderr);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.printJsonOnlyOutput = printJsonOnlyOutput;
|
|
27
26
|
function sanitizeValue(value) {
|
|
28
27
|
if (Array.isArray(value)) {
|
|
29
28
|
return value.map(val => sanitizeValue(val));
|
package/build/utils/plist.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { IOSConfig } from '@expo/config-plugins';
|
|
3
2
|
export declare function readPlistAsync(plistPath: string): Promise<object | null>;
|
|
4
3
|
export declare function writePlistAsync(plistPath: string, plistObject: IOSConfig.ExpoPlist | IOSConfig.InfoPlist): Promise<void>;
|