@sap-ux/odata-service-inquirer 0.3.11 → 0.4.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.
- package/dist/error-handler/error-handler.js +108 -109
- package/dist/i18n.js +12 -23
- package/dist/index.js +20 -33
- package/dist/prompts/datasources/cap-project/cap-helpers.js +87 -127
- package/dist/prompts/datasources/cap-project/questions.js +29 -42
- package/dist/prompts/datasources/cap-project/validators.js +9 -20
- package/dist/prompts/datasources/metadata-file/index.js +3 -12
- package/dist/prompts/datasources/metadata-file/validators.js +4 -13
- package/dist/prompts/datasources/service-url/connectionValidator.js +93 -111
- package/dist/prompts/datasources/service-url/questions.js +18 -27
- package/dist/prompts/datasources/service-url/validators.js +48 -60
- package/dist/prompts/logger-helper.js +1 -1
- package/dist/prompts/prompts.js +14 -29
- package/dist/types.js +3 -0
- package/dist/utils/prompt-state.js +2 -2
- package/package.json +9 -9
package/dist/types.js
CHANGED
|
@@ -49,6 +49,9 @@ var promptNames;
|
|
|
49
49
|
* Provides a toString() for serialization on CLI since IValidationLink rendering is only supported by YeomanUI.
|
|
50
50
|
*/
|
|
51
51
|
class ValidationLink {
|
|
52
|
+
// Having to redeclare properties from an interface should not be required see: https://github.com/Microsoft/TypeScript/issues/5326
|
|
53
|
+
message;
|
|
54
|
+
link;
|
|
52
55
|
/**
|
|
53
56
|
* Constructor for ValidationLink.
|
|
54
57
|
*
|
|
@@ -8,6 +8,8 @@ exports.PromptState = void 0;
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
class PromptState {
|
|
11
|
+
static odataService = {};
|
|
12
|
+
static isYUI = false;
|
|
11
13
|
static reset() {
|
|
12
14
|
// Reset all values in the odataService object, do not reset the object reference itself as it may be used by external consumers
|
|
13
15
|
Object.keys(PromptState.odataService).forEach((key) => {
|
|
@@ -16,6 +18,4 @@ class PromptState {
|
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
exports.PromptState = PromptState;
|
|
19
|
-
PromptState.odataService = {};
|
|
20
|
-
PromptState.isYUI = false;
|
|
21
21
|
//# sourceMappingURL=prompt-state.js.map
|
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.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"fast-xml-parser": "4.2.7",
|
|
25
25
|
"i18next": "23.5.1",
|
|
26
26
|
"os-name": "4.0.1",
|
|
27
|
-
"@sap-ux/axios-extension": "1.
|
|
28
|
-
"@sap-ux/btp-utils": "0.
|
|
29
|
-
"@sap-ux/telemetry": "0.
|
|
30
|
-
"@sap-ux/inquirer-common": "0.
|
|
31
|
-
"@sap-ux/logger": "0.
|
|
32
|
-
"@sap-ux/project-access": "1.
|
|
27
|
+
"@sap-ux/axios-extension": "1.15.1",
|
|
28
|
+
"@sap-ux/btp-utils": "0.15.0",
|
|
29
|
+
"@sap-ux/telemetry": "0.5.1",
|
|
30
|
+
"@sap-ux/inquirer-common": "0.4.0",
|
|
31
|
+
"@sap-ux/logger": "0.6.0",
|
|
32
|
+
"@sap-ux/project-access": "1.24.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@types/lodash": "4.14.202",
|
|
39
39
|
"jest-extended": "3.2.4",
|
|
40
40
|
"lodash": "4.17.21",
|
|
41
|
-
"@sap-ux/odata-service-writer": "0.
|
|
42
|
-
"@sap-ux/feature-toggle": "0.
|
|
41
|
+
"@sap-ux/odata-service-writer": "0.21.0",
|
|
42
|
+
"@sap-ux/feature-toggle": "0.2.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18.x"
|