@sap-ux/deploy-tooling 1.0.12 → 1.0.13

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.
@@ -5,7 +5,7 @@ import { getConfigForLogging, isBspConfig, throwConfigMissingError } from './con
5
5
  import { promptConfirmation } from './prompt.js';
6
6
  import { createAbapServiceProvider, getCredentialsWithPrompts } from '@sap-ux/system-access';
7
7
  import { getAppDescriptorVariant } from './archive.js';
8
- import { validateBeforeDeploy, formatSummary, showAdditionalInfoForOnPrem, checkForCredentials } from './validate.js';
8
+ import { validateBeforeDeploy, formatSummary, showAdditionalInfoForOnPrem, checkForCredentials, warnOnFullUrlDestination } from './validate.js';
9
9
  import { ErrorHandler } from '@sap-ux/inquirer-common';
10
10
  /**
11
11
  * Handle exceptions thrown, in some cases we to retry them.
@@ -262,6 +262,7 @@ export async function deploy(archive, config, logger) {
262
262
  writeFileSync(`archive.zip`, new Uint8Array(archive));
263
263
  }
264
264
  const provider = await createProvider(config, logger);
265
+ await warnOnFullUrlDestination(config.target.destination, logger);
265
266
  logger.info(`Starting to deploy${config.test === true ? ' in test mode' : ''}.`);
266
267
  await tryDeploy(provider, config, logger, archive);
267
268
  }
@@ -68,4 +68,11 @@ export declare function showAdditionalInfoForOnPrem(destination: string): Promis
68
68
  * @returns Promise boolean.
69
69
  */
70
70
  export declare function checkForCredentials(destination: string | undefined, logger: Logger): Promise<boolean>;
71
+ /**
72
+ * Warns if the destination is configured as a full URL destination.
73
+ *
74
+ * @param destination Identifier for destination to be checked.
75
+ * @param logger Logger from the calling context.
76
+ */
77
+ export declare function warnOnFullUrlDestination(destination: string | undefined, logger: Logger): Promise<void>;
71
78
  //# sourceMappingURL=validate.d.ts.map
@@ -2,7 +2,7 @@ import { TransportChecksService, ListPackageService, AtoService } from '@sap-ux/
2
2
  import chalk from 'chalk';
3
3
  import { validateAppName, validateAppDescription, validateClient, validatePackage, validateTransportRequestNumber, validateUrl } from '@sap-ux/project-input-validator';
4
4
  import { EOL } from 'node:os';
5
- import { isAppStudio, isOnPremiseDestination, listDestinations, Authentication } from '@sap-ux/btp-utils';
5
+ import { isAppStudio, isFullUrlDestination, isOnPremiseDestination, listDestinations, Authentication } from '@sap-ux/btp-utils';
6
6
  export var SummaryStatus;
7
7
  (function (SummaryStatus) {
8
8
  SummaryStatus[SummaryStatus["Valid"] = 0] = "Valid";
@@ -370,4 +370,18 @@ async function getDestinations() {
370
370
  }
371
371
  return cachedDestinationsList;
372
372
  }
373
+ /**
374
+ * Warns if the destination is configured as a full URL destination.
375
+ *
376
+ * @param destination Identifier for destination to be checked.
377
+ * @param logger Logger from the calling context.
378
+ */
379
+ export async function warnOnFullUrlDestination(destination, logger) {
380
+ if (destination && isAppStudio()) {
381
+ const destinations = await listDestinations();
382
+ if (destinations[destination] && isFullUrlDestination(destinations[destination])) {
383
+ logger.warn('The destination is configured as a full URL destination. Deployment may not work as expected due to duplicated path segments when routing requests. For more information, see SAP Guided Answers: https://ga.support.sap.com/index.html#/tree/3046/actions/45995:52881:52892:68172');
384
+ }
385
+ }
386
+ }
373
387
  //# sourceMappingURL=validate.js.map
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "bugs": {
11
11
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
12
12
  },
13
- "version": "1.0.12",
13
+ "version": "1.0.13",
14
14
  "license": "Apache-2.0",
15
15
  "author": "@SAP/ux-tools-team",
16
16
  "main": "dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "@sap-ux/inquirer-common": "1.0.12",
39
39
  "@sap-ux/logger": "1.0.1",
40
40
  "@sap-ux/system-access": "1.0.3",
41
- "@sap-ux/ui5-config": "1.0.3",
42
- "@sap-ux/project-input-validator": "1.0.6"
41
+ "@sap-ux/project-input-validator": "1.0.6",
42
+ "@sap-ux/ui5-config": "1.0.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@jest/globals": "30.3.0",