@bobfrankston/mailx 1.0.150 → 1.0.151

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/client/app.js CHANGED
@@ -898,6 +898,10 @@ optAutocomplete?.addEventListener("change", () => {
898
898
  }).catch(() => { });
899
899
  });
900
900
  const isApp = typeof mailxapi !== "undefined" && mailxapi?.isApp;
901
+ // Set baseline version text immediately (async getVersion updates it with storage info)
902
+ const versionEl = document.getElementById("app-version");
903
+ if (versionEl)
904
+ versionEl.textContent = "mailx";
901
905
  const versionPromise = getVersion();
902
906
  versionPromise.then((d) => {
903
907
  const el = document.getElementById("app-version");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx",
3
- "version": "1.0.150",
3
+ "version": "1.0.151",
4
4
  "description": "Local-first email client with IMAP sync and standalone native app",
5
5
  "type": "module",
6
6
  "main": "bin/mailx.js",
@@ -23,7 +23,7 @@
23
23
  "@bobfrankston/iflow": "^1.0.53",
24
24
  "@bobfrankston/miscinfo": "^1.0.7",
25
25
  "@bobfrankston/oauthsupport": "^1.0.20",
26
- "@bobfrankston/msger": "^0.1.200",
26
+ "@bobfrankston/msger": "^0.1.201",
27
27
  "@capacitor/android": "^8.3.0",
28
28
  "@capacitor/cli": "^8.3.0",
29
29
  "@capacitor/core": "^8.3.0",
@@ -99,9 +99,15 @@ async function dispatchAction(svc, action, p) {
99
99
  svc.allowRemoteContent(p.type, p.value);
100
100
  return { ok: true };
101
101
  case "getVersion": {
102
- const settings = svc.getSettings();
103
- const storage = svc.getStorageInfo();
104
- return { version: rootPkg.version || "dev", theme: settings.ui?.theme || "system", storage };
102
+ try {
103
+ const settings = svc.getSettings();
104
+ const storage = svc.getStorageInfo();
105
+ return { version: rootPkg.version || "dev", theme: settings.ui?.theme || "system", storage };
106
+ }
107
+ catch (e) {
108
+ console.error(` [jsonrpc] getVersion error: ${e.message}`);
109
+ return { version: rootPkg.version || "dev", theme: "system", storage: {} };
110
+ }
105
111
  }
106
112
  // Autocomplete
107
113
  case "autocomplete":