@forge/cli 10.6.0-next.15 → 10.6.0-next.18

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,5 +1,42 @@
1
1
  # @forge/cli
2
2
 
3
+ ## 10.6.0-next.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [99b6dd4]
8
+ - @forge/manifest@7.7.0-next.15
9
+ - @forge/bundler@4.19.0-next.17
10
+ - @forge/cli-shared@5.5.0-next.16
11
+ - @forge/lint@5.3.3-next.16
12
+ - @forge/tunnel@5.5.0-next.17
13
+
14
+ ## 10.6.0-next.17
15
+
16
+ ### Minor Changes
17
+
18
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [6f27f26]
23
+ - @forge/cli-shared@5.5.0-next.15
24
+ - @forge/bundler@4.19.0-next.16
25
+ - @forge/lint@5.3.3-next.15
26
+ - @forge/tunnel@5.5.0-next.16
27
+
28
+ ## 10.6.0-next.16
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [d51b7be]
33
+ - @forge/i18n@0.0.1-next.13
34
+ - @forge/bundler@4.19.0-next.15
35
+ - @forge/cli-shared@5.5.0-next.14
36
+ - @forge/manifest@7.7.0-next.14
37
+ - @forge/tunnel@5.5.0-next.15
38
+ - @forge/lint@5.3.3-next.14
39
+
3
40
  ## 10.6.0-next.15
4
41
 
5
42
  ### Minor Changes
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "10.6.0-next.15",
3
+ "version": "10.6.0-next.18",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@forge/cli",
9
- "version": "10.6.0-next.15",
9
+ "version": "10.6.0-next.18",
10
10
  "hasInstallScript": true,
11
11
  "license": "UNLICENSED",
12
12
  "dependencies": {
13
- "@forge/bundler": "4.19.0-next.14",
14
- "@forge/cli-shared": "5.5.0-next.13",
13
+ "@forge/bundler": "4.19.0-next.17",
14
+ "@forge/cli-shared": "5.5.0-next.16",
15
15
  "@forge/egress": "1.2.13",
16
- "@forge/i18n": "0.0.1-next.12",
17
- "@forge/lint": "5.3.3-next.13",
18
- "@forge/manifest": "7.7.0-next.13",
16
+ "@forge/i18n": "0.0.1-next.13",
17
+ "@forge/lint": "5.3.3-next.16",
18
+ "@forge/manifest": "7.7.0-next.15",
19
19
  "@forge/runtime": "5.10.1",
20
- "@forge/tunnel": "5.5.0-next.14",
20
+ "@forge/tunnel": "5.5.0-next.17",
21
21
  "@forge/util": "1.4.4",
22
22
  "@sentry/node": "7.100.1",
23
23
  "ajv": "^8.12.0",
@@ -832,9 +832,9 @@
832
832
  "integrity": "sha512-zG50ZRzbKyWHVb/XjI6iCIyyDNmSHdlclvehMjFZ/A3qpHExjSCjaszeY6gBDJKD2GORKKjQ3LS1UyRpiVVvkA=="
833
833
  },
