@sap-ux/deploy-tooling 0.7.0 → 0.7.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.
@@ -222,7 +222,13 @@ function handle401Error(command, provider, config, logger, archive) {
222
222
  const service = getUi5AbapRepositoryService(provider, config, logger);
223
223
  const credentials = yield (0, prompt_1.promptCredentials)((_a = service.defaults.auth) === null || _a === void 0 ? void 0 : _a.username);
224
224
  if (Object.keys(credentials).length) {
225
- service.defaults.auth = credentials;
225
+ if (config.target.serviceKey) {
226
+ config.target.serviceKey.uaa.username = credentials.username;
227
+ config.target.serviceKey.uaa.password = credentials.password;
228
+ }
229
+ else {
230
+ service.defaults.auth = credentials;
231
+ }
226
232
  yield deploymentCommands[command](provider, config, logger, archive);
227
233
  return true;
228
234
  }
@@ -146,18 +146,17 @@ function mergeTarget(baseTarget, options) {
146
146
  };
147
147
  }
148
148
  /**
149
- * Merge CLI and environment credentials.
149
+ * Merge CLI credentials.
150
150
  *
151
151
  * @param taskConfig - base configuration from the file
152
152
  * @param options - CLI options
153
153
  * @returns merged credentials
154
154
  */
155
155
  function mergeCredentials(taskConfig, options) {
156
- var _a, _b, _c, _d;
156
+ var _a, _b;
157
157
  let credentials = taskConfig.credentials;
158
- // Support CLI params and|or dotenv file
159
- if (options.username || process.env.SERVICE_USERNAME) {
160
- credentials = Object.assign(Object.assign({}, (credentials !== null && credentials !== void 0 ? credentials : {})), { username: (_b = (_a = options.username) !== null && _a !== void 0 ? _a : process.env.SERVICE_USERNAME) !== null && _b !== void 0 ? _b : '', password: (_d = (_c = options.password) !== null && _c !== void 0 ? _c : process.env.SERVICE_PASSWORD) !== null && _d !== void 0 ? _d : '' });
158
+ if (options.username || options.password) {
159
+ credentials = Object.assign(Object.assign({}, (credentials !== null && credentials !== void 0 ? credentials : {})), { username: (_a = options.username) !== null && _a !== void 0 ? _a : '', password: (_b = options.password) !== null && _b !== void 0 ? _b : '' });
161
160
  }
162
161
  return credentials;
163
162
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
11
11
  },
12
- "version": "0.7.0",
12
+ "version": "0.7.2",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -33,8 +33,8 @@
33
33
  "yazl": "2.5.1",
34
34
  "@sap-ux/axios-extension": "1.4.0",
35
35
  "@sap-ux/btp-utils": "0.11.7",
36
- "@sap-ux/store": "0.3.12",
37
36
  "@sap-ux/logger": "0.3.7",
37
+ "@sap-ux/store": "0.3.12",
38
38
  "@sap-ux/ui5-config": "0.18.2"
39
39
  },
40
40
  "devDependencies": {