@sap-ux/deploy-tooling 0.14.15 → 0.14.16

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.
@@ -9,12 +9,6 @@ import type { BspConfig } from '@sap-ux/axios-extension';
9
9
  export declare function getConfigForLogging(config: AbapDeployConfig): AbapDeployConfig | (Omit<AbapDeployConfig, 'credentials'> & {
10
10
  credentials: 'hidden';
11
11
  });
12
- /**
13
- * Replace environment variable references of pattern `env:VAR_NAME` with the value of the corresponding environment variable.
14
- *
15
- * @param obj - any object structure
16
- */
17
- export declare function replaceEnvVariables(obj: object): void;
18
12
  /**
19
13
  * Helper function for throwing a missing property error.
20
14
  *
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateConfig = exports.isBspConfig = exports.throwConfigMissingError = exports.replaceEnvVariables = exports.getConfigForLogging = void 0;
3
+ exports.validateConfig = exports.isBspConfig = exports.throwConfigMissingError = exports.getConfigForLogging = void 0;
4
4
  const btp_utils_1 = require("@sap-ux/btp-utils");
5
5
  const system_access_1 = require("@sap-ux/system-access");
6
6
  /**
@@ -19,24 +19,6 @@ function getConfigForLogging(config) {
19
19
  }
20
20
  }
21
21
  exports.getConfigForLogging = getConfigForLogging;
22
- /**
23
- * Replace environment variable references of pattern `env:VAR_NAME` with the value of the corresponding environment variable.
24
- *
25
- * @param obj - any object structure
26
- */
27
- function replaceEnvVariables(obj) {
28
- for (const key in obj) {
29
- const value = obj[key];
30
- if (typeof value === 'object') {
31
- replaceEnvVariables(value);
32
- }
33
- else if (typeof value === 'string' && value.startsWith('env:')) {
34
- const varName = value.split('env:')[1];
35
- obj[key] = process.env[varName];
36
- }
37
- }
38
- }
39
- exports.replaceEnvVariables = replaceEnvVariables;
40
22
  /**
41
23
  * Helper function for throwing a missing property error.
42
24
  *
package/dist/cli/index.js CHANGED
@@ -17,6 +17,7 @@ const types_1 = require("../types");
17
17
  const archive_1 = require("./archive");
18
18
  const config_1 = require("./config");
19
19
  const dotenv_1 = require("dotenv");
20
+ const ui5_config_1 = require("@sap-ux/ui5-config");
20
21
  /**
21
22
  * Create an instance of a command runner for deployment.
22
23
  *
@@ -104,7 +105,7 @@ function prepareRun(cmd) {
104
105
  logger.debug((0, base_1.getConfigForLogging)(config));
105
106
  }
106
107
  (0, base_1.validateConfig)(config);
107
- (0, base_1.replaceEnvVariables)(config);
108
+ (0, ui5_config_1.replaceEnvVariables)(config);
108
109
  return { cmd, logger, config, options };
109
110
  });
110
111
  }
package/dist/ui5/index.js CHANGED
@@ -13,6 +13,7 @@ const types_1 = require("../types");
13
13
  const base_1 = require("../base");
14
14
  const archive_1 = require("./archive");
15
15
  const dotenv_1 = require("dotenv");
16
+ const ui5_config_1 = require("@sap-ux/ui5-config");
16
17
  /**
17
18
  * Custom task to upload the build result to the UI5 ABAP Repository.
18
19
  *
@@ -33,7 +34,7 @@ function task({ workspace, options }) {
33
34
  logger.debug(Object.assign(Object.assign({}, options.configuration), { credentials: undefined }));
34
35
  }
35
36
  const config = (0, base_1.validateConfig)(options.configuration);
36
- (0, base_1.replaceEnvVariables)(config);
37
+ (0, ui5_config_1.replaceEnvVariables)(config);
37
38
  // The calling client can use either the projectNamespace or projectName when creating the workspace, needs to match when creating the archive.
38
39
  const archive = yield (0, archive_1.createUi5Archive)(logger, workspace, (_e = options.projectNamespace) !== null && _e !== void 0 ? _e : options.projectName, config.exclude);
39
40
  yield (0, base_1.deploy)(archive, config, logger);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
11
11
  },
12
- "version": "0.14.15",
12
+ "version": "0.14.16",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "@sap-ux/btp-utils": "0.14.3",
37
37
  "@sap-ux/logger": "0.5.1",
38
38
  "@sap-ux/system-access": "0.3.21",
39
- "@sap-ux/ui5-config": "0.22.2",
39
+ "@sap-ux/ui5-config": "0.22.3",
40
40
  "@sap-ux/project-input-validator": "0.2.3"
41
41
  },
42
42
  "devDependencies": {