@sap-ux/odata-service-inquirer 0.7.3 → 0.7.5
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
|
+
"version": "0.7.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
28
28
|
"os-name": "4.0.1",
|
|
29
29
|
"@sap-ux/axios-extension": "1.17.6",
|
|
30
|
+
"@sap-ux/fiori-generator-shared": "0.7.13",
|
|
31
|
+
"@sap-ux/telemetry": "0.5.47",
|
|
32
|
+
"@sap-ux/inquirer-common": "0.5.9",
|
|
30
33
|
"@sap-ux/btp-utils": "0.17.1",
|
|
31
|
-
"@sap-ux/fiori-generator-shared": "0.7.12",
|
|
32
34
|
"@sap-ux/guided-answers-helper": "0.1.1",
|
|
33
|
-
"@sap-ux/telemetry": "0.5.46",
|
|
34
|
-
"@sap-ux/inquirer-common": "0.5.8",
|
|
35
35
|
"@sap-ux/logger": "0.6.0",
|
|
36
|
-
"@sap-ux/project-access": "1.28.
|
|
37
|
-
"@sap-ux/
|
|
38
|
-
"@sap-ux/
|
|
36
|
+
"@sap-ux/project-access": "1.28.9",
|
|
37
|
+
"@sap-ux/store": "0.9.3",
|
|
38
|
+
"@sap-ux/project-input-validator": "0.3.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@types/inquirer": "8.2.6",
|
|
44
44
|
"@types/lodash": "4.14.202",
|
|
45
45
|
"jest-extended": "3.2.4",
|
|
46
|
-
"@sap-ux/fiori-generator-shared": "0.7.
|
|
46
|
+
"@sap-ux/fiori-generator-shared": "0.7.13",
|
|
47
47
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
48
|
-
"@sap-ux/odata-service-writer": "0.24.
|
|
48
|
+
"@sap-ux/odata-service-writer": "0.24.1"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18.x"
|