@forge/cli-shared 6.7.1-next.2-experimental-611b366 → 6.8.0-next.11
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 +63 -5
- package/out/apps/create-an-app.d.ts +6 -2
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +20 -3
- package/out/apps/register-app.d.ts +2 -1
- package/out/apps/register-app.d.ts.map +1 -1
- package/out/apps/register-app.js +9 -2
- package/out/graphql/graphql-types.d.ts +930 -21
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +102 -26
- package/out/shared/test.d.ts +2 -1
- package/out/shared/test.d.ts.map +1 -1
- package/out/shared/test.js +6 -1
- package/out/ui/command-line-ui.d.ts +5 -0
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +13 -0
- package/out/ui/text.d.ts +1 -52
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +32 -49
- package/out/ui/ui.d.ts +5 -0
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +3 -3
package/out/ui/text.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface ListScope {
|
|
|
5
5
|
name: string;
|
|
6
6
|
requiresInteractiveConsent?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export declare function itemList(items: string[], indent?: string): string;
|
|
8
9
|
export declare const capitalise: (word: string) => string;
|
|
9
10
|
export declare const Text: {
|
|
10
11
|
error: {
|
|
@@ -454,46 +455,7 @@ export declare const Text: {
|
|
|
454
455
|
};
|
|
455
456
|
};
|
|
456
457
|
writeToFile: (file: string) => string;
|
|
457
|
-
deploymentDate: (date: Date) => string;
|
|
458
|
-
scopes: (scopes: string[]) => string;
|
|
459
|
-
egress: (egresses: {
|
|
460
|
-
type: string;
|
|
461
|
-
addresses: string[];
|
|
462
|
-
}[]) => string;
|
|
463
|
-
securityPolicies: (policies: {
|
|
464
|
-
type: string;
|
|
465
|
-
policies: string[];
|
|
466
|
-
}[]) => string;
|
|
467
458
|
license: (requiresLicense: boolean) => string;
|
|
468
|
-
connectKeys: (keys: {
|
|
469
|
-
product: string;
|
|
470
|
-
key: string;
|
|
471
|
-
}[]) => string;
|
|
472
|
-
storage: (storages: {
|
|
473
|
-
type: string;
|
|
474
|
-
store: {
|
|
475
|
-
baseUrl: string;
|
|
476
|
-
locations: string[];
|
|
477
|
-
}[];
|
|
478
|
-
}[]) => string;
|
|
479
|
-
functions: (functions: {
|
|
480
|
-
key: string;
|
|
481
|
-
runtimeName: string;
|
|
482
|
-
regions: string[];
|
|
483
|
-
handler: string;
|
|
484
|
-
}[]) => string;
|
|
485
|
-
modules: (modules: {
|
|
486
|
-
type: string;
|
|
487
|
-
items: {
|
|
488
|
-
key: string;
|
|
489
|
-
properties: any;
|
|
490
|
-
}[];
|
|
491
|
-
}[]) => string;
|
|
492
|
-
remotes: (remotes: {
|
|
493
|
-
key: string;
|
|
494
|
-
baseUrl: string;
|
|
495
|
-
operations: string[];
|
|
496
|
-
}[]) => string;
|
|
497
459
|
};
|
|
498
460
|
};
|
|
499
461
|
list: {
|
|
@@ -507,19 +469,6 @@ export declare const Text: {
|
|
|
507
469
|
end: string;
|
|
508
470
|
details: {
|
|
509
471
|
banner: (envKey: string, envType: AppEnvironmentType, versions: number) => string;
|
|
510
|
-
deploymentDate: (date: Date) => string;
|
|
511
|
-
egresses: (egresses: {
|
|
512
|
-
type: string;
|
|
513
|
-
count: number;
|
|
514
|
-
}[]) => string;
|
|
515
|
-
policies: (policies: {
|
|
516
|
-
type: string;
|
|
517
|
-
count: number;
|
|
518
|
-
}[]) => string;
|
|
519
|
-
modules: (modules: {
|
|
520
|
-
type: string;
|
|
521
|
-
count: number;
|
|
522
|
-
}[]) => string;
|
|
523
472
|
};
|
|
524
473
|
};
|
|
525
474
|
};
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d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Aa,MAAM,KAAG,MAAM;6BAE5D,MAAM,eAAe,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;gCAevF,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;wBAe7E,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;;;yBAKlE,MAAM,WAAW,MAAM;;;;qCAMb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;6CAiBP,MAAM,mBAAmB,MAAM,EAAE;;;;CAUvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Text = exports.capitalise = void 0;
|
|
3
|
+
exports.Text = exports.capitalise = exports.itemList = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
-
const yaml_1 = tslib_1.__importDefault(require("yaml"));
|
|
7
6
|
const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
|
|
8
7
|
const case_1 = require("case");
|
|
9
8
|
const log_symbols_1 = tslib_1.__importDefault(require("./log-symbols"));
|
|
@@ -25,6 +24,7 @@ const autoSpaceSentences = (...sentences) => sentences
|
|
|
25
24
|
function itemList(items, indent) {
|
|
26
25
|
return items.map((item) => `${indent ?? ' '}- ${item}`).join(`\n${indent ?? ''}`);
|
|
27
26
|
}
|
|
27
|
+
exports.itemList = itemList;
|
|
28
28
|
const fatalError = (message) => chalk_1.default.bold(chalk_1.default.red(message));
|
|
29
29
|
const keytarAccessErrorBase = (message) => `Keytar error detected: ${message}`;
|
|
30
30
|
const capitalise = (word) => word.charAt(0).toUpperCase() + word.slice(1);
|
|
@@ -62,10 +62,10 @@ exports.Text = {
|
|
|
62
62
|
`\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)}.` +
|
|
63
63
|
`\n`,
|
|
64
64
|
outdatedNodeVersion: (compatibleNodeVersion, currentNodeVersion) => fatalError(`Unsupported Node.js version. The CLI requires Node.js ${compatibleNodeVersion}, but you're using Node.js ${currentNodeVersion}.`),
|
|
65
|
-
missingProductNameValue: '
|
|
65
|
+
missingProductNameValue: 'Parameter requires a context name. Rerun the command with a valid context name.',
|
|
66
66
|
invalidContext: (validContexts) => `Invalid context. Rerun ${chalk_1.default.bold('forge install')} with ${validContexts.length > 0
|
|
67
|
-
? `one of the following valid contexts: ${validContexts.join(', ')}
|
|
68
|
-
: 'a valid context
|
|
67
|
+
? `one of the following valid contexts: ${validContexts.join(', ')}`
|
|
68
|
+
: 'a valid context'}.`,
|
|
69
69
|
missingSiteUrlValue: 'Site parameter requires a site URL. Rerun the command with a valid site URL.',
|
|
70
70
|
invalidSite: 'The site you entered is not an Atlassian site. Rerun the command with the URL to an Atlassian site to install the app.',
|
|
71
71
|
invalidWorkspace: 'The workspace you entered is not a valid workspace. Rerun the command with the URL to a valid workspace to install the app.',
|
|
@@ -115,9 +115,9 @@ exports.Text = {
|
|
|
115
115
|
},
|
|
116
116
|
maxSizeOfUsersWithAccess: 10,
|
|
117
117
|
installationContext: {
|
|
118
|
-
overviewProduct: 'Select the
|
|
119
|
-
promptProduct: 'Select a
|
|
120
|
-
promptOptionalProducts: 'Select optional
|
|
118
|
+
overviewProduct: 'Select the context your app uses.\n',
|
|
119
|
+
promptProduct: 'Select a context:',
|
|
120
|
+
promptOptionalProducts: 'Select optional contexts:',
|
|
121
121
|
overviewSite: '\nEnter your site. For example, your-domain.atlassian.net\n',
|
|
122
122
|
overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
|
|
123
123
|
promptSite: 'Enter the site URL:',
|
|
@@ -128,7 +128,7 @@ exports.Text = {
|
|
|
128
128
|
promptInstallation: 'Select the site or workspace to upgrade:'
|
|
129
129
|
},
|
|
130
130
|
optionSite: 'site URL (example.atlassian.net)',
|
|
131
|
-
optionProduct: (supportedProducts) => `
|
|
131
|
+
optionProduct: (supportedProducts) => `context (${supportedProducts.join(', ')})`,
|
|
132
132
|
optionVerbose: 'enable verbose mode',
|
|
133
133
|
optionJson: 'output results in JSON format',
|
|
134
134
|
invalidCmd: (command) => `’${command}’ is not a Forge command.`,
|
|
@@ -251,7 +251,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
251
251
|
promptName: 'Enter a name for your app:',
|
|
252
252
|
promptCategory: 'Select a category:',
|
|
253
253
|
promptTemplate: 'Select a template:',
|
|
254
|
-
promptProduct: 'Select a
|
|
254
|
+
promptProduct: 'Select a context:',
|
|
255
255
|
taskTemplate: {
|
|
256
256
|
title: 'Downloading template',
|
|
257
257
|
downloading: (template) => `Downloading ${template} template project...`,
|
|
@@ -511,7 +511,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
511
511
|
start: 'Comparing app versions...',
|
|
512
512
|
end: 'Comparing app versions...',
|
|
513
513
|
details: {
|
|
514
|
-
banner: (envKey, envType, version1, version2) =>
|
|
514
|
+
banner: (envKey, envType, version1, version2) => {
|
|
515
|
+
const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
|
|
516
|
+
return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(version1)} and ${chalk_1.default.bold(version2)}] in [${envDisplay}] is shown below:`;
|
|
517
|
+
}
|
|
515
518
|
}
|
|
516
519
|
},
|
|
517
520
|
check: {
|
|
@@ -522,7 +525,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
522
525
|
outFile: 'specify a file to output the results'
|
|
523
526
|
},
|
|
524
527
|
error: {
|
|
525
|
-
invalidMajorVersion: (property) =>
|
|
528
|
+
invalidMajorVersion: (property) => {
|
|
529
|
+
const version = property ? ` for ${property}` : '';
|
|
530
|
+
return `Invalid major version number${version}`;
|
|
531
|
+
}
|
|
526
532
|
},
|
|
527
533
|
desc: `returns the details of a specific version of the app. Details include:\n${itemList([
|
|
528
534
|
'egress',
|
|
@@ -537,7 +543,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
537
543
|
start: 'Getting app version details...',
|
|
538
544
|
end: 'Getting app version details...',
|
|
539
545
|
details: {
|
|
540
|
-
banner: (envKey, envType, version) =>
|
|
546
|
+
banner: (envKey, envType, version) => {
|
|
547
|
+
const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
|
|
548
|
+
return `${log_symbols_1.default.info} App [${version}] in [${envDisplay}] includes the following:`;
|
|
549
|
+
},
|
|
541
550
|
prompt: {
|
|
542
551
|
options: {
|
|
543
552
|
banner: 'Select option:',
|
|
@@ -551,7 +560,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
551
560
|
info: 'Note: Changes to the properties below may trigger major version updates in Atlassian systems.\n',
|
|
552
561
|
headers: ['Property', 'Description'],
|
|
553
562
|
descriptions: {
|
|
554
|
-
scopes: '
|
|
563
|
+
scopes: 'Context scopes that the app has access to',
|
|
555
564
|
egress: 'Network permissions',
|
|
556
565
|
policies: 'Content security policies (Custom UI)',
|
|
557
566
|
functions: 'Function modules used by the app',
|
|
@@ -563,26 +572,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
563
572
|
}
|
|
564
573
|
},
|
|
565
574
|
writeToFile: (file) => `Writing to file: ${file}`,
|
|
566
|
-
|
|
567
|
-
scopes: (scopes) => `${itemList(scopes, '')}`,
|
|
568
|
-
egress: (egresses) => `${itemList(egresses.map((egress) => `[${chalk_1.default.cyan(egress.type)}]: \n ${itemList(egress.addresses, ' ')}`), '')}`,
|
|
569
|
-
securityPolicies: (policies) => `${itemList(policies.map((policy) => `[${chalk_1.default.cyan(policy.type)}]: ${policy.policies.join(', ')}`))}`,
|
|
570
|
-
license: (requiresLicense) => `${requiresLicense ? 'Yes' : 'No'}`,
|
|
571
|
-
connectKeys: (keys) => `${itemList(keys.map((key) => `[${chalk_1.default.cyan(key.product)}]: ${key.key}`), '')}`,
|
|
572
|
-
storage: (storages) => `${itemList(storages.map((storage) => `[${chalk_1.default.cyan(storage.type)}]: ${storage.store.map((store) => `${store.baseUrl} (${store.locations.join(', ')})`).join(', ')}`))}`,
|
|
573
|
-
functions: (functions) => `${itemList(functions.map((func) => `[${chalk_1.default.cyan(func.key)}]: is configured with the following properties: \n ${yaml_1.default.stringify({
|
|
574
|
-
runtime: `${func.runtimeName}`,
|
|
575
|
-
handler: `${func.handler}`
|
|
576
|
-
}, undefined, ' ').replaceAll('\n', '\n ')}`), '')}`,
|
|
577
|
-
modules: (modules) => {
|
|
578
|
-
return `${modules
|
|
579
|
-
.map((mod) => `${chalk_1.default.bold(mod.type)}\n${itemList(mod.items.map((item) => `[${chalk_1.default.cyan(item.key)}]: is configured with the following properties:\n ${yaml_1.default.stringify(item.properties, undefined, ' ').replaceAll('\n', '\n ')}`), '')}`)
|
|
580
|
-
.join('\n')}`;
|
|
581
|
-
},
|
|
582
|
-
remotes: (remotes) => `${itemList(remotes.map((remote) => `[${chalk_1.default.cyan(remote.key)}]: is configured with the following properties: \n ${yaml_1.default.stringify({
|
|
583
|
-
baseUrl: remote.baseUrl,
|
|
584
|
-
operations: remote.operations
|
|
585
|
-
}, undefined, ' ').replaceAll('\n', '\n ')}`), '')}`
|
|
575
|
+
license: (requiresLicense) => `${requiresLicense ? 'Yes' : 'No'}`
|
|
586
576
|
}
|
|
587
577
|
},
|
|
588
578
|
list: {
|
|
@@ -606,16 +596,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
606
596
|
start: 'Getting app version list...',
|
|
607
597
|
end: 'Getting app version list...',
|
|
608
598
|
details: {
|
|
609
|
-
banner: (envKey, envType, versions) =>
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
return egresses.map((egress) => `${egress.type}: ${egress.count}`).join('\n');
|
|
613
|
-
},
|
|
614
|
-
policies: (policies) => {
|
|
615
|
-
return policies.map((policy) => `${policy.type}: ${policy.count}`).join('\n');
|
|
616
|
-
},
|
|
617
|
-
modules: (modules) => {
|
|
618
|
-
return modules.map((module) => `${module.type}: ${module.count}`).join('\n');
|
|
599
|
+
banner: (envKey, envType, versions) => {
|
|
600
|
+
const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
|
|
601
|
+
return `${log_symbols_1.default.info} Details of a total of [${versions} major versions] in [${envDisplay}] can be seen below:`;
|
|
619
602
|
}
|
|
620
603
|
}
|
|
621
604
|
}
|
|
@@ -708,9 +691,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
708
691
|
end: (displayTick, product) => `${displayTick ? greenTick + ' ' : ''}Install in ${product} complete!`
|
|
709
692
|
},
|
|
710
693
|
booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
|
|
711
|
-
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required
|
|
712
|
-
installingToRequiredProduct: (product) => `\nYour app will be installed into your required
|
|
713
|
-
installingToOptionalProduct: (product) => `\nThis app will be installed as an optional
|
|
694
|
+
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required context, ${chalk_1.default.bold(product)}.`,
|
|
695
|
+
installingToRequiredProduct: (product) => `\nYour app will be installed into your required context, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any optional contexts.\n`,
|
|
696
|
+
installingToOptionalProduct: (product) => `\nThis app will be installed as an optional context on ${product}.\n`,
|
|
714
697
|
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
715
698
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
716
699
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
@@ -724,7 +707,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
724
707
|
.join('\n')}\n`,
|
|
725
708
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
726
709
|
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`,
|
|
727
|
-
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple
|
|
710
|
+
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple contexts.\nRun ${forge('install')} for each of the following:\n${itemList([
|
|
728
711
|
...productsToUpgrade.map((product) => forge('install', '--upgrade', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment))),
|
|
729
712
|
...productsToInstall.map((product) => forge('install', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment)))
|
|
730
713
|
])}`,
|
|
@@ -752,7 +735,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
752
735
|
'in the developer console and share it with the site admin: ' +
|
|
753
736
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
754
737
|
},
|
|
755
|
-
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any
|
|
738
|
+
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any contexts on ${chalk_1.default.bold(site)}.`,
|
|
756
739
|
security: {
|
|
757
740
|
banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
|
|
758
741
|
Forge apps installed on ${site} must comply with our corporate security guidelines.
|
package/out/ui/ui.d.ts
CHANGED
|
@@ -29,5 +29,10 @@ export interface UI extends Logger, Prompt {
|
|
|
29
29
|
displayTemporaryMessage<Result>(progress: () => Promise<Result>, waitText: string): Promise<Result>;
|
|
30
30
|
clearSpinner(): void;
|
|
31
31
|
table<Key extends string>(head: [Key, string][], data: Record<Key, TableCell>[] | undefined | null, options?: TableOptions<Key>): void;
|
|
32
|
+
formatKeyValueList(items: {
|
|
33
|
+
key: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[], indent?: string, addNewLine?: boolean): string;
|
|
36
|
+
formatYamlProperties(properties: any, key: string): string;
|
|
32
37
|
}
|
|
33
38
|
//# sourceMappingURL=ui.d.ts.map
|
package/out/ui/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/ui/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,MAAM;IACrB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvE,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAClD,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,EAAE,EACZ,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAA;KAAE,GAC1C,OAAO,CAAC,CAAC,CAAC,CAAC;IACd,cAAc,CACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EAAE,EACjB,YAAY,CAAC,EAAE,OAAO,GACrB,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACrB,0BAA0B,CACxB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,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AAM,CAAC;IAC3G,oBAAoB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0-next.11",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "8.9.0-next.
|
|
15
|
+
"@forge/manifest": "8.9.0-next.6",
|
|
16
16
|
"@forge/util": "1.4.8",
|
|
17
|
-
"@forge/i18n": "0.0.
|
|
17
|
+
"@forge/i18n": "0.0.5-next.0",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
20
20
|
"array.prototype.flatmap": "^1.3.2",
|