vovk 0.2.3-beta.63 → 0.2.3-beta.64
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 -0
- package/cli/server.js +4 -1
- package/package.json +1 -1
package/cli/lib/concurrent.js
CHANGED
|
@@ -29,6 +29,7 @@ function concurrent(commands, env) {
|
|
|
29
29
|
if (code !== 0) {
|
|
30
30
|
processes.forEach((p) => p.name !== name && p.process.kill('SIGINT'));
|
|
31
31
|
processes = [];
|
|
32
|
+
process.stdout.write('\n');
|
|
32
33
|
return reject(new Error(`Process ${name} exited with code ${code}`));
|
|
33
34
|
}
|
|
34
35
|
|
package/cli/server.js
CHANGED
|
@@ -91,9 +91,12 @@ const server = http.createServer((req, res) => {
|
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
92
92
|
req.on('end', async () => {
|
|
93
93
|
try {
|
|
94
|
+
// eslint-disable-next-line no-console
|
|
95
|
+
console.log(body);
|
|
94
96
|
const { metadata, PORT } = JSON.parse(body); // Parse the JSON data
|
|
95
97
|
const metadataWritten = await writeMetadata(metadata);
|
|
96
|
-
|
|
98
|
+
// eslint-disable-next-line no-console
|
|
99
|
+
console.log({ metadata, PORT });
|
|
97
100
|
const codeWritten = await generateClient(vars);
|
|
98
101
|
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
|
99
102
|
res.end('JSON data received and file created');
|