vovk 0.2.3-beta.50 → 0.2.3-beta.52
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/cli/lib/concurrent.js +1 -1
- package/cli/server.js +10 -1
- package/package.json +1 -1
package/cli/lib/concurrent.js
CHANGED
|
@@ -27,7 +27,7 @@ function concurrent(commands) {
|
|
|
27
27
|
processes = processes.filter((p) => p.name !== name);
|
|
28
28
|
|
|
29
29
|
if (code !== 0) {
|
|
30
|
-
processes.forEach((p) => p.name !== name && p.process.kill());
|
|
30
|
+
processes.forEach((p) => p.name !== name && p.process.kill('SIGINT'));
|
|
31
31
|
processes = [];
|
|
32
32
|
return reject(new Error(`Process ${name} exited with code ${code}`));
|
|
33
33
|
}
|
package/cli/server.js
CHANGED
|
@@ -53,7 +53,16 @@ const startPinging = (port) => {
|
|
|
53
53
|
pingInterval = setInterval(() => {
|
|
54
54
|
let prefix = getVovkrc(argv.rc).prefix;
|
|
55
55
|
prefix = prefix.startsWith('http://') ? prefix : `http://localhost:${port}/${prefix}`;
|
|
56
|
-
|
|
56
|
+
const endpoint = `${prefix}/__ping`;
|
|
57
|
+
// Create the HTTP GET request
|
|
58
|
+
const req = http.get(endpoint, () => {
|
|
59
|
+
// noop
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// Error handling for the request
|
|
63
|
+
req.on('error', (err) => {
|
|
64
|
+
console.error(`🐺 Error during HTTP request made to ${endpoint}:`, err.message);
|
|
65
|
+
});
|
|
57
66
|
}, 1000 * 3);
|
|
58
67
|
};
|
|
59
68
|
|