@sap-ux/deploy-config-generator-shared 0.0.39 → 0.0.40
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/prompts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getConfirmMtaContinuePrompt =
|
|
3
|
+
exports.getConfirmMtaContinuePrompt = getConfirmMtaContinuePrompt;
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
/**
|
|
6
6
|
* Enumeration of prompt names
|
|
@@ -24,5 +24,4 @@ function getConfirmMtaContinuePrompt() {
|
|
|
24
24
|
}
|
|
25
25
|
];
|
|
26
26
|
}
|
|
27
|
-
exports.getConfirmMtaContinuePrompt = getConfirmMtaContinuePrompt;
|
|
28
27
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/conditions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.showOverwriteQuestion =
|
|
3
|
+
exports.showOverwriteQuestion = showOverwriteQuestion;
|
|
4
4
|
/**
|
|
5
5
|
* Show overwrite question if certain conditions are met.
|
|
6
6
|
*
|
|
@@ -15,5 +15,4 @@ function showOverwriteQuestion(configExists, launchDeployConfigAsSubGenerator =
|
|
|
15
15
|
const showQuestion = launchDeployConfigAsSubGenerator && !launchStandaloneFromYui ? false : Boolean(!overwriteOption);
|
|
16
16
|
return showQuestion && configExists;
|
|
17
17
|
}
|
|
18
|
-
exports.showOverwriteQuestion = showOverwriteQuestion;
|
|
19
18
|
//# sourceMappingURL=conditions.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.generateDestinationName = generateDestinationName;
|
|
4
|
+
exports.getDestination = getDestination;
|
|
4
5
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
5
6
|
/**
|
|
6
7
|
* Generate a destination name based on the service path.
|
|
@@ -13,7 +14,6 @@ const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
|
13
14
|
function generateDestinationName(prefix, servicePath) {
|
|
14
15
|
return `${prefix}_${servicePath?.replace(/(^\/)|(\/$)/g, '').replace(/\//g, '_')}`;
|
|
15
16
|
}
|
|
16
|
-
exports.generateDestinationName = generateDestinationName;
|
|
17
17
|
/**
|
|
18
18
|
* Get the destination with the specified name.
|
|
19
19
|
*
|
|
@@ -28,5 +28,4 @@ async function getDestination(destName) {
|
|
|
28
28
|
}
|
|
29
29
|
return destination;
|
|
30
30
|
}
|
|
31
|
-
exports.getDestination = getDestination;
|
|
32
31
|
//# sourceMappingURL=destination.js.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ErrorHandler = exports.ERROR_TYPE = void 0;
|
|
4
|
+
exports.bail = bail;
|
|
5
|
+
exports.handleErrorMessage = handleErrorMessage;
|
|
4
6
|
const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
|
|
5
7
|
const generator_1 = require("../base/generator");
|
|
6
8
|
const i18n_1 = require("./i18n");
|
|
@@ -52,7 +54,6 @@ exports.ErrorHandler = ErrorHandler;
|
|
|
52
54
|
function bail(errorMessage) {
|
|
53
55
|
throw new Error(errorMessage);
|
|
54
56
|
}
|
|
55
|
-
exports.bail = bail;
|
|
56
57
|
/**
|
|
57
58
|
* Handle error message, display it in the UI or throws an error in CLI.
|
|
58
59
|
*
|
|
@@ -71,5 +72,4 @@ function handleErrorMessage(appWizard, { errorType, errorMsg }) {
|
|
|
71
72
|
appWizard?.showError(error, yeoman_ui_types_1.MessageType.notification);
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
exports.handleErrorMessage = handleErrorMessage;
|
|
75
75
|
//# sourceMappingURL=error-handler.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExtensionGenPromptOpts =
|
|
3
|
+
exports.getExtensionGenPromptOpts = getExtensionGenPromptOpts;
|
|
4
4
|
const nodejs_utils_1 = require("@sap-ux/nodejs-utils");
|
|
5
5
|
/**
|
|
6
6
|
* Find fiori generator extension generators and return the path to the first one found.
|
|
@@ -41,5 +41,4 @@ async function getExtensionGenPromptOpts(createEnv, rootGeneratorName, vscode) {
|
|
|
41
41
|
}
|
|
42
42
|
return extGenPromptOpts;
|
|
43
43
|
}
|
|
44
|
-
exports.getExtensionGenPromptOpts = getExtensionGenPromptOpts;
|
|
45
44
|
//# sourceMappingURL=extension-prompts.js.map
|
package/dist/utils/i18n.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.initI18n = initI18n;
|
|
7
|
+
exports.t = t;
|
|
7
8
|
const i18next_1 = __importDefault(require("i18next"));
|
|
8
9
|
const deploy_config_generator_shared_i18n_json_1 = __importDefault(require("../translations/deploy-config-generator-shared.i18n.json"));
|
|
9
10
|
const deployConfigGenShared = 'deploy-config-generator-shared';
|
|
@@ -13,7 +14,6 @@ const deployConfigGenShared = 'deploy-config-generator-shared';
|
|
|
13
14
|
async function initI18n() {
|
|
14
15
|
await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' }, () => i18next_1.default.addResourceBundle('en', deployConfigGenShared, deploy_config_generator_shared_i18n_json_1.default));
|
|
15
16
|
}
|
|
16
|
-
exports.initI18n = initI18n;
|
|
17
17
|
/**
|
|
18
18
|
* Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
|
|
19
19
|
*
|
|
@@ -27,7 +27,6 @@ function t(key, options) {
|
|
|
27
27
|
}
|
|
28
28
|
return i18next_1.default.t(key, options);
|
|
29
29
|
}
|
|
30
|
-
exports.t = t;
|
|
31
30
|
initI18n().catch(() => {
|
|
32
31
|
// Needed for lint
|
|
33
32
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/deploy-config-generator-shared",
|
|
3
3
|
"description": "Commonly used shared functionality and types to support the deploy config generator.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.40",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -21,16 +21,15 @@
|
|
|
21
21
|
"i18next": "20.6.1",
|
|
22
22
|
"yeoman-generator": "5.10.0",
|
|
23
23
|
"@sap-ux/btp-utils": "1.0.2",
|
|
24
|
-
"@sap-ux/fiori-generator-shared": "0.
|
|
24
|
+
"@sap-ux/fiori-generator-shared": "0.10.0",
|
|
25
25
|
"@sap-ux/nodejs-utils": "0.1.8"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/inquirer": "8.2.6",
|
|
29
29
|
"@types/vscode": "1.73.1",
|
|
30
30
|
"@types/yeoman-generator": "5.2.11",
|
|
31
|
-
"
|
|
32
|
-
"@sap-ux/
|
|
33
|
-
"@sap-ux/inquirer-common": "0.6.31",
|
|
31
|
+
"@sap-ux/axios-extension": "1.19.2",
|
|
32
|
+
"@sap-ux/inquirer-common": "0.6.33",
|
|
34
33
|
"@sap-ux/store": "1.0.0"
|
|
35
34
|
},
|
|
36
35
|
"engines": {
|