eas-cli 16.28.0 → 16.30.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 -2
- 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/utils/plist.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.readPlistAsync = readPlistAsync;
|
|
4
|
+
exports.writePlistAsync = writePlistAsync;
|
|
5
|
+
exports.parseBinaryPlistBuffer = parseBinaryPlistBuffer;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const plist_1 = tslib_1.__importDefault(require("@expo/plist"));
|
|
6
8
|
const bplist_parser_1 = tslib_1.__importDefault(require("bplist-parser"));
|
|
@@ -21,13 +23,11 @@ async function readPlistAsync(plistPath) {
|
|
|
21
23
|
return null;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
|
-
exports.readPlistAsync = readPlistAsync;
|
|
25
26
|
async function writePlistAsync(plistPath, plistObject) {
|
|
26
27
|
const contents = plist_1.default.build(plistObject);
|
|
27
28
|
await fs_extra_1.default.mkdirp(path_1.default.dirname(plistPath));
|
|
28
29
|
await fs_extra_1.default.writeFile(plistPath, contents);
|
|
29
30
|
}
|
|
30
|
-
exports.writePlistAsync = writePlistAsync;
|
|
31
31
|
const CHAR_CHEVRON_OPEN = 60;
|
|
32
32
|
const CHAR_B_LOWER = 98;
|
|
33
33
|
function parseBinaryPlistBuffer(contents) {
|
|
@@ -49,4 +49,3 @@ function parseBinaryPlistBuffer(contents) {
|
|
|
49
49
|
throw new Error(`Cannot parse plist of type byte (0x${contents[0].toString(16)})`);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
exports.parseBinaryPlistBuffer = parseBinaryPlistBuffer;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BackgroundJobReceiptPollError = exports.BackgroundJobReceiptPollErrorType = void 0;
|
|
4
|
+
exports.pollForBackgroundJobReceiptAsync = pollForBackgroundJobReceiptAsync;
|
|
4
5
|
const core_1 = require("@urql/core");
|
|
5
6
|
const set_interval_async_1 = require("set-interval-async");
|
|
6
7
|
const generated_1 = require("../graphql/generated");
|
|
@@ -89,4 +90,3 @@ async function pollForBackgroundJobReceiptAsync(graphqlClient, backgroundJobRece
|
|
|
89
90
|
}, options?.pollInterval ?? 1000);
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
|
-
exports.pollForBackgroundJobReceiptAsync = pollForBackgroundJobReceiptAsync;
|
package/build/utils/profiles.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getProfilesAsync = getProfilesAsync;
|
|
4
|
+
exports.clearHasPrintedDeprecationWarnings = clearHasPrintedDeprecationWarnings;
|
|
5
|
+
exports.maybePrintBuildProfileDeprecationWarningsAsync = maybePrintBuildProfileDeprecationWarningsAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -23,7 +25,6 @@ async function getProfilesAsync({ easJsonAccessor, platforms, profileName, type,
|
|
|
23
25
|
});
|
|
24
26
|
return await Promise.all(results);
|
|
25
27
|
}
|
|
26
|
-
exports.getProfilesAsync = getProfilesAsync;
|
|
27
28
|
async function maybeSetNodeVersionFromFileAsync(projectDir, profile) {
|
|
28
29
|
if (profile?.node) {
|
|
29
30
|
return;
|
|
@@ -66,7 +67,6 @@ let hasPrintedDeprecationWarnings = false;
|
|
|
66
67
|
function clearHasPrintedDeprecationWarnings() {
|
|
67
68
|
hasPrintedDeprecationWarnings = false;
|
|
68
69
|
}
|
|
69
|
-
exports.clearHasPrintedDeprecationWarnings = clearHasPrintedDeprecationWarnings;
|
|
70
70
|
async function maybePrintBuildProfileDeprecationWarningsAsync(easJsonAccessor, platform, profileName) {
|
|
71
71
|
if (hasPrintedDeprecationWarnings) {
|
|
72
72
|
return;
|
|
@@ -87,4 +87,3 @@ async function maybePrintBuildProfileDeprecationWarningsAsync(easJsonAccessor, p
|
|
|
87
87
|
}
|
|
88
88
|
hasPrintedDeprecationWarnings = true;
|
|
89
89
|
}
|
|
90
|
-
exports.maybePrintBuildProfileDeprecationWarningsAsync = maybePrintBuildProfileDeprecationWarningsAsync;
|
package/build/utils/progress.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createProgressTracker =
|
|
3
|
+
exports.createProgressTracker = createProgressTracker;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const node_crypto_1 = require("node:crypto");
|
|
@@ -62,4 +62,3 @@ function createProgressTracker({ total, message, completedMessage, }) {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
exports.createProgressTracker = createProgressTracker;
|
package/build/utils/promise.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sleepAsync =
|
|
3
|
+
exports.sleepAsync = sleepAsync;
|
|
4
4
|
/**
|
|
5
5
|
* Returns a promise that will be resolved after given ms milliseconds.
|
|
6
6
|
*
|
|
@@ -10,4 +10,3 @@ exports.sleepAsync = void 0;
|
|
|
10
10
|
async function sleepAsync(ms) {
|
|
11
11
|
await new Promise(res => setTimeout(res, ms));
|
|
12
12
|
}
|
|
13
|
-
exports.sleepAsync = sleepAsync;
|
package/build/utils/prompts.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getProjectEnvironmentVariableEnvironmentsAsync = getProjectEnvironmentVariableEnvironmentsAsync;
|
|
4
|
+
exports.promptVariableTypeAsync = promptVariableTypeAsync;
|
|
5
|
+
exports.parseVisibility = parseVisibility;
|
|
6
|
+
exports.promptVariableVisibilityAsync = promptVariableVisibilityAsync;
|
|
7
|
+
exports.promptVariableEnvironmentAsync = promptVariableEnvironmentAsync;
|
|
8
|
+
exports.promptVariableValueAsync = promptVariableValueAsync;
|
|
9
|
+
exports.promptVariableNameAsync = promptVariableNameAsync;
|
|
10
|
+
exports.promptPlatformAsync = promptPlatformAsync;
|
|
4
11
|
const tslib_1 = require("tslib");
|
|
5
12
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
13
|
const environment_1 = require("../build/utils/environment");
|
|
@@ -18,7 +25,6 @@ async function getProjectEnvironmentVariableEnvironmentsAsync(graphqlClient, pro
|
|
|
18
25
|
throw new Error('Failed to fetch available environments');
|
|
19
26
|
}
|
|
20
27
|
}
|
|
21
|
-
exports.getProjectEnvironmentVariableEnvironmentsAsync = getProjectEnvironmentVariableEnvironmentsAsync;
|
|
22
28
|
const CUSTOM_ENVIRONMENT_VALUE = '~~CUSTOM~~';
|
|
23
29
|
async function promptVariableTypeAsync(nonInteractive, initialType) {
|
|
24
30
|
if (nonInteractive) {
|
|
@@ -38,7 +44,6 @@ async function promptVariableTypeAsync(nonInteractive, initialType) {
|
|
|
38
44
|
initial: initialType,
|
|
39
45
|
});
|
|
40
46
|
}
|
|
41
|
-
exports.promptVariableTypeAsync = promptVariableTypeAsync;
|
|
42
47
|
function parseVisibility(stringVisibility) {
|
|
43
48
|
switch (stringVisibility) {
|
|
44
49
|
case 'plaintext':
|
|
@@ -51,7 +56,6 @@ function parseVisibility(stringVisibility) {
|
|
|
51
56
|
throw new Error(`Invalid visibility: ${stringVisibility}`);
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
|
-
exports.parseVisibility = parseVisibility;
|
|
55
59
|
async function promptCustomEnvironmentAsync() {
|
|
56
60
|
const { customEnvironment } = await (0, prompts_1.promptAsync)({
|
|
57
61
|
type: 'text',
|
|
@@ -91,7 +95,6 @@ async function promptVariableVisibilityAsync(nonInteractive, selectedVisibility)
|
|
|
91
95
|
},
|
|
92
96
|
]);
|
|
93
97
|
}
|
|
94
|
-
exports.promptVariableVisibilityAsync = promptVariableVisibilityAsync;
|
|
95
98
|
async function promptVariableEnvironmentAsync({ nonInteractive, selectedEnvironments, multiple = false, canEnterCustomEnvironment = false, graphqlClient, projectId, }) {
|
|
96
99
|
if (nonInteractive) {
|
|
97
100
|
throw new Error('The `--environment` flag must be set when running in `--non-interactive` mode.');
|
|
@@ -143,7 +146,6 @@ async function promptVariableEnvironmentAsync({ nonInteractive, selectedEnvironm
|
|
|
143
146
|
}
|
|
144
147
|
return environments;
|
|
145
148
|
}
|
|
146
|
-
exports.promptVariableEnvironmentAsync = promptVariableEnvironmentAsync;
|
|
147
149
|
async function promptVariableValueAsync({ nonInteractive, required = true, hidden = false, filePath = false, initial, }) {
|
|
148
150
|
if (nonInteractive && required) {
|
|
149
151
|
throw new Error(`Environment variable needs 'value' to be specified when running in non-interactive mode. Run the command with ${chalk_1.default.bold('--value VARIABLE_VALUE')} flag to fix the issue`);
|
|
@@ -168,7 +170,6 @@ async function promptVariableValueAsync({ nonInteractive, required = true, hidde
|
|
|
168
170
|
}
|
|
169
171
|
return variableValue;
|
|
170
172
|
}
|
|
171
|
-
exports.promptVariableValueAsync = promptVariableValueAsync;
|
|
172
173
|
async function promptVariableNameAsync(nonInteractive, initialValue) {
|
|
173
174
|
const validationMessage = 'Variable name may not be empty.';
|
|
174
175
|
if (nonInteractive) {
|
|
@@ -194,7 +195,6 @@ async function promptVariableNameAsync(nonInteractive, initialValue) {
|
|
|
194
195
|
}
|
|
195
196
|
return name;
|
|
196
197
|
}
|
|
197
|
-
exports.promptVariableNameAsync = promptVariableNameAsync;
|
|
198
198
|
async function promptPlatformAsync({ message, }) {
|
|
199
199
|
const { platform } = await (0, prompts_1.promptAsync)({
|
|
200
200
|
type: 'select',
|
|
@@ -217,4 +217,3 @@ async function promptPlatformAsync({ message, }) {
|
|
|
217
217
|
});
|
|
218
218
|
return platform;
|
|
219
219
|
}
|
|
220
|
-
exports.promptPlatformAsync = promptPlatformAsync;
|
package/build/utils/queries.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.paginatedQueryWithConfirmPromptAsync = paginatedQueryWithConfirmPromptAsync;
|
|
4
|
+
exports.paginatedQueryWithSelectPromptAsync = paginatedQueryWithSelectPromptAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const uniqBy_1 = tslib_1.__importDefault(require("./expodash/uniqBy"));
|
|
6
7
|
const prompts_1 = require("../prompts");
|
|
@@ -8,7 +9,6 @@ const fetchMoreValue = '_fetchMore';
|
|
|
8
9
|
async function paginatedQueryWithConfirmPromptAsync(queryArgs) {
|
|
9
10
|
await paginatedQueryWithConfirmPromptInternalAsync(queryArgs, []);
|
|
10
11
|
}
|
|
11
|
-
exports.paginatedQueryWithConfirmPromptAsync = paginatedQueryWithConfirmPromptAsync;
|
|
12
12
|
async function paginatedQueryWithConfirmPromptInternalAsync({ limit, offset, queryToPerform, promptOptions, }, accumulator) {
|
|
13
13
|
// query an extra item to determine if there are more pages left
|
|
14
14
|
const paginatedItems = await queryToPerform(limit + 1, offset);
|
|
@@ -36,7 +36,6 @@ async function paginatedQueryWithConfirmPromptInternalAsync({ limit, offset, que
|
|
|
36
36
|
async function paginatedQueryWithSelectPromptAsync(queryArgs) {
|
|
37
37
|
return await paginatedQueryWithSelectPromptInternalAsync(queryArgs, []);
|
|
38
38
|
}
|
|
39
|
-
exports.paginatedQueryWithSelectPromptAsync = paginatedQueryWithSelectPromptAsync;
|
|
40
39
|
async function paginatedQueryWithSelectPromptInternalAsync({ limit, offset, queryToPerform, promptOptions, }, accumulator) {
|
|
41
40
|
// query an extra item to determine if there are more pages left
|
|
42
41
|
const paginatedItems = await queryToPerform(limit + 1, offset);
|
package/build/utils/relay.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PAGE_SIZE = exports.NEXT_PAGE_OPTION = exports.PREV_PAGE_OPTION = exports.FilterPagination = void 0;
|
|
4
|
+
exports.selectPaginatedAsync = selectPaginatedAsync;
|
|
5
|
+
exports.fetchEntireDatasetAsync = fetchEntireDatasetAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
8
|
const cli_progress_1 = tslib_1.__importDefault(require("cli-progress"));
|
|
@@ -29,7 +31,7 @@ const prompts_1 = require("../prompts");
|
|
|
29
31
|
* @throws {Error} - If an error occurs during execution of the query or pagination.
|
|
30
32
|
*/
|
|
31
33
|
class FilterPagination {
|
|
32
|
-
static async getPageAsync({ queryParams, queryAsync, filterPredicate, internalBatchSize = 100, maxNodesFetched =
|
|
34
|
+
static async getPageAsync({ queryParams, queryAsync, filterPredicate, internalBatchSize = 100, maxNodesFetched = 10_000, beforeEachQuery, afterEachQuery, }) {
|
|
33
35
|
if (this.isFirstAfter(queryParams)) {
|
|
34
36
|
return await this.getFirstItemsAsync(queryParams, {
|
|
35
37
|
queryAsync,
|
|
@@ -143,7 +145,6 @@ async function selectPaginatedAsync({ queryAsync, getTitleAsync, printedType, pa
|
|
|
143
145
|
queryParams: { first: pageSize },
|
|
144
146
|
});
|
|
145
147
|
}
|
|
146
|
-
exports.selectPaginatedAsync = selectPaginatedAsync;
|
|
147
148
|
exports.PREV_PAGE_OPTION = {
|
|
148
149
|
value: Symbol('PREV_PAGE'),
|
|
149
150
|
title: '⬆️ Previous page',
|
|
@@ -252,4 +253,3 @@ async function fetchEntireDatasetAsync({ paginatedGetterAsync, progressBarLabel,
|
|
|
252
253
|
}
|
|
253
254
|
return data;
|
|
254
255
|
}
|
|
255
|
-
exports.fetchEntireDatasetAsync = fetchEntireDatasetAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maybeWarnAboutEasOutagesAsync =
|
|
3
|
+
exports.maybeWarnAboutEasOutagesAsync = maybeWarnAboutEasOutagesAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const generated_1 = require("../graphql/generated");
|
|
@@ -12,7 +12,6 @@ async function maybeWarnAboutEasOutagesAsync(graphqlClient, serviceNames) {
|
|
|
12
12
|
warnAboutServiceOutage(service);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
exports.maybeWarnAboutEasOutagesAsync = maybeWarnAboutEasOutagesAsync;
|
|
16
15
|
const humanReadableServiceName = {
|
|
17
16
|
[generated_1.StatuspageServiceName.EasBuild]: 'EAS Build',
|
|
18
17
|
[generated_1.StatuspageServiceName.EasSubmit]: 'EAS Submit',
|
package/build/utils/timer.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.hasTimer = hasTimer;
|
|
4
|
+
exports.startTimer = startTimer;
|
|
5
|
+
exports.endTimer = endTimer;
|
|
6
|
+
exports.formatMilliseconds = formatMilliseconds;
|
|
4
7
|
const LABEL = 'DEFAULT';
|
|
5
8
|
const startTimes = {};
|
|
6
9
|
function hasTimer(label) {
|
|
7
10
|
return startTimes[label] ?? null;
|
|
8
11
|
}
|
|
9
|
-
exports.hasTimer = hasTimer;
|
|
10
12
|
function startTimer(label = LABEL) {
|
|
11
13
|
startTimes[label] = Date.now();
|
|
12
14
|
}
|
|
13
|
-
exports.startTimer = startTimer;
|
|
14
15
|
function endTimer(label = LABEL, clear = true) {
|
|
15
16
|
const endTime = Date.now();
|
|
16
17
|
const startTime = startTimes[label];
|
|
@@ -23,7 +24,6 @@ function endTimer(label = LABEL, clear = true) {
|
|
|
23
24
|
}
|
|
24
25
|
throw new Error(`Timer '${label}' has not be started yet`);
|
|
25
26
|
}
|
|
26
|
-
exports.endTimer = endTimer;
|
|
27
27
|
/**
|
|
28
28
|
* Optimally format milliseconds
|
|
29
29
|
*
|
|
@@ -52,4 +52,3 @@ function formatMilliseconds(duration) {
|
|
|
52
52
|
}
|
|
53
53
|
return portions.join(' ');
|
|
54
54
|
}
|
|
55
|
-
exports.formatMilliseconds = formatMilliseconds;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.maybeWarnAboutUsageOveragesAsync = maybeWarnAboutUsageOveragesAsync;
|
|
4
|
+
exports.calculatePercentUsed = calculatePercentUsed;
|
|
5
|
+
exports.createProgressBar = createProgressBar;
|
|
6
|
+
exports.displayOverageWarning = displayOverageWarning;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
9
|
const AccountUsageQuery_1 = require("../../graphql/queries/AccountUsageQuery");
|
|
@@ -25,14 +28,12 @@ async function maybeWarnAboutUsageOveragesAsync({ graphqlClient, accountId, }) {
|
|
|
25
28
|
log_1.default.debug(`Failed to fetch usage data: ${error}`);
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
|
-
exports.maybeWarnAboutUsageOveragesAsync = maybeWarnAboutUsageOveragesAsync;
|
|
29
31
|
function calculatePercentUsed(value, limit) {
|
|
30
32
|
if (limit === 0) {
|
|
31
33
|
return 0;
|
|
32
34
|
}
|
|
33
35
|
return Math.min(Math.floor((value / limit) * 100), 100);
|
|
34
36
|
}
|
|
35
|
-
exports.calculatePercentUsed = calculatePercentUsed;
|
|
36
37
|
function createProgressBar(percentUsed, width = 30) {
|
|
37
38
|
const filledWidth = Math.round((percentUsed / 100) * width);
|
|
38
39
|
const emptyWidth = width - filledWidth;
|
|
@@ -40,7 +41,6 @@ function createProgressBar(percentUsed, width = 30) {
|
|
|
40
41
|
const empty = '░'.repeat(emptyWidth);
|
|
41
42
|
return `${filled}${empty}`;
|
|
42
43
|
}
|
|
43
|
-
exports.createProgressBar = createProgressBar;
|
|
44
44
|
function displayOverageWarning({ percentUsed, hasFreePlan, name, }) {
|
|
45
45
|
log_1.default.warn(chalk_1.default.bold(`You've used ${percentUsed}% of your included build credits for this month. `) +
|
|
46
46
|
createProgressBar(percentUsed));
|
|
@@ -55,4 +55,3 @@ function displayOverageWarning({ percentUsed, hasFreePlan, name, }) {
|
|
|
55
55
|
});
|
|
56
56
|
log_1.default.warn(warning);
|
|
57
57
|
}
|
|
58
|
-
exports.displayOverageWarning = displayOverageWarning;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.formatVariableName = formatVariableName;
|
|
4
|
+
exports.formatVariableValue = formatVariableValue;
|
|
5
|
+
exports.performForEnvironmentsAsync = performForEnvironmentsAsync;
|
|
6
|
+
exports.formatVariable = formatVariable;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
|
|
6
9
|
const formatFields_1 = tslib_1.__importDefault(require("./formatFields"));
|
|
@@ -14,7 +17,6 @@ function formatVariableName(variable) {
|
|
|
14
17
|
const visibility = variable.visibility;
|
|
15
18
|
return `${name} | ${scope} | ${type} | ${visibility} | ${environments} | Updated at: ${updatedAt}`;
|
|
16
19
|
}
|
|
17
|
-
exports.formatVariableName = formatVariableName;
|
|
18
20
|
function formatVariableValue(variable) {
|
|
19
21
|
// TODO: Add Learn more link
|
|
20
22
|
if (variable.value) {
|
|
@@ -34,12 +36,10 @@ function formatVariableValue(variable) {
|
|
|
34
36
|
}
|
|
35
37
|
return '*****';
|
|
36
38
|
}
|
|
37
|
-
exports.formatVariableValue = formatVariableValue;
|
|
38
39
|
async function performForEnvironmentsAsync(environments, fun) {
|
|
39
40
|
const selectedEnvironments = environments ?? [undefined];
|
|
40
41
|
return await Promise.all(selectedEnvironments.map(env => fun(env)));
|
|
41
42
|
}
|
|
42
|
-
exports.performForEnvironmentsAsync = performForEnvironmentsAsync;
|
|
43
43
|
function formatVariable(variable) {
|
|
44
44
|
return (0, formatFields_1.default)([
|
|
45
45
|
{ label: 'ID', value: variable.id },
|
|
@@ -59,4 +59,3 @@ function formatVariable(variable) {
|
|
|
59
59
|
{ label: 'Updated at', value: (0, dateformat_1.default)(variable.updatedAt, 'mmm dd HH:MM:ss') },
|
|
60
60
|
]);
|
|
61
61
|
}
|
|
62
|
-
exports.formatVariable = formatVariable;
|
package/build/vcs/clients/git.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isGitCaseSensitiveAsync =
|
|
3
|
+
exports.isGitCaseSensitiveAsync = isGitCaseSensitiveAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const PackageManagerUtils = tslib_1.__importStar(require("@expo/package-manager"));
|
|
6
6
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
@@ -401,7 +401,6 @@ async function isGitCaseSensitiveAsync(cwd) {
|
|
|
401
401
|
return undefined;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
exports.isGitCaseSensitiveAsync = isGitCaseSensitiveAsync;
|
|
405
404
|
async function setGitCaseSensitivityAsync(enable, cwd) {
|
|
406
405
|
// we are assuming that if someone sets that on non-macos device then
|
|
407
406
|
// they know what they are doing
|
package/build/vcs/git.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isGitInstalledAsync = isGitInstalledAsync;
|
|
4
|
+
exports.doesGitRepoExistAsync = doesGitRepoExistAsync;
|
|
5
|
+
exports.gitStatusAsync = gitStatusAsync;
|
|
6
|
+
exports.getGitDiffOutputAsync = getGitDiffOutputAsync;
|
|
7
|
+
exports.gitDiffAsync = gitDiffAsync;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
10
|
async function isGitInstalledAsync() {
|
|
@@ -15,7 +19,6 @@ async function isGitInstalledAsync() {
|
|
|
15
19
|
}
|
|
16
20
|
return true;
|
|
17
21
|
}
|
|
18
|
-
exports.isGitInstalledAsync = isGitInstalledAsync;
|
|
19
22
|
async function doesGitRepoExistAsync(cwd) {
|
|
20
23
|
try {
|
|
21
24
|
await (0, spawn_async_1.default)('git', ['rev-parse', '--git-dir'], {
|
|
@@ -27,19 +30,16 @@ async function doesGitRepoExistAsync(cwd) {
|
|
|
27
30
|
return false;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
|
-
exports.doesGitRepoExistAsync = doesGitRepoExistAsync;
|
|
31
33
|
async function gitStatusAsync({ showUntracked, cwd }) {
|
|
32
34
|
return (await (0, spawn_async_1.default)('git', ['status', '-s', showUntracked ? '-uall' : '-uno'], {
|
|
33
35
|
cwd,
|
|
34
36
|
})).stdout;
|
|
35
37
|
}
|
|
36
|
-
exports.gitStatusAsync = gitStatusAsync;
|
|
37
38
|
async function getGitDiffOutputAsync(cwd) {
|
|
38
39
|
return (await (0, spawn_async_1.default)('git', ['--no-pager', 'diff'], {
|
|
39
40
|
cwd,
|
|
40
41
|
})).stdout;
|
|
41
42
|
}
|
|
42
|
-
exports.getGitDiffOutputAsync = getGitDiffOutputAsync;
|
|
43
43
|
async function gitDiffAsync({ withPager = false, cwd, }) {
|
|
44
44
|
const options = withPager ? [] : ['--no-pager'];
|
|
45
45
|
try {
|
|
@@ -57,4 +57,3 @@ async function gitDiffAsync({ withPager = false, cwd, }) {
|
|
|
57
57
|
throw error;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
exports.gitDiffAsync = gitDiffAsync;
|
package/build/vcs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveVcsClient =
|
|
3
|
+
exports.resolveVcsClient = resolveVcsClient;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const git_1 = tslib_1.__importDefault(require("./clients/git"));
|
|
@@ -23,4 +23,3 @@ function resolveVcsClient(requireCommit = false) {
|
|
|
23
23
|
}
|
|
24
24
|
return new git_1.default({ requireCommit });
|
|
25
25
|
}
|
|
26
|
-
exports.resolveVcsClient = resolveVcsClient;
|
package/build/vcs/local.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Ignore = exports.EASIGNORE_FILENAME = void 0;
|
|
4
|
+
exports.makeShallowCopyAsync = makeShallowCopyAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
|
|
6
7
|
const promises_1 = tslib_1.__importDefault(require("fs/promises"));
|
|
@@ -114,4 +115,3 @@ async function makeShallowCopyAsync(_src, dst) {
|
|
|
114
115
|
},
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
|
-
exports.makeShallowCopyAsync = makeShallowCopyAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatWebhook =
|
|
3
|
+
exports.formatWebhook = formatWebhook;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const formatFields_1 = tslib_1.__importDefault(require("../utils/formatFields"));
|
|
6
6
|
function formatWebhook(webhook) {
|
|
@@ -12,4 +12,3 @@ function formatWebhook(webhook) {
|
|
|
12
12
|
{ label: 'Updated at', value: new Date(webhook.updatedAt).toLocaleString() },
|
|
13
13
|
]);
|
|
14
14
|
}
|
|
15
|
-
exports.formatWebhook = formatWebhook;
|
package/build/webhooks/input.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.prepareInputParamsAsync = prepareInputParamsAsync;
|
|
4
|
+
exports.validateURL = validateURL;
|
|
5
|
+
exports.validateSecret = validateSecret;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
8
|
const url_1 = require("url");
|
|
@@ -66,7 +68,6 @@ async function prepareInputParamsAsync({ event: maybeEvent, url: maybeUrl, secre
|
|
|
66
68
|
secret: (0, nullthrows_1.default)(secret),
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
|
-
exports.prepareInputParamsAsync = prepareInputParamsAsync;
|
|
70
71
|
function validateURL(url) {
|
|
71
72
|
try {
|
|
72
73
|
// eslint-disable-next-line no-new
|
|
@@ -77,8 +78,6 @@ function validateURL(url) {
|
|
|
77
78
|
return false;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
exports.validateURL = validateURL;
|
|
81
81
|
function validateSecret(secret) {
|
|
82
82
|
return secret.length >= 16 && secret.length <= 1000;
|
|
83
83
|
}
|
|
84
|
-
exports.validateSecret = validateSecret;
|
package/build/worker/assets.d.ts
CHANGED
package/build/worker/assets.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.collectAssetsAsync = collectAssetsAsync;
|
|
4
|
+
exports.getRoutesConfigAsync = getRoutesConfigAsync;
|
|
5
|
+
exports.assetsToAssetsMap = assetsToAssetsMap;
|
|
6
|
+
exports.createManifestAsync = createManifestAsync;
|
|
7
|
+
exports.listWorkerFilesAsync = listWorkerFilesAsync;
|
|
8
|
+
exports.packFilesIterableAsync = packFilesIterableAsync;
|
|
4
9
|
const tslib_1 = require("tslib");
|
|
5
10
|
const env_1 = require("@expo/env");
|
|
6
11
|
const mime_1 = tslib_1.__importDefault(require("mime"));
|
|
@@ -106,7 +111,6 @@ async function collectAssetsAsync(assetPath, options) {
|
|
|
106
111
|
}
|
|
107
112
|
return assets;
|
|
108
113
|
}
|
|
109
|
-
exports.collectAssetsAsync = collectAssetsAsync;
|
|
110
114
|
async function getRoutesConfigAsync(assetPath) {
|
|
111
115
|
if (assetPath) {
|
|
112
116
|
for (const candidatePath of EXPO_ROUTES_PATHS) {
|
|
@@ -125,7 +129,6 @@ async function getRoutesConfigAsync(assetPath) {
|
|
|
125
129
|
}
|
|
126
130
|
return null;
|
|
127
131
|
}
|
|
128
|
-
exports.getRoutesConfigAsync = getRoutesConfigAsync;
|
|
129
132
|
/** Converts array of asset entries into AssetMap (as sent to deployment-api) */
|
|
130
133
|
function assetsToAssetsMap(assets) {
|
|
131
134
|
return assets.reduce((map, entry) => {
|
|
@@ -136,7 +139,6 @@ function assetsToAssetsMap(assets) {
|
|
|
136
139
|
return map;
|
|
137
140
|
}, Object.create(null));
|
|
138
141
|
}
|
|
139
|
-
exports.assetsToAssetsMap = assetsToAssetsMap;
|
|
140
142
|
/** Creates a manifest configuration sent up for deployment */
|
|
141
143
|
async function createManifestAsync(params, graphqlClient) {
|
|
142
144
|
// Resolve .env file variables
|
|
@@ -162,7 +164,6 @@ async function createManifestAsync(params, graphqlClient) {
|
|
|
162
164
|
const manifest = { env };
|
|
163
165
|
return { conflictingVariableNames, manifest };
|
|
164
166
|
}
|
|
165
|
-
exports.createManifestAsync = createManifestAsync;
|
|
166
167
|
/** Reads worker files while normalizing sourcemaps and providing normalized paths */
|
|
167
168
|
async function* listWorkerFilesAsync(workerPath) {
|
|
168
169
|
for await (const file of listFilesRecursively(workerPath)) {
|
|
@@ -173,7 +174,6 @@ async function* listWorkerFilesAsync(workerPath) {
|
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
|
-
exports.listWorkerFilesAsync = listWorkerFilesAsync;
|
|
177
177
|
/** Packs file entries into a tar.gz file (path to tgz returned) */
|
|
178
178
|
async function packFilesIterableAsync(iterable, options) {
|
|
179
179
|
const writePath = `${await createTempWritePathAsync()}.tar.gz`;
|
|
@@ -188,4 +188,3 @@ async function packFilesIterableAsync(iterable, options) {
|
|
|
188
188
|
await writeTask$;
|
|
189
189
|
return writePath;
|
|
190
190
|
}
|
|
191
|
-
exports.packFilesIterableAsync = packFilesIterableAsync;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getSignedDeploymentUrlAsync = getSignedDeploymentUrlAsync;
|
|
4
|
+
exports.assignDevDomainNameAsync = assignDevDomainNameAsync;
|
|
5
|
+
exports.assignWorkerDeploymentAliasAsync = assignWorkerDeploymentAliasAsync;
|
|
6
|
+
exports.assignWorkerDeploymentProductionAsync = assignWorkerDeploymentProductionAsync;
|
|
7
|
+
exports.selectWorkerDeploymentOnAppAsync = selectWorkerDeploymentOnAppAsync;
|
|
8
|
+
exports.deleteWorkerDeploymentAliasAsync = deleteWorkerDeploymentAliasAsync;
|
|
9
|
+
exports.selectWorkerDeploymentAliasOnAppAsync = selectWorkerDeploymentAliasOnAppAsync;
|
|
10
|
+
exports.deleteWorkerDeploymentAsync = deleteWorkerDeploymentAsync;
|
|
4
11
|
const tslib_1 = require("tslib");
|
|
5
12
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
13
|
const mutations_1 = require("./mutations");
|
|
@@ -35,7 +42,6 @@ async function getSignedDeploymentUrlAsync(graphqlClient, options) {
|
|
|
35
42
|
return await getSignedDeploymentUrlAsync(graphqlClient, options);
|
|
36
43
|
}
|
|
37
44
|
}
|
|
38
|
-
exports.getSignedDeploymentUrlAsync = getSignedDeploymentUrlAsync;
|
|
39
45
|
const DEV_DOMAIN_INVALID_START_END_CHARACTERS = /^[^a-z0-9]+|[^a-z0-9-]+$/;
|
|
40
46
|
const DEV_DOMAIN_INVALID_REPLACEMENT_HYPHEN = /[^a-z0-9-]+/;
|
|
41
47
|
const DEV_DOMAIN_INVALID_MULTIPLE_HYPHENS = /(-{2,})/;
|
|
@@ -128,7 +134,6 @@ async function assignDevDomainNameAsync({ graphqlClient, appId, nonInteractive,
|
|
|
128
134
|
return await assignDevDomainNameAsync({ graphqlClient, appId, nonInteractive });
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
|
-
exports.assignDevDomainNameAsync = assignDevDomainNameAsync;
|
|
132
137
|
async function assignWorkerDeploymentAliasAsync({ graphqlClient, appId, deploymentId, aliasName, }) {
|
|
133
138
|
return await mutations_1.DeploymentsMutation.assignAliasAsync(graphqlClient, {
|
|
134
139
|
appId,
|
|
@@ -136,7 +141,6 @@ async function assignWorkerDeploymentAliasAsync({ graphqlClient, appId, deployme
|
|
|
136
141
|
aliasName,
|
|
137
142
|
});
|
|
138
143
|
}
|
|
139
|
-
exports.assignWorkerDeploymentAliasAsync = assignWorkerDeploymentAliasAsync;
|
|
140
144
|
async function assignWorkerDeploymentProductionAsync({ graphqlClient, appId, deploymentId, }) {
|
|
141
145
|
return await mutations_1.DeploymentsMutation.assignAliasAsync(graphqlClient, {
|
|
142
146
|
appId,
|
|
@@ -144,7 +148,6 @@ async function assignWorkerDeploymentProductionAsync({ graphqlClient, appId, dep
|
|
|
144
148
|
aliasName: null, // this will assign the deployment as production
|
|
145
149
|
});
|
|
146
150
|
}
|
|
147
|
-
exports.assignWorkerDeploymentProductionAsync = assignWorkerDeploymentProductionAsync;
|
|
148
151
|
async function selectWorkerDeploymentOnAppAsync({ graphqlClient, appId, selectTitle, pageSize, }) {
|
|
149
152
|
return await (0, relay_1.selectPaginatedAsync)({
|
|
150
153
|
pageSize: pageSize ?? 25,
|
|
@@ -156,14 +159,12 @@ async function selectWorkerDeploymentOnAppAsync({ graphqlClient, appId, selectTi
|
|
|
156
159
|
getTitleAsync: async (deployment) => (0, chalk_1.default) `${deployment.deploymentIdentifier}{dim - created at: ${new Date(deployment.createdAt).toLocaleString()}}`,
|
|
157
160
|
});
|
|
158
161
|
}
|
|
159
|
-
exports.selectWorkerDeploymentOnAppAsync = selectWorkerDeploymentOnAppAsync;
|
|
160
162
|
async function deleteWorkerDeploymentAliasAsync({ graphqlClient, appId, aliasName, }) {
|
|
161
163
|
return await mutations_1.DeploymentsMutation.deleteAliasAsync(graphqlClient, {
|
|
162
164
|
appId,
|
|
163
165
|
aliasName,
|
|
164
166
|
});
|
|
165
167
|
}
|
|
166
|
-
exports.deleteWorkerDeploymentAliasAsync = deleteWorkerDeploymentAliasAsync;
|
|
167
168
|
async function selectWorkerDeploymentAliasOnAppAsync({ graphqlClient, appId, selectTitle, pageSize, }) {
|
|
168
169
|
return await (0, relay_1.selectPaginatedAsync)({
|
|
169
170
|
pageSize: pageSize ?? 25,
|
|
@@ -175,11 +176,9 @@ async function selectWorkerDeploymentAliasOnAppAsync({ graphqlClient, appId, sel
|
|
|
175
176
|
getTitleAsync: async (alias) => (0, chalk_1.default) `${alias.aliasName ?? 'production'}{dim - ${alias.url}}`,
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
|
-
exports.selectWorkerDeploymentAliasOnAppAsync = selectWorkerDeploymentAliasOnAppAsync;
|
|
179
179
|
async function deleteWorkerDeploymentAsync({ graphqlClient, appId, deploymentIdentifier, }) {
|
|
180
180
|
return await mutations_1.DeploymentsMutation.deleteWorkerDeploymentAsync(graphqlClient, {
|
|
181
181
|
appId,
|
|
182
182
|
deploymentIdentifier,
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
exports.deleteWorkerDeploymentAsync = deleteWorkerDeploymentAsync;
|
|
@@ -13,7 +13,7 @@ export declare const DeploymentsMutation: {
|
|
|
13
13
|
appId: string;
|
|
14
14
|
deploymentId: string;
|
|
15
15
|
aliasName: string | null;
|
|
16
|
-
}): Promise<AssignAliasMutation[
|
|
16
|
+
}): Promise<AssignAliasMutation["deployments"]["assignAlias"]>;
|
|
17
17
|
deleteAliasAsync(graphqlClient: ExpoGraphqlClient, deleteAliasVariables: {
|
|
18
18
|
appId: string;
|
|
19
19
|
aliasName: string;
|
|
@@ -6,9 +6,9 @@ export declare const DeploymentsQuery: {
|
|
|
6
6
|
getSuggestedDevDomainByAppIdAsync(graphqlClient: ExpoGraphqlClient, { appId }: SuggestedDevDomainNameQueryVariables): Promise<string>;
|
|
7
7
|
getAllAliasesPaginatedAsync(graphqlClient: ExpoGraphqlClient, { appId, first, after, last, before, }: {
|
|
8
8
|
appId: string;
|
|
9
|
-
first?: number
|
|
10
|
-
after?: string
|
|
11
|
-
last?: number
|
|
12
|
-
before?: string
|
|
9
|
+
first?: number;
|
|
10
|
+
after?: string;
|
|
11
|
+
last?: number;
|
|
12
|
+
before?: string;
|
|
13
13
|
}): Promise<Connection<WorkerDeploymentAliasFragment>>;
|
|
14
14
|
};
|