@sap-ux/deploy-tooling 0.2.1 → 0.2.3

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
@@ -19,6 +19,28 @@ This is the minimal configuration for deployment to `$TMP` without the change be
19
19
  url: https://target.example
20
20
  ```
21
21
 
22
+ #### Configuration with logging enabled
23
+ Set the level of detail for log messages, default is `Info`;
24
+ ```json
25
+ Error = 0,
26
+ Warn = 1,
27
+ Info = 2,
28
+ Verbose = 3,
29
+ Debug = 4,
30
+ Silly = 5
31
+ ```
32
+ Configuration example:
33
+ ```yaml
34
+ - name: abap-deploy-task
35
+ configuration:
36
+ log: 5
37
+ app:
38
+ name: Z_TEST
39
+ package: $TMP
40
+ target:
41
+ url: https://target.example
42
+ ```
43
+
22
44
  ## CLI
23
45
  The module also exposes the two commands `deploy` and `undeploy`.
24
46
 
@@ -161,7 +161,7 @@ function tryDeploy(archive, service, config, logger) {
161
161
  logger.error('Deployment has failed.');
162
162
  logger.debug((0, config_1.getConfigForLogging)(config));
163
163
  if (!config.verbose) {
164
- logger.error('Change logging level to debug your issue\n\t(see examples https://github.com/SAP/open-ux-tools/tree/main/packages/deploy-tooling#configuration-examples)');
164
+ logger.error('Change logging level to debug your issue\n\t(see examples https://github.com/SAP/open-ux-tools/tree/main/packages/deploy-tooling#configuration-with-logging-enabled)');
165
165
  }
166
166
  throw e;
167
167
  }
@@ -170,7 +170,7 @@ function tryDeploy(archive, service, config, logger) {
170
170
  /**
171
171
  * Main function for different deploy retry handling.
172
172
  *
173
- * @param response - response of that trigged and axios error
173
+ * @param response - response of that triggered and axios error
174
174
  * @param archive - archive file that is to be deployed
175
175
  * @param service - instance of the axios-extension deployment service
176
176
  * @param config - configuration used for the previous request
@@ -46,7 +46,7 @@ export interface CommonOptions {
46
46
  */
47
47
  verbose?: boolean;
48
48
  /**
49
- * If set to try then do not retry if a deployment fails.
49
+ * If set to true then do not retry if a deployment fails.
50
50
  */
51
51
  noRetry?: boolean;
52
52
  }
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.2.1",
12
+ "version": "0.2.3",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "!dist/**/*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "@sap-ux/axios-extension": "1.2.0",
29
+ "@sap-ux/axios-extension": "1.2.2",
30
30
  "@sap-ux/btp-utils": "0.11.5",
31
31
  "@sap-ux/logger": "0.3.5",
32
32
  "@sap-ux/store": "0.3.10",