@flow-os/client 0.0.47-dev.1772043991 → 0.0.47

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 +6 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flow-os/client",
3
- "version": "0.0.47-dev.1772043991",
3
+ "version": "0.0.47",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cli/dev.ts CHANGED
@@ -152,7 +152,6 @@ export async function dev() {
152
152
  const T = '\x1b[1;38;2;255;0;135m'; // bold #ff0087
153
153
  const U = '\x1b[38;2;255;0;135m';
154
154
  const W = 46;
155
- const innerW = W - 4;
156
155
  const proto = useHttps ? 'https' : 'http';
157
156
  const local = `${proto}://localhost:${port}`;
158
157
  const network = host ? getNetworkUrl(port, useHttps) : null;
@@ -162,16 +161,14 @@ export async function dev() {
162
161
  const pad = (s: string, len: number) => s + ' '.repeat(Math.max(0, len - strip(s).length));
163
162
  const inner = ' ' + T + 'Flow OS' + R + ' ';
164
163
  const innerLen = strip(inner).length;
165
- const half = Math.max(0, Math.floor((innerW - innerLen) / 2));
166
- const rest = innerW - half - innerLen;
167
- const top = U + '' + '─'.repeat(half) + inner + U + '─'.repeat(rest) + '' + R;
168
- const bottom = U + '╰' + '─'.repeat(innerW) + '╯' + R;
169
- const emptyLine = U + '│' + R + ' '.repeat(PAD_LEFT) + ' '.repeat(innerW - PAD_LEFT) + U + '│' + R;
164
+ const half = Math.max(0, Math.floor((W - 2 - innerLen) / 2));
165
+ const top = '╭' + '─'.repeat(half) + inner + '─'.repeat(W - 2 - half - innerLen) + '╮';
166
+ const bottom = '' + '─'.repeat(W - 2) + '';
170
167
  const localContent = iconLocal + ' Local: ' + U + local + R;
171
- const localLine = U + '│' + R + ' '.repeat(PAD_LEFT) + pad(localContent, innerW - PAD_LEFT) + U + '│' + R;
168
+ const localLine = '│' + ' '.repeat(PAD_LEFT) + pad(localContent, W - PAD_LEFT) + '│';
172
169
  const netContent = network ? iconNetwork + ' Network: ' + U + network + R : iconNetwork + ' Network: (not exposed)';
173
- const networkLine = U + '│' + R + ' '.repeat(PAD_LEFT) + pad(netContent, innerW - PAD_LEFT) + U + '│' + R;
174
- const banner = '\x1b[2A\r\x1b[K\n' + top + '\n' + emptyLine + '\n' + localLine + '\n' + networkLine + '\n' + bottom + '\n\n';
170
+ 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';
175
172
  process.stdout.write(banner);
176
173
  resolve();
177
174
  });