pinokiod 3.3.33 → 3.3.35

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/kernel/bin/vs.js CHANGED
@@ -12,6 +12,10 @@ class VS {
12
12
  ondata({ raw: `downloading installer: ${installer_url}...\r\n` })
13
13
  await this.kernel.bin.download(installer_url, installer, ondata)
14
14
 
15
+ // 2.1. Try uninstalling first
16
+ ondata({ raw: `uninstalling existing vs 2019 in case corrupt...\r\n` })
17
+ await this.uninstall(req, data)
18
+
15
19
  // 3. Run installer
16
20
  if (os.release().startsWith("10")) {
17
21
  ondata({ raw: `running installer: ${installer}...\r\n` })
package/kernel/util.js CHANGED
@@ -50,8 +50,12 @@ const is_port_available = async (port) => {
50
50
  }); // Close the server immediately after testing
51
51
  }
52
52
  });
53
+ server.on('error', (err) => {
54
+ console.log("> [3 port not available]", err);
55
+ resolve(false); // Port is occupied
56
+ });
53
57
  } catch (e) {
54
- console.log("> [3 port not available]", err)
58
+ console.log("> [4 port not available]", err)
55
59
  resolve(false) // port not available
56
60
  }
57
61
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.33",
3
+ "version": "3.3.35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {