@axway/axway-central-cli 2.10.3 → 2.11.0-rc.2

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.
@@ -19,10 +19,14 @@ var _DefinitionsManager = require("../../common/DefinitionsManager");
19
19
 
20
20
  var _PlatformClient = require("../../common/PlatformClient");
21
21
 
22
+ var _CliConfigManager = require("../../common/CliConfigManager");
23
+
22
24
  var _Renderer = _interopRequireDefault(require("../../common/Renderer"));
23
25
 
24
26
  var _types = require("../../common/types");
25
27
 
28
+ var _utils = require("../../common/utils");
29
+
26
30
  var awsAgents = _interopRequireWildcard(require("./awsAgents"));
27
31
 
28
32
  var azureAgents = _interopRequireWildcard(require("./azureAgents"));
@@ -119,7 +123,9 @@ const agents = {
119
123
  console.log(_chalk.default.gray(`This command configures and installs the agents so that you can manage your gateway environment within the Amplify Platform.\n`));
120
124
  let installConfig = new _types.AgentInstallConfig();
121
125
  installConfig.centralConfig.axwayManaged = !!axwayManaged;
122
- installConfig.centralConfig.region = region ? region.toString() : _types.Regions.US;
126
+ let configurationRegion = (await (0, _utils.getConfig)())[_CliConfigManager.CliConfigKeys.REGION]; // top priority is region option on command line, second priority is region from config file, default is US
127
+
128
+ installConfig.centralConfig.region = region ? region.toString() : configurationRegion ? configurationRegion : _types.Regions.US;
123
129
  installConfig.centralConfig.singleEntryPointUrl = _types.SingleEntryPointUrls[installConfig.centralConfig.region]; // gateway type
124
130
 
125
131
  let gatewayType = await (0, _basicPrompts.askList)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axway/axway-central-cli",
3
- "version": "2.10.3",
3
+ "version": "2.11.0-rc.2",
4
4
  "description": "Manage APIs, services and publish to the Unified Catalog",
5
5
  "homepage": "https://platform.axway.com",
6
6
  "author": {
@@ -63,11 +63,11 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@babel/cli": "^7.17.10",
66
- "@babel/core": "^7.18.0",
66
+ "@babel/core": "^7.18.2",
67
67
  "@babel/plugin-proposal-class-properties": "^7.17.12",
68
68
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
69
69
  "@babel/plugin-proposal-optional-chaining": "^7.17.12",
70
- "@babel/preset-env": "^7.18.0",
70
+ "@babel/preset-env": "^7.18.2",
71
71
  "@babel/preset-typescript": "^7.17.12",
72
72
  "@types/chai": "^4.3.1",
73
73
  "@types/chai-as-promised": "^7.1.5",
@@ -87,7 +87,7 @@
87
87
  "babel-plugin-lodash": "^3.3.4",
88
88
  "chai": "^4.3.6",
89
89
  "chai-as-promised": "^7.1.1",
90
- "core-js": "^3.22.5",
90
+ "core-js": "^3.22.8",
91
91
  "mocha": "^9.2.2",
92
92
  "nock": "^13.2.4",
93
93
  "nodemon": "^2.0.16",
@@ -96,7 +96,7 @@
96
96
  "sinon": "^11.1.2",
97
97
  "source-map-support": "^0.5.21",
98
98
  "ts-mocha": "^10.0.0",
99
- "typescript": "^4.6.4"
99
+ "typescript": "^4.7.2"
100
100
  },
101
101
  "jest": {
102
102
  "verbose": true,