@flow-os/client 0.0.47-dev.1772043545 → 0.0.47-dev.1772043812
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/package.json +1 -1
- package/src/cli/dev.ts +3 -2
package/package.json
CHANGED
package/src/cli/dev.ts
CHANGED
|
@@ -151,7 +151,7 @@ export async function dev() {
|
|
|
151
151
|
httpServer.removeListener('error', onError);
|
|
152
152
|
const T = '\x1b[1;38;2;255;0;135m'; // bold #ff0087
|
|
153
153
|
const U = '\x1b[38;2;255;0;135m';
|
|
154
|
-
const W =
|
|
154
|
+
const W = 42;
|
|
155
155
|
const proto = useHttps ? 'https' : 'http';
|
|
156
156
|
const local = `${proto}://localhost:${port}`;
|
|
157
157
|
const network = host ? getNetworkUrl(port, useHttps) : null;
|
|
@@ -164,11 +164,12 @@ export async function dev() {
|
|
|
164
164
|
const half = Math.max(0, Math.floor((W - 2 - innerLen) / 2));
|
|
165
165
|
const top = '╭' + '─'.repeat(half) + inner + '─'.repeat(W - 2 - half - innerLen) + '╮';
|
|
166
166
|
const bottom = '╰' + '─'.repeat(W - 2) + '╯';
|
|
167
|
+
const emptyLine = '│' + ' '.repeat(PAD_LEFT) + ' '.repeat(W - PAD_LEFT) + '│';
|
|
167
168
|
const localContent = iconLocal + ' Local: ' + U + local + R;
|
|
168
169
|
const localLine = '│' + ' '.repeat(PAD_LEFT) + pad(localContent, W - PAD_LEFT) + '│';
|
|
169
170
|
const netContent = network ? iconNetwork + ' Network: ' + U + network + R : iconNetwork + ' Network: (not exposed)';
|
|
170
171
|
const networkLine = '│' + ' '.repeat(PAD_LEFT) + pad(netContent, W - PAD_LEFT) + '│';
|
|
171
|
-
const banner = '\x1b[2A\r\x1b[K\n' + top + '\n' + localLine + '\n' + networkLine + '\n' + bottom + '\n\n';
|
|
172
|
+
const banner = '\x1b[2A\r\x1b[K\n' + top + '\n' + emptyLine + '\n' + localLine + '\n' + networkLine + '\n' + bottom + '\n\n';
|
|
172
173
|
process.stdout.write(banner);
|
|
173
174
|
resolve();
|
|
174
175
|
});
|