@sap-ux/deploy-tooling 0.6.0 → 0.7.1

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/README.md CHANGED
@@ -67,7 +67,7 @@ Options:
67
67
  --create-transport Create a transport request during deployment
68
68
  --transport <transport-request> Transport number to record the change in the ABAP system
69
69
  --name <bsp-name> Project name of the app
70
- --strict-ssl Perform certificate validation (use --no-strict-ssl to deactivate it)
70
+ --no-strict-ssl Deactivate SSL certificate validation, enabled by default
71
71
  --test Run in test mode. ABAP backend reports deployment errors without actually deploying. (use --no-test to deactivate it)
72
72
  --package <abap-package> Package name for deploy target ABAP system
73
73
  --description <description> Project description of the app
@@ -102,7 +102,7 @@ Options:
102
102
  --password ABAP Service password
103
103
  --transport <transport-request> Transport number to record the change in the ABAP system
104
104
  --name <bsp-name> Project name of the app
105
- --strict-ssl Perform certificate validation (use --no-strict-ssl to deactivate it)
105
+ --no-strict-ssl Deactivate SSL certificate validation, enabled by default
106
106
  --test Run in test mode. ABAP backend reports undeployment errors without actually undeploying (use --no-test to deactivate it).
107
107
  -v, --version version of the deploy tooling
108
108
  -h, --help display help for command
@@ -146,18 +146,17 @@ function mergeTarget(baseTarget, options) {
146
146
  };
147
147
  }
148
148
  /**
149
- * Merge CLI and environment credentials.
149
+ * Merge CLI credentials.
150
150
  *
151
151
  * @param taskConfig - base configuration from the file
152
152
  * @param options - CLI options
153
153
  * @returns merged credentials
154
154
  */
155
155
  function mergeCredentials(taskConfig, options) {
156
- var _a, _b, _c, _d;
156
+ var _a, _b;
157
157
  let credentials = taskConfig.credentials;
158
- // Support CLI params and|or dotenv file
159
- if (options.username || process.env.SERVICE_USERNAME) {
160
- credentials = Object.assign(Object.assign({}, (credentials !== null && credentials !== void 0 ? credentials : {})), { username: (_b = (_a = options.username) !== null && _a !== void 0 ? _a : process.env.SERVICE_USERNAME) !== null && _b !== void 0 ? _b : '', password: (_d = (_c = options.password) !== null && _c !== void 0 ? _c : process.env.SERVICE_PASSWORD) !== null && _d !== void 0 ? _d : '' });
158
+ if (options.username || options.password) {
159
+ credentials = Object.assign(Object.assign({}, (credentials !== null && credentials !== void 0 ? credentials : {})), { username: (_a = options.username) !== null && _a !== void 0 ? _a : '', password: (_b = options.password) !== null && _b !== void 0 ? _b : '' });
161
160
  }
162
161
  return credentials;
163
162
  }
package/dist/cli/index.js CHANGED
@@ -50,7 +50,7 @@ function createCommand(name) {
50
50
  'destination'
51
51
  ]))
52
52
  .option('--name <bsp-name>', 'Project name of the app')
53
- .option('--strict-ssl', 'Perform certificate validation (use --no-strict-ssl to deactivate it)')
53
+ .option('--no-strict-ssl', 'Deactivate certificate validation', true)
54
54
  .option('--query-params <param1=value&param2=value>', 'Additional parameters that are to be added to calls to the target.')
55
55
  .option('--test', `Run in test mode. ABAP backend reports ${name}ment errors without actually ${name}ing (use --no-test to deactivate it).`);
56
56
  if (name === 'deploy') {
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.6.0",
12
+ "version": "0.7.1",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",