@forge/cli-shared 8.5.1 → 8.6.0-experimental-d499831
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/CHANGELOG.md +46 -0
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +20 -2
- package/out/graphql/graphql-types.d.ts +18167 -381
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +407 -62
- package/out/service/statsig-service.d.ts +1 -0
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +26 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +24 -24
- package/package.json +2 -2
|
@@ -34,6 +34,7 @@ export declare class StatsigService extends StatsigReader {
|
|
|
34
34
|
private fetchDynamicConfigs;
|
|
35
35
|
private gatesClient;
|
|
36
36
|
private dynamicConfigClient;
|
|
37
|
+
private TYPESCRIPT_EAP_APPID_HASHES;
|
|
37
38
|
checkGate<F extends FeatureGate>(gate: F, customAttributes?: Record<string, string>): Promise<boolean | null>;
|
|
38
39
|
getDynamicConfig<F extends DynamicConfigKey>(dynamicConfig: F, metadata?: Record<string, string>): Promise<DynamicConfig[F] | null>;
|
|
39
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statsig-service.d.ts","sourceRoot":"","sources":["../../src/service/statsig-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"statsig-service.d.ts","sourceRoot":"","sources":["../../src/service/statsig-service.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAEpB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,oBAAY,WAAW,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,iCAAiC,GACjC,wCAAwC,GACxC,iDAAiD,GACjD,mCAAmC,GACnC,uCAAuC,GACvC,qCAAqC,CAAC;AAE1C,oBAAY,aAAa,GAAG;IAC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Aa,cAAe,SAAQ,aAAa;IAE7C,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAJhB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,SAAS,EACnD,eAAe,EAAE,gBAAgB,EACjC,eAAe,EAAE,mBAAmB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,EACpD,gBAAgB,GAAE,OAAO,oBAA2C;IAKvF,OAAO,CAAC,KAAK,CAOV;IAEH,OAAO,CAAC,OAAO,CAkBb;IAEF,OAAO,CAAC,UAAU,CAgChB;IAEF,OAAO,CAAC,mBAAmB,CAgCzB;IAEF,OAAO,CAAC,WAAW,CAGhB;IAEH,OAAO,CAAC,mBAAmB,CAGxB;IAEH,OAAO,CAAC,2BAA2B,CAiBjC;IAEI,SAAS,CAAC,CAAC,SAAS,WAAW,EACnC,IAAI,EAAE,CAAC,EACP,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC5C,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IA6BpB,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,EAC/C,aAAa,EAAE,CAAC,EAChB,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACpC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAapC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StatsigService = exports.cacheStatsigResult = exports.StatsigReader = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
4
5
|
const index_1 = require("../index");
|
|
5
6
|
class StatsigReader {
|
|
6
7
|
async testForgeCliTestGate() {
|
|
@@ -181,8 +182,33 @@ class StatsigService extends StatsigReader {
|
|
|
181
182
|
const dynamicConfigs = await this.fetchDynamicConfigs(metadata);
|
|
182
183
|
return { dynamicConfigs };
|
|
183
184
|
});
|
|
185
|
+
TYPESCRIPT_EAP_APPID_HASHES = `
|
|
186
|
+
ff4a32aa0e8662a7c8d368325d7135a099251b1f701f258b83c7b535fc92b2e3
|
|
187
|
+
a7c10b070c597c36981d7d4f98d5d04b1e51ad1507bbf64ed66d243517606311
|
|
188
|
+
65f53d6b2490b8ee2b184320d719d91195fd6a786d0d2449d7aa6a1d195beaf3
|
|
189
|
+
2f14792db19eafb1bf2606aa84ba8474c7b687c8bcf13f7ec0e1a2accf86e449
|
|
190
|
+
467fdc3f15d777cd09d96dca0ac253b1bdc9314ce666639956eb15f444edd09b
|
|
191
|
+
556c88b0988edce75f95c31ec226d5d13ea72437756c4442644dd8ae7e3bbfd9
|
|
192
|
+
a738dfee97e4982ae90480cd3c3446862587c40b23653ea771b33a432af51120
|
|
193
|
+
ea20e4a191fd99e60ef589605db72955fcdb7ad57c0133a31e2cab28a414a975
|
|
194
|
+
f97f50d79ea7da2e4f339bbe84cda164d5285f3c2b5238db357460ba7d6bd168
|
|
195
|
+
719115f3751661bb4204f79f40d23884545a9d17dbd64dd610c8b3bd0b516c69
|
|
196
|
+
66ee7721b3e688963108df70c684c13ae2fd183aea0862fe9bfcc9d309fd3818
|
|
197
|
+
2c7e6201052ea54bb486878d998e082dfe332b59c039e087b2b48351184e1424
|
|
198
|
+
7659f06e45a298107e553a1489046caf7272372b1c89e5f89b5828adb8350913
|
|
199
|
+
2e82bf453da1da1c46789b547cd75b056f976f9120baf084e627ee015efb8801
|
|
200
|
+
2dea1e7c9dab8fbf4deb7ec2ab017bafe08c7d60817b8fcff342cc53d3a2551e
|
|
201
|
+
43814e9186df9bbce3ce3d2f1811f7b63d26d4c187eb47682c9ba8cbc1a11392
|
|
202
|
+
`;
|
|
184
203
|
async checkGate(gate, customAttributes = {}) {
|
|
185
204
|
if ((0, index_1.isFedrampEnv)()) {
|
|
205
|
+
if (gate === 'forge-cli-enable-typescript-bundler') {
|
|
206
|
+
const appIdHash = (0, crypto_1.createHash)('sha256')
|
|
207
|
+
.update(`${(await this.context()).appId ?? ''}\n`)
|
|
208
|
+
.digest('hex');
|
|
209
|
+
const result = this.TYPESCRIPT_EAP_APPID_HASHES.split('\n').includes(appIdHash);
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
186
212
|
this.logger.debug(`Feature gates ${gate} is not available in FedRAMP environments.`);
|
|
187
213
|
return false;
|
|
188
214
|
}
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAKD,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAAsD,CAAC;AAoDjG,eAAO,MAAM,IAAI;8BA3EgB,MAAM;eAGrB,MAAM;;;;;6BAuFD,MAAM;2BACR,MAAM;6BAGJ,MAAM;+BAEJ,MAAM;;wCAIK,MAAM,UAAU,MAAM;qDAOT,MAAM,sBAAsB,MAAM;;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"A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AGN,MAAM;;;;;;;;;;;;;;;;;;;;;;qCAsBX,MAAM;;;;;;;;;;0CAUC,MAAM;;;;;;;;;;;;qCAYX,MAAM;;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;0CAsBI,MAAM,eAAe,MAAM;uCAE9B,MAAM;2CAEF,MAAM;;;;;;;;;;;;6CAYJ,MAAM;gDACH,MAAM,eAAe,MAAM;kDAEzB,MAAM,aAAa,MAAM,eAAe,MAAM;mDAE7C,MAAM,eAAe,MAAM;8CAEhC,MAAM;yDACK,MAAM,WAAW,MAAM,eAAe,MAAM;;;;yBAM1E,MAAM,WAAW,MAAM;;;;qCAMb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;iCAuBjB,MAAM;;;;;;;;6CAUI,MAAM,mBAAmB,MAAM,EAAE;;;;CAUvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -65,14 +65,14 @@ exports.Text = {
|
|
|
65
65
|
`\nRun ${command('npm', 'install', '-g', `${cli_details_1.FORGE_CLI_PACKAGE}@latest`)} to update from version ${chalk_1.default.bold(installed)} to ${chalk_1.default.bold(latest)}.` +
|
|
66
66
|
`\n`,
|
|
67
67
|
outdatedNodeVersion: (compatibleNodeVersion, currentNodeVersion) => fatalError(`Unsupported Node.js version. The CLI requires Node.js ${compatibleNodeVersion}, but you're using Node.js ${currentNodeVersion}.`),
|
|
68
|
-
missingProductNameValue: 'Parameter requires
|
|
69
|
-
invalidContext: (validContexts) => `Invalid
|
|
70
|
-
? `one of the following valid
|
|
71
|
-
: 'a valid
|
|
68
|
+
missingProductNameValue: 'Parameter requires an Atlassian app name. Rerun the command with a valid Atlassian app name.',
|
|
69
|
+
invalidContext: (validContexts) => `Invalid Atlassian app. Rerun ${chalk_1.default.bold('forge install')} with ${validContexts.length > 0
|
|
70
|
+
? `one of the following valid Atlassian apps: ${validContexts.join(', ')}`
|
|
71
|
+
: 'a valid Atlassian app'}.`,
|
|
72
72
|
missingSiteUrlValue: 'Site parameter requires a site URL. Rerun the command with a valid site URL.',
|
|
73
73
|
invalidSite: 'The site you entered is not an Atlassian site. Rerun the command with the URL to an Atlassian site to install the app.',
|
|
74
74
|
invalidWorkspace: 'The workspace you entered is not a valid workspace. Rerun the command with the URL to a valid workspace to install the app.',
|
|
75
|
-
invalidInstallationContext: 'Could not find an installation for the provided
|
|
75
|
+
invalidInstallationContext: 'Could not find an installation for the provided Atlassian app',
|
|
76
76
|
invalidTokenInKeytar: `Your API token is no longer valid. Run ${forge('login')} to reset your login credentials.`,
|
|
77
77
|
invalidTokenInEnv: (instructionsUrl, emailVar, tokenVar) => `The API token on your machine is no longer valid.` +
|
|
78
78
|
`\n 1) Get a new API token: ${instructionsUrl}` +
|
|
@@ -99,8 +99,8 @@ exports.Text = {
|
|
|
99
99
|
empty: '--users-with-access option list is empty. Provide a space-separated list of Atlassian Account IDs(aaid). \nFor example: install --license-modes user-access --users-with-access aaid1 aaid2',
|
|
100
100
|
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`
|
|
101
101
|
},
|
|
102
|
-
multipleMatchingInstallations: 'Multiple matching installations found for the provided
|
|
103
|
-
partialInstallation: (failedProductInstallations) => `Failed to install into the following
|
|
102
|
+
multipleMatchingInstallations: 'Multiple matching installations found for the provided Atlassian app when only one was expected',
|
|
103
|
+
partialInstallation: (failedProductInstallations) => `Failed to install into the following Atlassian apps: ${failedProductInstallations.join(', ')}. Run ${chalk_1.default.bold('forge install')} again to reattempt this installation.`
|
|
104
104
|
},
|
|
105
105
|
warning: {
|
|
106
106
|
plaintextCredentialsFound: (url) => `Your credentials were stored in plaintext by a previous version of the Forge CLI. For additional security, revoke your existing API token by visting this URL ${buildTerminalLink(url)}.`,
|
|
@@ -116,9 +116,9 @@ exports.Text = {
|
|
|
116
116
|
},
|
|
117
117
|
maxSizeOfUsersWithAccess: 10,
|
|
118
118
|
installationContext: {
|
|
119
|
-
overviewProduct: 'Select
|
|
120
|
-
promptProduct: 'Select
|
|
121
|
-
promptOptionalProducts: 'Select
|
|
119
|
+
overviewProduct: 'Select an Atlassian app or platform tool.\n',
|
|
120
|
+
promptProduct: 'Select an Atlassian app or platform tool:',
|
|
121
|
+
promptOptionalProducts: 'Select other Atlassian apps:',
|
|
122
122
|
overviewSite: '\nEnter your site. For example, your-domain.atlassian.net\n',
|
|
123
123
|
overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
|
|
124
124
|
promptSite: 'Enter the site URL:',
|
|
@@ -129,7 +129,7 @@ exports.Text = {
|
|
|
129
129
|
promptInstallation: 'Select the site or workspace to upgrade:'
|
|
130
130
|
},
|
|
131
131
|
optionSite: 'site URL (example.atlassian.net)',
|
|
132
|
-
optionProduct: (supportedProducts) => `
|
|
132
|
+
optionProduct: (supportedProducts) => `Atlassian app (${supportedProducts.join(', ')})`,
|
|
133
133
|
optionVerbose: 'enable verbose mode',
|
|
134
134
|
optionJson: 'output results in JSON format',
|
|
135
135
|
invalidCmd: (command) => `’${command}’ is not a Forge command.`,
|
|
@@ -252,7 +252,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
252
252
|
promptName: 'Enter a name for your app:',
|
|
253
253
|
promptCategory: 'Select a category:',
|
|
254
254
|
promptTemplate: 'Select a template:',
|
|
255
|
-
promptProduct: 'Select
|
|
255
|
+
promptProduct: 'Select an Atlassian app or platform tool:',
|
|
256
256
|
taskTemplate: {
|
|
257
257
|
title: 'Downloading template',
|
|
258
258
|
downloading: (template) => `Downloading ${template} template project...`,
|
|
@@ -609,7 +609,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
609
609
|
info: 'Note: Changes to the properties below may trigger major version updates in Atlassian systems.\n',
|
|
610
610
|
headers: ['Property', 'Description'],
|
|
611
611
|
descriptions: {
|
|
612
|
-
scopes: '
|
|
612
|
+
scopes: 'Scopes that the app has access to',
|
|
613
613
|
egress: 'Network permissions',
|
|
614
614
|
analytics: 'Analytics',
|
|
615
615
|
policies: 'Content security policies (Custom UI)',
|
|
@@ -867,8 +867,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
867
867
|
}
|
|
868
868
|
},
|
|
869
869
|
crossContext: {
|
|
870
|
-
enableError: `Unable to deploy
|
|
871
|
-
modifyError: `Unable to modify the required
|
|
870
|
+
enableError: `Unable to deploy an app to an environment with an existing installation in an Atlassian app that is not the required Atlassian app.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from any non-required Atlassian apps in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`,
|
|
871
|
+
modifyError: `Unable to modify the required Atlassian app for an environment with existing installations.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from all Atlassian apps in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`
|
|
872
872
|
}
|
|
873
873
|
},
|
|
874
874
|
install: {
|
|
@@ -881,9 +881,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
881
881
|
end: (displayTick, product) => `${displayTick ? greenTick + ' ' : ''}Install in ${product} complete!`
|
|
882
882
|
},
|
|
883
883
|
booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
|
|
884
|
-
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into
|
|
885
|
-
installingToRequiredProduct: (product) => `\nYour app will be installed into
|
|
886
|
-
installingToOptionalProduct: (product) => `\nThis app will be installed
|
|
884
|
+
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into ${chalk_1.default.bold(product)}.`,
|
|
885
|
+
installingToRequiredProduct: (product) => `\nYour app will be installed into ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any other Atlassian apps.\n`,
|
|
886
|
+
installingToOptionalProduct: (product) => `\nThis app will be installed into ${chalk_1.default.bold(product)}.\n`,
|
|
887
887
|
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
888
888
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
889
889
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
@@ -901,7 +901,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
901
901
|
.join('\n')}\n`,
|
|
902
902
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
903
903
|
permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${(0, environment_1.environmentToOption)(environment)}. Try running ${forge('deploy', '-e', (0, environment_1.environmentToOption)(environment))} before installing.\n`,
|
|
904
|
-
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple
|
|
904
|
+
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple Atlassian apps.\nRun ${forge('install')} for each of the following:\n${itemList([
|
|
905
905
|
...productsToUpgrade.map((product) => forge('install', '--upgrade', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment))),
|
|
906
906
|
...productsToInstall.map((product) => forge('install', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment)))
|
|
907
907
|
])}`,
|
|
@@ -909,10 +909,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
909
909
|
? 'Are you sure you want to continue installing the app?'
|
|
910
910
|
: 'Do you want to continue?',
|
|
911
911
|
success: {
|
|
912
|
-
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}
|
|
912
|
+
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}. You can install the app into other Atlassian apps by running the ${chalk_1.default.bold('forge install')} command again.`
|
|
913
913
|
},
|
|
914
914
|
error: {
|
|
915
|
-
activationIdMissing: (url, context) => `
|
|
915
|
+
activationIdMissing: (url, context) => `Atlassian app is not activated on ${url}. Enable ${context} in your suite or contact your administrator for assistance.`,
|
|
916
916
|
invalidAtlassianSite: (url) => `The URL you entered doesn't belong to an Atlassian site: ` +
|
|
917
917
|
`\n${url.toString()} ` +
|
|
918
918
|
`\n\nRun the command using a different URL.`,
|
|
@@ -933,7 +933,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
933
933
|
majorVersionNotFound: 'The major version you specified does not exist. Check the version number and try again.',
|
|
934
934
|
majorVersionAndUpgrade: 'Cannot use the major version flag with the upgrade flag'
|
|
935
935
|
},
|
|
936
|
-
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed
|
|
936
|
+
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed on any Atlassian apps on ${chalk_1.default.bold(site)}.`,
|
|
937
937
|
security: {
|
|
938
938
|
banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
|
|
939
939
|
Forge apps installed on ${site} must comply with our corporate security guidelines.
|
|
@@ -1085,9 +1085,9 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1085
1085
|
desc: 'Select where to uninstall the app:',
|
|
1086
1086
|
progressInfo: `To uninstall your app from a site or workspace, select it from the list.\nPress Ctrl+C to cancel.`,
|
|
1087
1087
|
done: `\n${log_symbols_1.default.success} Apps uninstalled`,
|
|
1088
|
-
confirmOptionalContexts: 'This will uninstall the app from
|
|
1088
|
+
confirmOptionalContexts: 'This will uninstall the app from all Atlasian apps and platform tools in this site. Are you sure you want to continue?'
|
|
1089
1089
|
},
|
|
1090
|
-
info: 'Uninstalling
|
|
1090
|
+
info: 'Uninstalling...',
|
|
1091
1091
|
done: (product, domain, environment, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
|
|
1092
1092
|
failed: (product, domain, environment) => `Failed to uninstall the app from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
|
|
1093
1093
|
missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0-experimental-d499831",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "10.
|
|
15
|
+
"@forge/manifest": "10.5.0",
|
|
16
16
|
"@forge/util": "2.0.0",
|
|
17
17
|
"@forge/i18n": "0.0.7",
|
|
18
18
|
"@sentry/node": "7.106.0",
|