@sap-ux/abap-deploy-config-writer 0.0.60 → 0.0.62

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.
Files changed (2) hide show
  1. package/dist/config.js +9 -9
  2. package/package.json +4 -5
package/dist/config.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateBaseConfig = updateBaseConfig;
4
4
  exports.getDeployConfig = getDeployConfig;
5
- const btp_utils_1 = require("@sap-ux/btp-utils");
6
5
  const ui5_config_1 = require("@sap-ux/ui5-config");
7
6
  const constants_1 = require("./constants");
8
7
  /**
@@ -33,6 +32,7 @@ function updateBaseConfig(isLib, basePath, baseConfig, fs) {
33
32
  */
34
33
  async function getDeployConfig(config, baseConfig) {
35
34
  const target = {};
35
+ const comments = [];
36
36
  if (config.target.destination !== undefined) {
37
37
  target.destination = config.target.destination;
38
38
  }
@@ -45,13 +45,13 @@ async function getDeployConfig(config, baseConfig) {
45
45
  if (config.target.scp) {
46
46
  target.scp = true;
47
47
  }
48
- if (!(0, btp_utils_1.isAppStudio)()) {
49
- const backendConfigs = baseConfig.getBackendConfigsFromFioriToolsProxydMiddleware();
50
- for (const backend of backendConfigs) {
51
- if (backend.authenticationType === 'reentranceTicket') {
52
- target.authenticationType = 'reentranceTicket';
53
- }
54
- }
48
+ if (config.target.authenticationType === 'reentranceTicket') {
49
+ target.authenticationType = 'reentranceTicket';
50
+ comments.push({
51
+ path: 'configuration.target.authenticationType',
52
+ comment: ' SAML support for vscode',
53
+ key: 'authenticationType'
54
+ });
55
55
  }
56
56
  const baseUi5Doc = baseConfig.removeConfig('server');
57
57
  const ui5DeployConfig = await ui5_config_1.UI5Config.newInstance(baseUi5Doc.toString());
@@ -59,7 +59,7 @@ async function getDeployConfig(config, baseConfig) {
59
59
  comment: ' yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json',
60
60
  location: 'beginning'
61
61
  });
62
- ui5DeployConfig.addAbapDeployTask(target, config.app, true, ['/test/'], config.index);
62
+ ui5DeployConfig.addAbapDeployTask(target, config.app, true, ['/test/'], config.index, comments);
63
63
  return ui5DeployConfig;
64
64
  }
65
65
  //# sourceMappingURL=config.js.map
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/SAP/open-ux-tools.git",
7
7
  "directory": "packages/abap-deploy-config-writer"
8
8
  },
9
- "version": "0.0.60",
9
+ "version": "0.0.62",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/index.js",
12
12
  "files": [
@@ -24,10 +24,9 @@
24
24
  "mem-fs": "2.1.0",
25
25
  "mem-fs-editor": "9.4.0",
26
26
  "semver": "7.5.4",
27
- "@sap-ux/btp-utils": "0.16.0",
28
- "@sap-ux/project-access": "1.28.6",
29
- "@sap-ux/system-access": "0.5.18",
30
- "@sap-ux/ui5-config": "0.25.1"
27
+ "@sap-ux/project-access": "1.28.7",
28
+ "@sap-ux/system-access": "0.5.19",
29
+ "@sap-ux/ui5-config": "0.25.2"
31
30
  },
32
31
  "devDependencies": {
33
32
  "@types/fs-extra": "9.0.13",