bdy 1.9.45-dev → 1.9.46-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.9.45-dev",
4
+ "version": "1.9.46-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -31,6 +31,12 @@ const removeAllAndExit = async (txt, id, host, token) => {
31
31
  catch {
32
32
  // do nothing
33
33
  }
34
+ try {
35
+ manager_js_1.default.system.clearAgentFiles();
36
+ }
37
+ catch {
38
+ // do nothing
39
+ }
34
40
  output_js_1.default.exitError(txt);
35
41
  };
36
42
  const commandAgentInstall = (0, utils_1.newCommand)('install', texts_js_1.DESC_COMMAND_AGENT_INSTALL);
@@ -89,6 +95,7 @@ commandAgentInstall.action(async (options) => {
89
95
  if (!saved) {
90
96
  await removeAllAndExit(texts_js_1.ERR_SWW_AGENT_ENABLING, id, host, token);
91
97
  }
98
+ manager_js_1.default.system.clearAgentFiles();
92
99
  await output_js_1.default.spinner(texts_js_1.TXT_ENABLING_AGENT);
93
100
  if (process.env.DEBUG === '1') {
94
101
  manager_js_1.default.start(id, host, token, port, !!options.start);
@@ -33,6 +33,12 @@ commandAgentUninstall.action(async () => {
33
33
  catch {
34
34
  // do nothing
35
35
  }
36
+ try {
37
+ manager_js_1.default.system.clearAgentFiles();
38
+ }
39
+ catch {
40
+ // do nothing
41
+ }
36
42
  output_js_1.default.exitSuccess(texts_js_1.TXT_AGENT_DISABLED);
37
43
  });
38
44
  exports.default = commandAgentUninstall;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.9.45-dev",
4
+ "version": "1.9.46-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {