@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/dev.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flow-os/client",
3
- "version": "0.0.47-dev.1772043545",
3
+ "version": "0.0.47-dev.1772043812",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
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 = 46;
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
  });