vovk 0.2.3-beta.66 → 0.2.3-beta.67
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/generateClient.js +1 -1
- package/cli/server.js +1 -1
- package/package.json +1 -1
package/cli/generateClient.js
CHANGED
|
@@ -84,10 +84,10 @@ if(typeof window !== 'undefined') fetch(prefix + '/__ping', { method: 'POST' });
|
|
|
84
84
|
|
|
85
85
|
const jsPath = path.join(__dirname, '../../.vovk/index.js');
|
|
86
86
|
const tsPath = path.join(__dirname, '../../.vovk/index.d.ts');
|
|
87
|
-
await fs.mkdir('../../.vovk', { recursive: true });
|
|
88
87
|
const existingJs = await fs.readFile(jsPath, 'utf-8').catch(() => '');
|
|
89
88
|
const existingTs = await fs.readFile(tsPath, 'utf-8').catch(() => '');
|
|
90
89
|
if (existingJs === js && existingTs === ts) return false;
|
|
90
|
+
await fs.mkdir(path.join(__dirname, '../../.vovk'), { recursive: true });
|
|
91
91
|
await fs.writeFile(tsPath, ts);
|
|
92
92
|
await fs.writeFile(jsPath, js);
|
|
93
93
|
|
package/cli/server.js
CHANGED
|
@@ -97,7 +97,7 @@ const server = http.createServer((req, res) => {
|
|
|
97
97
|
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
|
98
98
|
res.end('JSON data received and file created');
|
|
99
99
|
if (metadataWritten) {
|
|
100
|
-
console.info(' 🐺 JSON metadata
|
|
100
|
+
console.info(' 🐺 JSON metadata updated');
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
if (codeWritten) {
|