@sap-ux/deploy-tooling 0.18.6 → 0.18.7

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.
@@ -127,6 +127,11 @@ async function axiosErrorRetryHandler(command, response, provider, config, logge
127
127
  * @returns service returns the UI5 ABAP Repository service
128
128
  */
129
129
  function getDeployService(factoryFn, config, logger) {
130
+ if (typeof factoryFn !== 'function') {
131
+ throw new TypeError(`The '${config.target?.destination}' destination is not recognized as an ABAP system. ` +
132
+ `Ensure the destination has one of the following properties configured: ` +
133
+ `WebIDEUsage including 'odata_abap', a 'sap-client' value, 'sap-platform' set to 'abap', or 'ProxyType' set to 'OnPremise'.`);
134
+ }
130
135
  const service = factoryFn(config.target?.service);
131
136
  service.log = logger;
132
137
  if (!config.strictSsl) {
@@ -225,7 +230,7 @@ async function tryDeploy(provider, config, logger, archive) {
225
230
  const validateOutput = await (0, validate_1.validateBeforeDeploy)(config, provider, logger);
226
231
  logger.info(`Results of validating the deployment configuration settings:${(0, validate_1.formatSummary)(validateOutput.summary)}`);
227
232
  }
228
- const service = getDeployService(provider.getUi5AbapRepository.bind(provider), config, logger);
233
+ const service = getDeployService(provider.getUi5AbapRepository?.bind(provider), config, logger);
229
234
  await service.deploy({
230
235
  archive,
231
236
  bsp: config.app,
@@ -286,7 +291,7 @@ async function tryUndeploy(provider, config, logger) {
286
291
  });
287
292
  }
288
293
  else if ((0, config_1.isBspConfig)(config.app)) {
289
- const service = getDeployService(provider.getUi5AbapRepository.bind(provider), config, logger);
294
+ const service = getDeployService(provider.getUi5AbapRepository?.bind(provider), config, logger);
290
295
  await service.undeploy({ bsp: config.app, testMode: config.test });
291
296
  }
292
297
  else {
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.18.6",
12
+ "version": "0.18.7",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -32,11 +32,11 @@
32
32
  "prompts": "2.4.2",
33
33
  "adm-zip": "0.5.16",
34
34
  "chalk": "4.1.2",
35
- "@sap-ux/axios-extension": "1.25.26",
36
- "@sap-ux/btp-utils": "1.1.11",
37
- "@sap-ux/inquirer-common": "0.11.29",
35
+ "@sap-ux/axios-extension": "1.25.27",
36
+ "@sap-ux/btp-utils": "1.1.12",
37
+ "@sap-ux/inquirer-common": "0.11.30",
38
38
  "@sap-ux/logger": "0.8.3",
39
- "@sap-ux/system-access": "0.7.2",
39
+ "@sap-ux/system-access": "0.7.3",
40
40
  "@sap-ux/ui5-config": "0.30.1",
41
41
  "@sap-ux/project-input-validator": "0.6.72"
42
42
  },