@sap-ux/deploy-tooling 0.7.1 → 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
  }
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.1",
12
+ "version": "0.7.2",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",