@sap-ux/odata-service-inquirer 0.7.4 → 0.7.6

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.
@@ -478,12 +478,12 @@ class ConnectionValidator {
478
478
  async validateOdataServiceDestination(destination, servicePath, requiredOdataVersion) {
479
479
  this.resetConnectionState();
480
480
  this.resetValidity();
481
- // Get the destination URL in the BAS specific form <protocol>://<destinationName>.dest
482
- const destUrl = (0, btp_utils_1.getDestinationUrlForAppStudio)(destination.Name, servicePath);
481
+ // Get the destination URL in the BAS specific form <protocol>://<destinationName>.dest. This function lowercases the origin.
482
+ const destUrl = (0, btp_utils_1.getDestinationUrlForAppStudio)(destination.Name, servicePath).toLowerCase();
483
483
  // Get the destination URL in the portable form <protocol>://<host>:<port>.
484
484
  // We remove trailing slashes (up to 10, infinite would allow DOS attack) from the host to avoid double slashes when appending the service path.
485
485
  this._destinationUrl = servicePath
486
- ? destUrl.replace(`https://${destination.Name}.dest`, destination.Host.replace(/\/{1,10}$/, ''))
486
+ ? destUrl.replace(`https://${destination.Name.toLowerCase()}.dest`, destination.Host.replace(/\/{1,10}$/, ''))
487
487
  : destination.Host;
488
488
  this._destination = destination;
489
489
  // No need to apply sap-client as this happens automatically (from destination config) when going through the BAS proxy
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/odata-service-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for odata service writing",
4
- "version": "0.7.4",
4
+ "version": "0.7.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -26,8 +26,8 @@
26
26
  "i18next": "23.5.1",
27
27
  "inquirer-autocomplete-prompt": "2.0.1",
28
28
  "os-name": "4.0.1",
29
+ "@sap-ux/axios-extension": "1.17.7",
29
30
  "@sap-ux/btp-utils": "0.17.1",
30
- "@sap-ux/axios-extension": "1.17.6",
31
31
  "@sap-ux/fiori-generator-shared": "0.7.13",
32
32
  "@sap-ux/guided-answers-helper": "0.1.1",
33
33
  "@sap-ux/telemetry": "0.5.47",