@sap-ux/odata-service-inquirer 2.13.8 → 2.13.10
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.
|
@@ -13,13 +13,13 @@ const types_1 = require("../types");
|
|
|
13
13
|
const logger_helper_1 = __importDefault(require("./logger-helper"));
|
|
14
14
|
const prompt_helpers_1 = require("./prompt-helpers");
|
|
15
15
|
// Cert errors that may be ignored by the ignore cert errors prompt and NODE_TLS_REJECT_UNAUTHORIZED=0 setting
|
|
16
|
-
const ignorableCertErrors = [
|
|
16
|
+
const ignorableCertErrors = new Set([
|
|
17
17
|
inquirer_common_1.ERROR_TYPE.CERT_SELF_SIGNED,
|
|
18
18
|
inquirer_common_1.ERROR_TYPE.CERT_SELF_SIGNED_CERT_IN_CHAIN,
|
|
19
19
|
inquirer_common_1.ERROR_TYPE.CERT_EXPIRED,
|
|
20
20
|
inquirer_common_1.ERROR_TYPE.CERT_UKNOWN_OR_INVALID,
|
|
21
21
|
inquirer_common_1.ERROR_TYPE.INVALID_SSL_CERTIFICATE
|
|
22
|
-
];
|
|
22
|
+
]);
|
|
23
23
|
/**
|
|
24
24
|
* Class that can be used to determine the connectivity using a service url, system url, or service info (UAA Key details) or reentrance ticket.
|
|
25
25
|
* This will determine if if the service/catalog is reachable, authentication is required and generates ting messages to guide the user.
|
|
@@ -372,7 +372,7 @@ class ConnectionValidator {
|
|
|
372
372
|
}
|
|
373
373
|
catch (error) {
|
|
374
374
|
const errorType = inquirer_common_1.ErrorHandler.getErrorType(error?.response?.status ?? error?.code);
|
|
375
|
-
if (error?.isAxiosError && ignorableCertErrors.
|
|
375
|
+
if (error?.isAxiosError && ignorableCertErrors.has(errorType)) {
|
|
376
376
|
logger_helper_1.default.logger.warn((0, i18n_1.t)('warnings.certificateErrors', { url: axiosConfig?.baseURL, error: errorType }));
|
|
377
377
|
logger_helper_1.default.logger.warn((0, i18n_1.t)('warnings.allowingUnauthorizedCertsNode'));
|
|
378
378
|
shouldIgnoreCertError = true;
|
|
@@ -729,7 +729,7 @@ class ConnectionValidator {
|
|
|
729
729
|
}
|
|
730
730
|
else if (inquirer_common_1.ErrorHandler.isCertError(status)) {
|
|
731
731
|
this.validity.reachable = true;
|
|
732
|
-
this.validity.canSkipCertError = ignorableCertErrors.
|
|
732
|
+
this.validity.canSkipCertError = ignorableCertErrors.has(inquirer_common_1.ErrorHandler.getErrorType(status));
|
|
733
733
|
this.validity.authenticated = false;
|
|
734
734
|
return prompt_helpers_1.errorHandler.getValidationErrorHelp(status, false) ?? false;
|
|
735
735
|
}
|
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.13.
|
|
4
|
+
"version": "2.13.10",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@sap/cf-tools": "3.2.2",
|
|
23
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
23
|
+
"@sap-ux/annotation-converter": "0.10.19",
|
|
24
24
|
"@sap-ux/edmx-parser": "0.9.1",
|
|
25
25
|
"axios": "1.12.2",
|
|
26
26
|
"axios-logger": "2.8.0",
|
|
@@ -29,31 +29,31 @@
|
|
|
29
29
|
"i18next": "25.3.0",
|
|
30
30
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
31
31
|
"os-name": "4.0.1",
|
|
32
|
-
"@sap-ux/axios-extension": "1.25.
|
|
32
|
+
"@sap-ux/axios-extension": "1.25.6",
|
|
33
33
|
"@sap-ux/btp-utils": "1.1.6",
|
|
34
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
34
|
+
"@sap-ux/fiori-generator-shared": "0.13.49",
|
|
35
35
|
"@sap-ux/guided-answers-helper": "0.4.2",
|
|
36
|
-
"@sap-ux/telemetry": "0.6.
|
|
37
|
-
"@sap-ux/inquirer-common": "0.10.
|
|
36
|
+
"@sap-ux/telemetry": "0.6.51",
|
|
37
|
+
"@sap-ux/inquirer-common": "0.10.8",
|
|
38
38
|
"@sap-ux/logger": "0.8.0",
|
|
39
39
|
"@sap-ux/nodejs-utils": "0.2.11",
|
|
40
|
-
"@sap-ux/project-access": "1.33.
|
|
41
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
40
|
+
"@sap-ux/project-access": "1.33.1",
|
|
41
|
+
"@sap-ux/project-input-validator": "0.6.41",
|
|
42
42
|
"@sap-ux/store": "1.4.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@sap-ux/vocabularies-types": "0.
|
|
45
|
+
"@sap-ux/vocabularies-types": "0.14.5",
|
|
46
46
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
47
47
|
"@types/inquirer-autocomplete-prompt": "2.0.2",
|
|
48
48
|
"@types/inquirer": "8.2.6",
|
|
49
49
|
"@types/lodash": "4.14.202",
|
|
50
50
|
"jest-extended": "6.0.0",
|
|
51
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
52
|
-
"@sap-ux/fiori-elements-writer": "2.8.
|
|
53
|
-
"@sap-ux/fiori-freestyle-writer": "2.5.
|
|
51
|
+
"@sap-ux/fiori-generator-shared": "0.13.49",
|
|
52
|
+
"@sap-ux/fiori-elements-writer": "2.8.32",
|
|
53
|
+
"@sap-ux/fiori-freestyle-writer": "2.5.24",
|
|
54
54
|
"@sap-ux/feature-toggle": "0.3.5",
|
|
55
|
-
"@sap-ux/odata-service-writer": "0.29.
|
|
56
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
55
|
+
"@sap-ux/odata-service-writer": "0.29.4",
|
|
56
|
+
"@sap-ux/cap-config-writer": "0.12.40"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=20.x"
|