@forge/cli 11.3.0-next.4-experimental-e92a337 → 11.3.0-next.5
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
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
-
## 11.3.0-next.
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- e92a337: Switch the `forge create` flow to select product context first
|
|
3
|
+
## 11.3.0-next.5
|
|
8
4
|
|
|
9
5
|
### Patch Changes
|
|
10
6
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- Updated dependencies [e92a337]
|
|
18
|
-
- Updated dependencies [e92a337]
|
|
19
|
-
- Updated dependencies [e92a337]
|
|
20
|
-
- @forge/cli-shared@6.8.0-next.4-experimental-e92a337
|
|
21
|
-
- @forge/manifest@8.9.0-next.1-experimental-e92a337
|
|
22
|
-
- @forge/bundler@4.21.1-next.4-experimental-e92a337
|
|
23
|
-
- @forge/lint@5.7.3-next.4-experimental-e92a337
|
|
24
|
-
- @forge/tunnel@5.10.1-next.4-experimental-e92a337
|
|
7
|
+
- 210360b: Refactor text functions for easier read and maintenance
|
|
8
|
+
- Updated dependencies [210360b]
|
|
9
|
+
- @forge/cli-shared@6.8.0-next.5
|
|
10
|
+
- @forge/bundler@4.21.1-next.5
|
|
11
|
+
- @forge/lint@5.7.3-next.5
|
|
12
|
+
- @forge/tunnel@5.10.1-next.5
|
|
25
13
|
|
|
26
14
|
## 11.3.0-next.4
|
|
27
15
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "11.3.0-next.
|
|
3
|
+
"version": "11.3.0-next.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "11.3.0-next.
|
|
9
|
+
"version": "11.3.0-next.5",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "4.21.1-next.
|
|
14
|
-
"@forge/cli-shared": "6.8.0-next.
|
|
13
|
+
"@forge/bundler": "4.21.1-next.5",
|
|
14
|
+
"@forge/cli-shared": "6.8.0-next.5",
|
|
15
15
|
"@forge/egress": "1.4.0",
|
|
16
16
|
"@forge/i18n": "0.0.4",
|
|
17
|
-
"@forge/lint": "5.7.3-next.
|
|
18
|
-
"@forge/manifest": "8.9.0-next.1
|
|
17
|
+
"@forge/lint": "5.7.3-next.5",
|
|
18
|
+
"@forge/manifest": "8.9.0-next.1",
|
|
19
19
|
"@forge/runtime": "5.10.7",
|
|
20
|
-
"@forge/tunnel": "5.10.1-next.
|
|
20
|
+
"@forge/tunnel": "5.10.1-next.5",
|
|
21
21
|
"@forge/util": "1.4.8",
|
|
22
22
|
"@sentry/node": "7.106.0",
|
|
23
23
|
"ajv": "^8.12.0",
|
|
@@ -834,9 +834,9 @@
|
|
|
834
834
|
"license": "SEE LICENSE IN LICENSE.txt"
|
|
835
835
|
},
|
|
836
836
|
"node_modules/@forge/bundler": {
|
|
837
|
-
"version": "4.21.1-next.
|
|
838
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.21.1-next.
|
|
839
|
-
"integrity": "sha512-
|
|
837
|
+
"version": "4.21.1-next.5",
|
|
838
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.21.1-next.5.tgz",
|
|
839
|
+
"integrity": "sha512-1cXqw/5mY953wVXHIotI1kYJdc+14VU3ze211CPN5osANQpoeL2nMpni7lN8fAx0dXNKKOeNz1FUaELnFqwaiQ==",
|
|
840
840
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
841
841
|
"dependencies": {
|
|
842
842
|
"@babel/core": "^7.24.0",
|
|
@@ -848,10 +848,10 @@
|
|
|
848
848
|
"@babel/preset-typescript": "^7.23.3",
|
|
849
849
|
"@forge/api": "5.1.1",
|
|
850
850
|
"@forge/babel-plugin-transform-ui": "1.1.21",
|
|
851
|
-
"@forge/cli-shared": "6.8.0-next.
|
|
851
|
+
"@forge/cli-shared": "6.8.0-next.5",
|
|
852
852
|
"@forge/i18n": "0.0.4",
|
|
853
|
-
"@forge/lint": "5.7.3-next.
|
|
854
|
-
"@forge/manifest": "8.9.0-next.1
|
|
853
|
+
"@forge/lint": "5.7.3-next.5",
|
|
854
|
+
"@forge/manifest": "8.9.0-next.1",
|
|
855
855
|
"@forge/util": "1.4.8",
|
|
856
856
|
"assert": "^2.1.0",
|
|
857
857
|
"babel-loader": "^8.3.0",
|
|
@@ -919,13 +919,13 @@
|
|
|
919
919
|
"license": "SEE LICENSE IN LICENSE.txt"
|
|
920
920
|
},
|
|
921
921
|
"node_modules/@forge/cli-shared": {
|
|
922
|
-
"version": "6.8.0-next.
|
|
923
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-6.8.0-next.
|
|
924
|
-
"integrity": "sha512-
|
|
922
|
+
"version": "6.8.0-next.5",
|
|
923
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-6.8.0-next.5.tgz",
|
|
924
|
+
"integrity": "sha512-U1wI35oDMTlQUwquXk61rb262hmw1gsYK4cV31d+Z8Pb3D4HPEU0ZRzyG8uxMCn4ftyBLv4viDwZhWmTdgih0A==",
|
|
925
925
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
926
926
|
"dependencies": {
|
|
927
927
|
"@forge/i18n": "0.0.4",
|
|
928
|
-
"@forge/manifest": "8.9.0-next.1
|
|
928
|
+
"@forge/manifest": "8.9.0-next.1",
|
|
929
929
|
"@forge/util": "1.4.8",
|
|
930
930
|
"@sentry/node": "7.106.0",
|
|
931
931
|
"adm-zip": "^0.5.10",
|
|
@@ -958,9 +958,9 @@
|
|
|
958
958
|
}
|
|
959
959
|
},
|
|
960
960
|
"node_modules/@forge/csp": {
|
|
961
|
-
"version": "3.6.2
|
|
962
|
-
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-3.6.2
|
|
963
|
-
"integrity": "sha512-
|
|
961
|
+
"version": "3.6.2",
|
|
962
|
+
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-3.6.2.tgz",
|
|
963
|
+
"integrity": "sha512-G6KVTiiZe1O/tpuSz6WgM8qgiRqf+E6GQeQDnmPlQlaGmur8qrKA2wHWmZtSgV3PuDt1Vts/ISCPa9mQtohIVw==",
|
|
964
964
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
965
965
|
"dependencies": {
|
|
966
966
|
"cheerio": "^0.22.0",
|
|
@@ -986,15 +986,15 @@
|
|
|
986
986
|
}
|
|
987
987
|
},
|
|
988
988
|
"node_modules/@forge/lint": {
|
|
989
|
-
"version": "5.7.3-next.
|
|
990
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.7.3-next.
|
|
991
|
-
"integrity": "sha512-
|
|
989
|
+
"version": "5.7.3-next.5",
|
|
990
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.7.3-next.5.tgz",
|
|
991
|
+
"integrity": "sha512-h4VRmmPNMn5JFgfbAuwTyzWW4Ozp13AEZyfcKSZq8TqJKsvKzgWuV8e2N2miJBB/gQtKOFhdR3prs7LdNIpEtQ==",
|
|
992
992
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
993
993
|
"dependencies": {
|
|
994
|
-
"@forge/cli-shared": "6.8.0-next.
|
|
995
|
-
"@forge/csp": "3.6.2
|
|
994
|
+
"@forge/cli-shared": "6.8.0-next.5",
|
|
995
|
+
"@forge/csp": "3.6.2",
|
|
996
996
|
"@forge/egress": "1.4.0",
|
|
997
|
-
"@forge/manifest": "8.9.0-next.1
|
|
997
|
+
"@forge/manifest": "8.9.0-next.1",
|
|
998
998
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
999
999
|
"array.prototype.flatmap": "^1.3.2",
|
|
1000
1000
|
"atlassian-openapi": "^1.0.18",
|
|
@@ -1003,9 +1003,9 @@
|
|
|
1003
1003
|
}
|
|
1004
1004
|
},
|
|
1005
1005
|
"node_modules/@forge/manifest": {
|
|
1006
|
-
"version": "8.9.0-next.1
|
|
1007
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-8.9.0-next.1
|
|
1008
|
-
"integrity": "sha512-
|
|
1006
|
+
"version": "8.9.0-next.1",
|
|
1007
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-8.9.0-next.1.tgz",
|
|
1008
|
+
"integrity": "sha512-mjUw0RwwIpcVtDF+oO7gzP6kWTo9Lc70RM+RBsQEJ2ZR/Gwh8cNgeH6KPx57i/BI4oTq0QNfHpOwW4q7kRjj9A==",
|
|
1009
1009
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
1010
1010
|
"dependencies": {
|
|
1011
1011
|
"@forge/i18n": "0.0.4",
|
|
@@ -1036,14 +1036,14 @@
|
|
|
1036
1036
|
}
|
|
1037
1037
|
},
|
|
1038
1038
|
"node_modules/@forge/tunnel": {
|
|
1039
|
-
"version": "5.10.1-next.
|
|
1040
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.10.1-next.
|
|
1041
|
-
"integrity": "sha512-
|
|
1039
|
+
"version": "5.10.1-next.5",
|
|
1040
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.10.1-next.5.tgz",
|
|
1041
|
+
"integrity": "sha512-k4TmtFWsDuU5kQuYNrD2Wmjl9AFrBEfkoHsWoPggElK/FzjFhqK36KdUw079FCrwdMOouo8oKkxQX+B61rFcLw==",
|
|
1042
1042
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
1043
1043
|
"dependencies": {
|
|
1044
|
-
"@forge/bundler": "4.21.1-next.
|
|
1045
|
-
"@forge/cli-shared": "6.8.0-next.
|
|
1046
|
-
"@forge/csp": "3.6.2
|
|
1044
|
+
"@forge/bundler": "4.21.1-next.5",
|
|
1045
|
+
"@forge/cli-shared": "6.8.0-next.5",
|
|
1046
|
+
"@forge/csp": "3.6.2",
|
|
1047
1047
|
"@forge/runtime": "5.10.7",
|
|
1048
1048
|
"chokidar": "^3.6.0",
|
|
1049
1049
|
"cloudflared": "^0.7.0",
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { AppEnvironmentType, UI } from '@forge/cli-shared';
|
|
2
2
|
import { VersionDetails, VersionOverview } from '../../service/version-service';
|
|
3
3
|
import { Change } from 'diff';
|
|
4
|
+
export declare const getDetailsTable: ({ formatKeyValueList, formatYamlProperties }: UI, details: Partial<VersionDetails>) => {
|
|
5
|
+
entry: string;
|
|
6
|
+
details: string;
|
|
7
|
+
property: keyof VersionDetails;
|
|
8
|
+
}[];
|
|
4
9
|
export declare class VersionView {
|
|
5
10
|
private readonly ui;
|
|
6
11
|
constructor(ui: UI);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/version-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"version-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/version-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAQ,EAAE,EAAY,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,eAAO,MAAM,eAAe,iDAAkD,EAAE,WAAW,QAAQ,cAAc,CAAC;;;;GAgHjH,CAAC;AAMF,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,EAAE;IAEtB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IAIxF,mBAAmB,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIzF,mBAAmB,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,eAAe,EAAE,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAI3F,8BAA8B,IAAI,OAAO,CAAC,CAAC,MAAM,cAAc,CAAC,EAAE,CAAC;IAmDzE,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAMlG,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI;IAY7D,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAI7C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAMxG,kBAAkB,CAAC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,GAAG,IAAI;IAkCxG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAMtF,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIzC,kBAAkB,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,IAAI;CAwBzD"}
|
|
@@ -1,9 +1,120 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VersionView = void 0;
|
|
3
|
+
exports.VersionView = exports.getDetailsTable = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const getDetailsTable = ({ formatKeyValueList, formatYamlProperties }, details) => {
|
|
8
|
+
const deploymentDate = (date) => `${date.toISOString()}`;
|
|
9
|
+
const scopes = (scopes) => `${(0, cli_shared_1.itemList)(scopes, '')}`;
|
|
10
|
+
const egress = (egresses) => {
|
|
11
|
+
const egressItems = egresses.map((egress) => ({
|
|
12
|
+
key: egress.type,
|
|
13
|
+
value: (0, cli_shared_1.itemList)(egress.addresses, ' ')
|
|
14
|
+
}));
|
|
15
|
+
return formatKeyValueList(egressItems, '', true);
|
|
16
|
+
};
|
|
17
|
+
const securityPolicies = (policies) => {
|
|
18
|
+
const policyItems = policies.map((policy) => ({
|
|
19
|
+
key: policy.type,
|
|
20
|
+
value: policy.policies.join(', ')
|
|
21
|
+
}));
|
|
22
|
+
return formatKeyValueList(policyItems);
|
|
23
|
+
};
|
|
24
|
+
const connectKeys = (keys) => {
|
|
25
|
+
const keyItems = keys.map((key) => ({
|
|
26
|
+
key: key.product,
|
|
27
|
+
value: key.key
|
|
28
|
+
}));
|
|
29
|
+
return formatKeyValueList(keyItems, '');
|
|
30
|
+
};
|
|
31
|
+
const functions = (functions) => {
|
|
32
|
+
const functionItems = functions.map((func) => {
|
|
33
|
+
const properties = {
|
|
34
|
+
runtime: func.runtimeName,
|
|
35
|
+
handler: func.handler
|
|
36
|
+
};
|
|
37
|
+
return formatYamlProperties(properties, func.key);
|
|
38
|
+
});
|
|
39
|
+
return (0, cli_shared_1.itemList)(functionItems, '');
|
|
40
|
+
};
|
|
41
|
+
const modules = (modules) => {
|
|
42
|
+
return modules
|
|
43
|
+
.map((mod) => {
|
|
44
|
+
const items = mod.items.map((item) => formatYamlProperties(item.properties, item.key));
|
|
45
|
+
return `${chalk_1.default.bold(mod.type)}\n${(0, cli_shared_1.itemList)(items, '')}`;
|
|
46
|
+
})
|
|
47
|
+
.join('\n');
|
|
48
|
+
};
|
|
49
|
+
const remotes = (remotes) => {
|
|
50
|
+
const remoteItems = remotes.map((remote) => {
|
|
51
|
+
const properties = {
|
|
52
|
+
baseUrl: remote.baseUrl,
|
|
53
|
+
operations: remote.operations
|
|
54
|
+
};
|
|
55
|
+
return formatYamlProperties(properties, remote.key);
|
|
56
|
+
});
|
|
57
|
+
return (0, cli_shared_1.itemList)(remoteItems, '');
|
|
58
|
+
};
|
|
59
|
+
const tableData = [
|
|
60
|
+
{
|
|
61
|
+
entry: 'deployment date',
|
|
62
|
+
detailsFn: deploymentDate,
|
|
63
|
+
property: 'deploymentDateTime'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
entry: 'functions',
|
|
67
|
+
detailsFn: functions,
|
|
68
|
+
property: 'functions'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
entry: 'modules',
|
|
72
|
+
detailsFn: modules,
|
|
73
|
+
property: 'modules'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
entry: 'license',
|
|
77
|
+
detailsFn: cli_shared_1.Text.version.check.details.license,
|
|
78
|
+
property: 'requiresLicense'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
entry: 'scopes',
|
|
82
|
+
detailsFn: scopes,
|
|
83
|
+
property: 'scopes'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
entry: 'egress',
|
|
87
|
+
detailsFn: egress,
|
|
88
|
+
property: 'egresses'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
entry: 'policies',
|
|
92
|
+
detailsFn: securityPolicies,
|
|
93
|
+
property: 'policies'
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
entry: 'connect keys',
|
|
97
|
+
detailsFn: connectKeys,
|
|
98
|
+
property: 'connectKeys'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
entry: 'remotes',
|
|
102
|
+
detailsFn: remotes,
|
|
103
|
+
property: 'remotes'
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
return tableData
|
|
107
|
+
.filter(({ property }) => details[property] !== undefined)
|
|
108
|
+
.map(({ entry, detailsFn, property }) => ({
|
|
109
|
+
entry,
|
|
110
|
+
details: detailsFn(details[property]),
|
|
111
|
+
property
|
|
112
|
+
}));
|
|
113
|
+
};
|
|
114
|
+
exports.getDetailsTable = getDetailsTable;
|
|
115
|
+
const getPropertySummary = (property) => {
|
|
116
|
+
return property.map((item) => `${item.type}: ${item.count}`).join('\n');
|
|
117
|
+
};
|
|
7
118
|
class VersionView {
|
|
8
119
|
ui;
|
|
9
120
|
constructor(ui) {
|
|
@@ -67,65 +178,11 @@ class VersionView {
|
|
|
67
178
|
this.ui.emptyLine();
|
|
68
179
|
}
|
|
69
180
|
displayDetailsAsTable(details) {
|
|
70
|
-
const tableData = [
|
|
71
|
-
{
|
|
72
|
-
entry: 'deployment date',
|
|
73
|
-
detailsFn: cli_shared_1.Text.version.check.details.deploymentDate,
|
|
74
|
-
property: 'deploymentDateTime'
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
entry: 'functions',
|
|
78
|
-
detailsFn: cli_shared_1.Text.version.check.details.functions,
|
|
79
|
-
property: 'functions'
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
entry: 'modules',
|
|
83
|
-
detailsFn: cli_shared_1.Text.version.check.details.modules,
|
|
84
|
-
property: 'modules'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
entry: 'license',
|
|
88
|
-
detailsFn: cli_shared_1.Text.version.check.details.license,
|
|
89
|
-
property: 'requiresLicense'
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
entry: 'scopes',
|
|
93
|
-
detailsFn: cli_shared_1.Text.version.check.details.scopes,
|
|
94
|
-
property: 'scopes'
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
entry: 'egress',
|
|
98
|
-
detailsFn: cli_shared_1.Text.version.check.details.egress,
|
|
99
|
-
property: 'egresses'
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
entry: 'policies',
|
|
103
|
-
detailsFn: cli_shared_1.Text.version.check.details.securityPolicies,
|
|
104
|
-
property: 'policies'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
entry: 'connect keys',
|
|
108
|
-
detailsFn: cli_shared_1.Text.version.check.details.connectKeys,
|
|
109
|
-
property: 'connectKeys'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
entry: 'remotes',
|
|
113
|
-
detailsFn: cli_shared_1.Text.version.check.details.remotes,
|
|
114
|
-
property: 'remotes'
|
|
115
|
-
}
|
|
116
|
-
];
|
|
117
|
-
const filteredData = [...tableData]
|
|
118
|
-
.sort((a, b) => a.entry.localeCompare(b.entry))
|
|
119
|
-
.filter(({ property }) => details[property] !== undefined)
|
|
120
|
-
.map(({ entry, detailsFn, property }) => ({
|
|
121
|
-
entry,
|
|
122
|
-
details: detailsFn(details[property]),
|
|
123
|
-
property
|
|
124
|
-
}));
|
|
181
|
+
const tableData = [...(0, exports.getDetailsTable)(this.ui, details)].sort((a, b) => a.entry.localeCompare(b.entry));
|
|
125
182
|
this.ui.table([
|
|
126
183
|
['entry', 'Property'],
|
|
127
184
|
['details', 'Details']
|
|
128
|
-
],
|
|
185
|
+
], tableData);
|
|
129
186
|
}
|
|
130
187
|
displayDataInJson(data) {
|
|
131
188
|
this.ui.info(JSON.stringify(data, null, 2));
|
|
@@ -188,10 +245,10 @@ class VersionView {
|
|
|
188
245
|
], data.map(({ version, egresses, modules, policies, deploymentDateTime, ...rest }) => ({
|
|
189
246
|
...rest,
|
|
190
247
|
version: version.toString(),
|
|
191
|
-
deploymentDate:
|
|
192
|
-
egresses:
|
|
193
|
-
policies:
|
|
194
|
-
modules:
|
|
248
|
+
deploymentDate: deploymentDateTime.toISOString(),
|
|
249
|
+
egresses: getPropertySummary(egresses),
|
|
250
|
+
policies: getPropertySummary(policies),
|
|
251
|
+
modules: getPropertySummary(modules)
|
|
195
252
|
})));
|
|
196
253
|
}
|
|
197
254
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "11.3.0-next.
|
|
3
|
+
"version": "11.3.0-next.5",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"postinstall": "node -e \"fs.existsSync('./out/bin/postinstall.js') && require('./out/bin/postinstall.js')\""
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/bundler": "4.21.1-next.
|
|
22
|
-
"@forge/cli-shared": "6.8.0-next.
|
|
21
|
+
"@forge/bundler": "4.21.1-next.5",
|
|
22
|
+
"@forge/cli-shared": "6.8.0-next.5",
|
|
23
23
|
"@forge/egress": "1.4.0",
|
|
24
|
-
"@forge/lint": "5.7.3-next.
|
|
25
|
-
"@forge/manifest": "8.9.0-next.1
|
|
24
|
+
"@forge/lint": "5.7.3-next.5",
|
|
25
|
+
"@forge/manifest": "8.9.0-next.1",
|
|
26
26
|
"@forge/runtime": "5.10.7",
|
|
27
|
-
"@forge/tunnel": "5.10.1-next.
|
|
27
|
+
"@forge/tunnel": "5.10.1-next.5",
|
|
28
28
|
"@forge/util": "1.4.8",
|
|
29
29
|
"@sentry/node": "7.106.0",
|
|
30
30
|
"@forge/i18n": "0.0.4",
|