remote-deploy-cli 1.3.3 → 1.3.4

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/lib/client/index.js +17 -17
  2. package/package.json +1 -1
@@ -16,25 +16,25 @@ export const deploy = async (type, serverUrl, secret) => {
16
16
  if (result.output.stdout) console.log(result.output.stdout);
17
17
  if (result.output.stderr) console.log(result.output.stderr);
18
18
  logger.log('---------------------');
19
- } else if (type === 'custom') {
20
- logger.info('Sending custom deployment instruction to server machine...');
19
+ } else {
20
+ logger.error('Server reported failure.');
21
+ console.error(result);
22
+ }
23
+ } catch (err) {
24
+ throw err;
25
+ }
26
+ } else if (type === 'custom') {
27
+ logger.info('Sending custom deployment instruction to server machine...');
21
28
 
22
- try {
23
- const result = await sendCommand(serverUrl, '/deploy/custom', secret, {});
29
+ try {
30
+ const result = await sendCommand(serverUrl, '/deploy/custom', secret, {});
24
31
 
25
- if (result.status === 'success') {
26
- logger.success('Server successfully executed the custom deployment command.');
27
- logger.log('--- Remote Output ---');
28
- if (result.output.stdout) console.log(result.output.stdout);
29
- if (result.output.stderr) console.log(result.output.stderr);
30
- logger.log('---------------------');
31
- } else {
32
- logger.error('Server reported failure.');
33
- console.error(result);
34
- }
35
- } catch (err) {
36
- throw err;
37
- }
32
+ if (result.status === 'success') {
33
+ logger.success('Server successfully executed the custom deployment command.');
34
+ logger.log('--- Remote Output ---');
35
+ if (result.output.stdout) console.log(result.output.stdout);
36
+ if (result.output.stderr) console.log(result.output.stderr);
37
+ logger.log('---------------------');
38
38
  } else {
39
39
  logger.error('Server reported failure.');
40
40
  console.error(result);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "remote-deploy-cli",
3
3
  "author": "nafies1",
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "bin": {