@bobfrankston/mailx 1.0.24 → 1.0.25

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/bin/mailx.js +5 -2
  2. package/package.json +1 -1
package/bin/mailx.js CHANGED
@@ -40,7 +40,7 @@ async function main() {
40
40
  const inUse = await isPortInUse(PORT);
41
41
  if (inUse) {
42
42
  console.log("mailx server already running");
43
- if (!noBrowser) openBrowser(`http://localhost:${PORT}`);
43
+ if (!noBrowser) openBrowser(`http://127.0.0.1:${PORT}`);
44
44
  return;
45
45
  }
46
46
 
@@ -53,9 +53,12 @@ async function main() {
53
53
  await new Promise(r => setTimeout(r, 200));
54
54
  if (await isPortInUse(PORT)) break;
55
55
  }
56
- openBrowser(`http://localhost:${PORT}`);
56
+ openBrowser(`http://127.0.0.1:${PORT}`);
57
57
  console.log("mailx opened (browser)");
58
58
  }
59
+
60
+ // Keep process alive — server is running
61
+ await new Promise(() => {});
59
62
  } else {
60
63
  // Default: launch native WebView app with IPC
61
64
  // Platform-specific binary naming (matches msger pattern)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Local-first email client with IMAP sync and standalone native app",
5
5
  "type": "module",
6
6
  "main": "bin/mailx.js",