@sap-ux/odata-service-inquirer 2.17.0 → 2.17.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.
|
@@ -350,6 +350,8 @@ class ConnectionValidator {
|
|
|
350
350
|
if (resetValidity) {
|
|
351
351
|
this.resetValidity();
|
|
352
352
|
}
|
|
353
|
+
// Reset any previous connection errors
|
|
354
|
+
prompt_helpers_1.errorHandler.resetErrorState();
|
|
353
355
|
}
|
|
354
356
|
/**
|
|
355
357
|
* When the env has set `NODE_TLS_REJECT_UNAUTHORIZED=0` we make an intial request to check for cert errors.
|
|
@@ -393,8 +395,7 @@ class ConnectionValidator {
|
|
|
393
395
|
* @throws an error if the connection attempt fails, callers should handle the error
|
|
394
396
|
*/
|
|
395
397
|
async createSystemConnection({ axiosConfig, url, serviceInfo, destination, odataVersion }) {
|
|
396
|
-
this.resetConnectionState();
|
|
397
|
-
this.resetValidity();
|
|
398
|
+
this.resetConnectionState(true);
|
|
398
399
|
if (this.systemAuthType === 'reentranceTicket' || this.systemAuthType === 'serviceKey') {
|
|
399
400
|
this._serviceProvider = this.getAbapOnCloudServiceProvider(url, serviceInfo);
|
|
400
401
|
}
|
|
@@ -603,8 +604,7 @@ class ConnectionValidator {
|
|
|
603
604
|
* @returns validation result and error type if validation fails
|
|
604
605
|
*/
|
|
605
606
|
async validateOdataServiceDestination(destination, servicePath, requiredOdataVersion) {
|
|
606
|
-
this.resetConnectionState();
|
|
607
|
-
this.resetValidity();
|
|
607
|
+
this.resetConnectionState(true);
|
|
608
608
|
// Get the destination URL in the BAS specific form <protocol>://<destinationName>.dest. This function lowercases the origin.
|
|
609
609
|
const destUrl = (0, btp_utils_1.getDestinationUrlForAppStudio)(destination.Name.toLowerCase(), servicePath);
|
|
610
610
|
// Get the destination URL in the portable form <protocol>://<host>:<port>.
|
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": "2.17.
|
|
4
|
+
"version": "2.17.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"@sap/cf-tools": "3.3.0",
|
|
23
23
|
"@sap-ux/annotation-converter": "0.10.19",
|
|
24
24
|
"@sap-ux/edmx-parser": "0.9.1",
|
|
25
|
-
"axios": "1.
|
|
25
|
+
"axios": "1.13.5",
|
|
26
26
|
"axios-logger": "2.8.1",
|
|
27
27
|
"circular-reference-remover": "2.1.0",
|
|
28
28
|
"fast-xml-parser": "5.3.4",
|
|
29
29
|
"i18next": "25.8.0",
|
|
30
30
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
31
31
|
"os-name": "4.0.1",
|
|
32
|
-
"@sap-ux/axios-extension": "1.25.
|
|
33
|
-
"@sap-ux/btp-utils": "1.1.
|
|
34
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
32
|
+
"@sap-ux/axios-extension": "1.25.11",
|
|
33
|
+
"@sap-ux/btp-utils": "1.1.8",
|
|
34
|
+
"@sap-ux/fiori-generator-shared": "0.13.68",
|
|
35
35
|
"@sap-ux/guided-answers-helper": "0.4.2",
|
|
36
|
-
"@sap-ux/telemetry": "0.6.
|
|
37
|
-
"@sap-ux/inquirer-common": "0.11.
|
|
36
|
+
"@sap-ux/telemetry": "0.6.69",
|
|
37
|
+
"@sap-ux/inquirer-common": "0.11.2",
|
|
38
38
|
"@sap-ux/logger": "0.8.1",
|
|
39
|
-
"@sap-ux/nodejs-utils": "0.2.
|
|
40
|
-
"@sap-ux/project-access": "1.35.
|
|
41
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
39
|
+
"@sap-ux/nodejs-utils": "0.2.14",
|
|
40
|
+
"@sap-ux/project-access": "1.35.1",
|
|
41
|
+
"@sap-ux/project-input-validator": "0.6.53",
|
|
42
42
|
"@sap-ux/store": "1.5.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"@types/inquirer-autocomplete-prompt": "2.0.2",
|
|
48
48
|
"@types/inquirer": "8.2.6",
|
|
49
49
|
"jest-extended": "6.0.0",
|
|
50
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
51
|
-
"@sap-ux/fiori-elements-writer": "2.8.
|
|
52
|
-
"@sap-ux/fiori-freestyle-writer": "2.5.
|
|
50
|
+
"@sap-ux/fiori-generator-shared": "0.13.68",
|
|
51
|
+
"@sap-ux/fiori-elements-writer": "2.8.64",
|
|
52
|
+
"@sap-ux/fiori-freestyle-writer": "2.5.47",
|
|
53
53
|
"@sap-ux/feature-toggle": "0.3.6",
|
|
54
|
-
"@sap-ux/odata-service-writer": "0.29.
|
|
55
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
54
|
+
"@sap-ux/odata-service-writer": "0.29.16",
|
|
55
|
+
"@sap-ux/cap-config-writer": "0.12.59"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=20.x"
|