834
834
  "node_modules/@forge/bundler": {
835
- "version": "4.19.0-next.14",
836
- "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.19.0-next.14.tgz",
837
- "integrity": "sha512-MArbA3uVkQFYGf0+wSmUsatRUdSnLRgjbuGSfXmVNx9VtIZjH8YKmyCPrJ6FFP5GM99v6o0xY0NzXMhMoJkNbA==",
835
+ "version": "4.19.0-next.17",
836
+ "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.19.0-next.17.tgz",
837
+ "integrity": "sha512-Wtoxd80RL3pzisDhoGGsG0dLbjWOk7byDYqJkw8UCzmSN1fDZwhtLvB3N/7nNCdseuowoT3oXoNrdOKurQ/VNg==",
838
838
  "dependencies": {
839
839
  "@babel/core": "^7.24.0",
840
840
  "@babel/plugin-transform-class-properties": "^7.23.3",
@@ -845,10 +845,10 @@
845
845
  "@babel/preset-typescript": "^7.23.3",
846
846
  "@forge/api": "3.9.2-next.2",
847
847
  "@forge/babel-plugin-transform-ui": "1.1.18",
848
- "@forge/cli-shared": "5.5.0-next.13",
849
- "@forge/i18n": "0.0.1-next.12",
850
- "@forge/lint": "5.3.3-next.13",
851
- "@forge/manifest": "7.7.0-next.13",
848
+ "@forge/cli-shared": "5.5.0-next.16",
849
+ "@forge/i18n": "0.0.1-next.13",
850
+ "@forge/lint": "5.3.3-next.16",
851
+ "@forge/manifest": "7.7.0-next.15",
852
852
  "@forge/util": "1.4.4",
853
853
  "assert": "^2.1.0",
854
854
  "babel-loader": "^8.3.0",
@@ -905,12 +905,12 @@
905
905
  "integrity": "sha512-n4AWXkzMA4Pv4nam+dTu7PHgDQtMwaAF2MalOWF323zGvYKS/gZJY+7efJq0DLP783iTfjvYT879EHhCrfvEXA=="
906
906
  },
907
907
  "node_modules/@forge/cli-shared": {
908
- "version": "5.5.0-next.13",
909
- "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-5.5.0-next.13.tgz",
910
- "integrity": "sha512-Fh4+1txHQYc0yfdQVBFYY/KglU63DnmAi0jiyPYhXherXOz+TDz89Te+HOk7rF6yBsNH9HIc2IW5b0aRUcaViQ==",
908
+ "version": "5.5.0-next.16",
909
+ "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-5.5.0-next.16.tgz",
910
+ "integrity": "sha512-CeT36lqp4LpZp1FntCCuFCQsWOwsmdGuN2XCFQUqJS+0ZXiJDlNZBM50LLDw+WCOuTj/23MPZ9r8TOTEeu6bhw==",
911
911
  "dependencies": {
912
- "@forge/i18n": "0.0.1-next.12",
913
- "@forge/manifest": "7.7.0-next.13",
912
+ "@forge/i18n": "0.0.1-next.13",
913
+ "@forge/manifest": "7.7.0-next.15",
914
914
  "@forge/util": "1.4.4",
915
915
  "@sentry/node": "7.100.1",
916
916
  "adm-zip": "^0.5.10",
@@ -961,21 +961,21 @@
961
961
  }
962
962
  },
963
963
  "node_modules/@forge/i18n": {
964
- "version": "0.0.1-next.12",
965
- "resolved": "https://registry.npmjs.org/@forge/i18n/-/i18n-0.0.1-next.12.tgz",
966
- "integrity": "sha512-qRvN6RbWTAInvDa5XLCGALrilUu8ATvviS81Jm0ScYMICatZXME5csFcFrz8CbWBBW3JZ1F6nX9PQPnTfdN43Q==",
964
+ "version": "0.0.1-next.13",
965
+ "resolved": "https://registry.npmjs.org/@forge/i18n/-/i18n-0.0.1-next.13.tgz",
966
+ "integrity": "sha512-OFAPPpTpEolwAOUmFcUGWJ/QIbV3IHFr9JZDSu56yhbaZEicmE/7vd9PvpSFLpxPK8zQL3o/TF4Koz1B/hY/zg==",
967
967
  "dependencies": {
968
968
  "lodash": "^4.17.21"
969
969
  }
970
970
  },
971
971
  "node_modules/@forge/lint": {
972
- "version": "5.3.3-next.13",
973
- "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.3.3-next.13.tgz",
974
- "integrity": "sha512-WqYaK5LohGoHZZEVcvgUX+BJ0RdzFWeR+h4BwOCjPzhawAzov0YoW3YCfRZv6DwiTD7BroJ89TeqxRC74JY0Sw==",
972
+ "version": "5.3.3-next.16",
973
+ "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.3.3-next.16.tgz",
974
+ "integrity": "sha512-e1/Lwh/w56z09q1slg9MHRHeoBxKPuswOQAYCrxU987YayTlBFEG1yTSIZgBsu6X9g87A5I/3lmLjBcAh/aIpQ==",
975
975
  "dependencies": {
976
- "@forge/cli-shared": "5.5.0-next.13",
976
+ "@forge/cli-shared": "5.5.0-next.16",
977
977
  "@forge/egress": "1.2.13",
978
- "@forge/manifest": "7.7.0-next.13",
978
+ "@forge/manifest": "7.7.0-next.15",
979
979
  "@typescript-eslint/typescript-estree": "^5.62.0",
980
980
  "array.prototype.flatmap": "^1.3.2",
981
981
  "atlassian-openapi": "^1.0.18",
@@ -984,11 +984,11 @@
984
984
  }
985
985
  },
986
986
  "node_modules/@forge/manifest": {
987
- "version": "7.7.0-next.13",
988
- "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-7.7.0-next.13.tgz",
989
- "integrity": "sha512-scJ1aTwGxysuaEX19b6bDWKCtU+4duWtJlFToud8eUGLdys/GT1auH/pqsjVbxoIH+RweHDUbH0If/epoRu7/A==",
987
+ "version": "7.7.0-next.15",
988
+ "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-7.7.0-next.15.tgz",
989
+ "integrity": "sha512-dXtMNp0G7H4e5TQjpcrzGqgFOymjmIkSVEg/7VxG3Z+V5XAm1Ugib7voqB9G7rO2QVLYSGdCjYqn8KVoUQoI4w==",
990
990
  "dependencies": {
991
- "@forge/i18n": "0.0.1-next.12",
991
+ "@forge/i18n": "0.0.1-next.13",
992
992
  "@sentry/node": "7.100.1",
993
993
  "ajv": "^8.12.0",
994
994
  "ajv-formats": "2.1.1",
@@ -1015,12 +1015,12 @@
1015
1015
  }
1016
1016
  },
1017
1017
  "node_modules/@forge/tunnel": {
1018
- "version": "5.5.0-next.14",
1019
- "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.5.0-next.14.tgz",
1020
- "integrity": "sha512-SokrPVVmDl7pUnXFeq9AEehtskkGoqfusMFTE/EicktvrM9QAjm2gc26YiDZj1LmPdack+D838qS5LzsTscozA==",
1018
+ "version": "5.5.0-next.17",
1019
+ "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.5.0-next.17.tgz",
1020
+ "integrity": "sha512-/4fTobRAPx0b/IOpdhxtOuN/dczpdOiBMmTV7S7Vh5R0jLbP1+whUI69TBz851hHWZ1Uf/JVTbu4ctwSyznqcw==",
1021
1021
  "dependencies": {
1022
- "@forge/bundler": "4.19.0-next.14",
1023
- "@forge/cli-shared": "5.5.0-next.13",
1022
+ "@forge/bundler": "4.19.0-next.17",
1023
+ "@forge/cli-shared": "5.5.0-next.16",
1024
1024
  "@forge/csp": "3.3.0",
1025
1025
  "@forge/runtime": "5.10.1",
1026
1026
  "chokidar": "^3.6.0",
@@ -41,6 +41,7 @@ export declare class DeployController {
41
41
  private isMpacProductionApp;
42
42
  private connectKeyDeleted;
43
43
  private connectKeyChanged;
44
+ private connectKeyMutatedInProduction;
44
45
  private validateConnectKeyChange;
45
46
  private verifyPreDeployment;
46
47
  private verifyPostDeployment;
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/deploy-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAEpB,UAAU,EACV,cAAc,EACd,WAAW,EAIZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAA+B,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACzG,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,sBAAuB,SAAQ,WAAW;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM,EAAE;IAItC,aAAa,IAAI,cAAc;IAM/B,WAAW,IAAI,OAAO;CAG9B;AAED,qBAAa,sBAAuB,SAAQ,WAAW;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAGpC,aAAa,IAAI,cAAc;IAM/B,WAAW,IAAI,OAAO;CAG9B;AAED,qBAAa,gBAAgB;IAEzB,O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AAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,8BAA8B;IAC/C,OAAO,CAAC,QAAQ,CAAC,wBAAwB;gBAVxB,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,mBAAmB,EACzC,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,UAAU,EACtB,iCAAiC,EAAE,0BAA0B,EAC7D,8BAA8B,EAAE,0BAA0B,EAC1D,wBAAwB,EAAE,wBAAwB;IAGrE,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,6BAA6B;YAWvB,wBAAwB;YA2BxB,mBAAmB;YA2BnB,oBAAoB;YAgBpB,2BAA2B;YAe3B,wBAAwB;IAkBzB,GAAG,CAAC,EACf,WAAW,EACX,MAAM,EACN,cAAc,EACd,YAAY,EACb,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAkFpD"}
@@ -71,12 +71,22 @@ class DeployController {
71
71
  connectKeyChanged(connectKey, comparisonKey) {
72
72
  return !!(comparisonKey && connectKey && connectKey !== comparisonKey);
73
73
  }
74
+ connectKeyMutatedInProduction(connectKey, comparisonKey, environment, isSkeletonVersion) {
75
+ if (isSkeletonVersion || environment !== 'production') {
76
+ return false;
77
+ }
78
+ return !!(connectKey !== comparisonKey);
79
+ }
74
80
  async validateConnectKeyChange(environment, keys) {
75
- const { migrationKeys, mpacAppKey } = keys;
81
+ const { migrationKeys, mpacAppKey, isSkeletonVersion } = keys;
76
82
  const connectKey = await this.configFile.getConnectKey();
77
83
  const migrationKey = migrationKeys?.confluence || migrationKeys?.jira;
78
84
  const isMpacApp = this.isMpacProductionApp(mpacAppKey, environment);
79
- if (this.connectKeyDeleted(connectKey, migrationKey)) {
85
+ if (!isMpacApp && this.connectKeyMutatedInProduction(connectKey, migrationKey, environment, !!isSkeletonVersion)) {
86
+ this.deployView.displayConnectKeyMutationInProductionError(migrationKey, connectKey);
87
+ throw new InvalidConnectKeyError(cli_shared_1.Text.deploy.connectKeyChange.mpacAppConnectKeyChangeAnalyticsError);
88
+ }
89
+ else if (this.connectKeyDeleted(connectKey, migrationKey)) {
80
90
  this.deployView.displayConnectKeyDeleteWarning(environment);
81
91
  const proceed = await this.deployView.promptToContinueDeletingConnectKey();
82
92
  return { proceed, connectKeyDeleted: proceed, connectKeyChanged: false };
@@ -16,6 +16,7 @@ export declare class DeployView {
16
16
  displayConnectKeyChangeWarning(environment: string, migrationKey: string, connectKey: string): void;
17
17
  displayConnectKeyDeleteWarning(environment: string): void;
18
18
  displayMPACAppConnectKeyChangeError(mpacAppKey: string, connectKey: string): void;
19
+ displayConnectKeyMutationInProductionError(migrationKey?: string, connectKey?: string): void;
19
20
  displayEnvironmentCreationWarning(environment: string): void;
20
21
  displayEnvironmentCreationSuccessMessage(environment: string): void;
21
22
  promptToContinueDeletingConnectKey(): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/deploy-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAkB,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAqB,MAAM,aAAa,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,EAAE;IAE5B,SAAS,IAAI,EAAE;IAIf,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB,GAAG,IAAI;IAI5E,gCAAgC,IAAI,IAAI;IAIxC,kBAAkB,I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AAC,OAAO,CAAC;IAKnE,0CAA0C,IAAI,IAAI;IAK5C,wBAAwB,CACnC,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,EAAE,qBAAqB,EACxE,wBAAwB,EAAE,OAAO,EACjC,cAAc,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,GAC9C,OAAO,CAAC,gBAAgB,CAAC;CAY7B"}
@@ -48,6 +48,9 @@ class DeployView {
48
48
  displayMPACAppConnectKeyChangeError(mpacAppKey, connectKey) {
49
49
  this.ui.info(cli_shared_1.Text.deploy.connectKeyChange.mpacAppConnectKeyChangeError(mpacAppKey, connectKey));
50
50
  }
51
+ displayConnectKeyMutationInProductionError(migrationKey, connectKey) {
52
+ this.ui.info(cli_shared_1.Text.deploy.connectKeyChange.connectKeyMutationInProductionError(migrationKey, connectKey));
53
+ }
51
54
  displayEnvironmentCreationWarning(environment) {
52
55
  this.ui.emptyLine();
53
56
  this.ui.warn(cli_shared_1.Text.env.warn.envWillBeCreated(environment));
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/migration-keys/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA6D,MAAM,mBAAmB,CAAC;AAC7G,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAiDjH"}
1
+ {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/migration-keys/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA6D,MAAM,mBAAmB,CAAC;AAC7G,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAqDjH"}
@@ -22,6 +22,7 @@ class GraphqlClient {
22
22
  jira
23
23
  confluence
24
24
  }
25
+ version
25
26
  }
26
27
  }
27
28
  }
@@ -42,13 +43,15 @@ class GraphqlClient {
42
43
  }
43
44
  const mpacAppKey = result.app.marketplaceApp?.appKey;
44
45
  const versions = result.app.environmentByKey.versions;
46
+ let isSkeletonVersion = true;
45
47
  let migrationKeys;
46
48
  for (const edge of versions?.edges || []) {
47
49
  if (edge) {
48
50
  migrationKeys = edge.node?.migrationKeys;
51
+ isSkeletonVersion = edge.node?.version === '1.1.0';
49
52
  }
50
53
  }
51
- return { migrationKeys, mpacAppKey };
54
+ return { migrationKeys, mpacAppKey, isSkeletonVersion };
52
55
  }
53
56
  }
54
57
  exports.GraphqlClient = GraphqlClient;
@@ -6,6 +6,7 @@ export declare type MigrationKeys = {
6
6
  export interface AppEnvironmentMigrationKeys {
7
7
  migrationKeys?: MigrationKeys | null;
8
8
  mpacAppKey?: string | null;
9
+ isSkeletonVersion?: boolean;
9
10
  }
10
11
  export interface GetMigrationKeysClient {
11
12
  getLatestMigrationKeys(appId: string, environmentKey: string): Promise<AppEnvironmentMigrationKeys>;
@@ -1 +1 @@
1
- {"version":3,"file":"migration-keys-service.d.ts","sourceRoot":"","sources":["../../src/service/migration-keys-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,oBAAY,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,WAAW,2BAA2B;IAC1C,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AACD,MAAM,WAAW,sBAAsB;IACrC,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACrG;AAED,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,mBAAmB,EAAE,sBAAsB,EAC3C,YAAY,EAAE,iBAAiB;IAGrC,iCAAiC,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAI7G"}
1
+ {"version":3,"file":"migration-keys-service.d.ts","sourceRoot":"","sources":["../../src/service/migration-keys-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,oBAAY,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,WAAW,2BAA2B;IAC1C,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AACD,MAAM,WAAW,sBAAsB;IACrC,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACrG;AAED,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,mBAAmB,EAAE,sBAAsB,EAC3C,YAAY,EAAE,iBAAiB;IAGrC,iCAAiC,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAI7G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "10.6.0-next.15",
3
+ "version": "10.6.0-next.18",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -18,16 +18,16 @@
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.19.0-next.14",
22
- "@forge/cli-shared": "5.5.0-next.13",
21
+ "@forge/bundler": "4.19.0-next.17",
22
+ "@forge/cli-shared": "5.5.0-next.16",
23
23
  "@forge/egress": "1.2.13",
24
- "@forge/lint": "5.3.3-next.13",
25
- "@forge/manifest": "7.7.0-next.13",
24
+ "@forge/lint": "5.3.3-next.16",
25
+ "@forge/manifest": "7.7.0-next.15",
26
26
  "@forge/runtime": "5.10.1",
27
- "@forge/tunnel": "5.5.0-next.14",
27
+ "@forge/tunnel": "5.5.0-next.17",
28
28
  "@forge/util": "1.4.4",
29
29
  "@sentry/node": "7.100.1",
30
- "@forge/i18n": "0.0.1-next.12",
30
+ "@forge/i18n": "0.0.1-next.13",
31
31
  "ajv": "^8.12.0",
32
32
  "archiver": "^6.0.2",
33
33
  "case": "^1.6.3",