vovk 0.2.3-beta.21 → 0.2.3-beta.22

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/index.js CHANGED
@@ -106,12 +106,7 @@ if (argv._.includes('build')) {
106
106
  options
107
107
  );
108
108
 
109
- void result
110
- .catch((e) => console.error(e))
111
- .then(async () => {
112
- await generateClient(argv.rc, argv.output);
113
- console.info(' 🐺 Both processes have completed and the client is generated.');
114
- });
109
+ void result.catch((e) => console.error(e));
115
110
  })
116
111
  .catch(() => {
117
112
  console.error(' 🐺 Failed to find available port.');
package/cli/server.js CHANGED
@@ -39,7 +39,6 @@ const writeMetadata = async (metadataPath, metadata) => {
39
39
  const existingMetadata = await fs.readFile(metadataPath, 'utf-8').catch(() => '{}');
40
40
  if (isEqual(JSON.parse(existingMetadata), metadata)) return;
41
41
  await fs.writeFile(metadataPath, JSON.stringify(metadata, null, 2));
42
- console.info(' 🐺 JSON data received and metadata file created');
43
42
  };
44
43
 
45
44
  const server = http.createServer((req, res) => {
@@ -59,6 +58,7 @@ const server = http.createServer((req, res) => {
59
58
  await generateClient(argv.rc, argv.output);
60
59
  res.writeHead(200, { 'Content-Type': 'text/plain' });
61
60
  res.end('JSON data received and file created');
61
+ console.info(' 🐺 JSON data received and the client is generated');
62
62
  } catch (err) {
63
63
  res.writeHead(400, { 'Content-Type': 'text/plain' });
64
64
  res.end('Invalid JSON');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "0.2.3-beta.21",
3
+ "version": "0.2.3-beta.22",
4
4
  "description": "Structural add-on for Next.js",
5
5
  "bin": "./cli/index.js",
6
6
  "scripts": {