@sap-ux/cf-deploy-config-writer 0.1.12 → 0.1.14
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/cf-writer/app-config.js +13 -16
- package/package.json +2 -2
|
@@ -244,28 +244,25 @@ function cleanupStandaloneRoutes({ rootPath, appId }, mtaInstance, fs) {
|
|
|
244
244
|
* @param mtaInstance MTA configuration instance
|
|
245
245
|
*/
|
|
246
246
|
async function saveMta(cfConfig, mtaInstance) {
|
|
247
|
-
let isMtaSaved = false;
|
|
248
247
|
try {
|
|
249
|
-
|
|
248
|
+
// Cleanup any temp files, not required to handle the exception as the mta.yaml will have been appended already with required changes.
|
|
249
|
+
await mtaInstance.save();
|
|
250
|
+
logger_helper_1.default.logger?.debug((0, i18n_1.t)('debug.mtaSaved'));
|
|
250
251
|
}
|
|
251
252
|
catch (error) {
|
|
252
253
|
logger_helper_1.default.logger?.debug((0, i18n_1.t)('debug.mtaSavedFailed', { error }));
|
|
253
|
-
isMtaSaved = await mtaInstance.save();
|
|
254
254
|
}
|
|
255
|
-
if
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
logger_helper_1.default.logger?.error((0, i18n_1.t)('error.mtaExtensionFailed', { error }));
|
|
266
|
-
}
|
|
255
|
+
// Add mtaext if required for API Hub Enterprise connectivity
|
|
256
|
+
if (cfConfig.apiHubConfig?.apiHubType === "API_HUB_ENTERPRISE" /* ApiHubType.apiHubEnterprise */) {
|
|
257
|
+
try {
|
|
258
|
+
await mtaInstance.addMtaExtensionConfig(cfConfig.destinationName, cfConfig.serviceHost, {
|
|
259
|
+
key: 'ApiKey',
|
|
260
|
+
value: cfConfig.apiHubConfig.apiHubKey
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
catch (error) {
|
|
264
|
+
logger_helper_1.default.logger?.error((0, i18n_1.t)('error.mtaExtensionFailed', { error }));
|
|
267
265
|
}
|
|
268
|
-
logger_helper_1.default.logger?.debug((0, i18n_1.t)('debug.mtaSaved'));
|
|
269
266
|
}
|
|
270
267
|
}
|
|
271
268
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-writer",
|
|
3
3
|
"description": "Add or amend Cloud Foundry and ABAP deployment configuration for SAP projects",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.14",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"mem-fs": "2.1.0",
|
|
30
30
|
"mem-fs-editor": "9.4.0",
|
|
31
31
|
"hasbin": "1.2.3",
|
|
32
|
-
"@sap-ux/project-access": "1.29.
|
|
32
|
+
"@sap-ux/project-access": "1.29.9",
|
|
33
33
|
"@sap-ux/yaml": "0.16.0",
|
|
34
34
|
"@sap-ux/btp-utils": "1.0.1",
|
|
35
35
|
"@sap-ux/logger": "0.6.0",
|