@bobfrankston/rmfmail 1.1.162 → 1.1.166

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 (38) hide show
  1. package/client/android-bootstrap.bundle.js +19 -2
  2. package/client/android-bootstrap.bundle.js.map +2 -2
  3. package/client/app.bundle.js +16 -10
  4. package/client/app.bundle.js.map +2 -2
  5. package/client/components/message-viewer.js +21 -12
  6. package/client/components/message-viewer.js.map +1 -1
  7. package/client/components/message-viewer.ts +18 -12
  8. package/client/compose/compose.bundle.js +24 -0
  9. package/client/compose/compose.bundle.js.map +2 -2
  10. package/client/compose/spellcheck.js +16 -0
  11. package/client/compose/spellcheck.js.map +1 -1
  12. package/client/compose/spellcheck.ts +15 -0
  13. package/client/lib/rmf-tiny.js +25 -1
  14. package/package.json +7 -7
  15. package/packages/mailx-imap/index.d.ts.map +1 -1
  16. package/packages/mailx-imap/index.js +66 -4
  17. package/packages/mailx-imap/index.js.map +1 -1
  18. package/packages/mailx-imap/index.ts +58 -4
  19. package/packages/mailx-imap/package-lock.json +2 -2
  20. package/packages/mailx-imap/package.json +1 -1
  21. package/packages/mailx-service/index.js +1 -1
  22. package/packages/mailx-service/index.js.map +1 -1
  23. package/packages/mailx-service/index.ts +1 -1
  24. package/packages/mailx-settings/cloud.d.ts.map +1 -1
  25. package/packages/mailx-settings/cloud.js +46 -0
  26. package/packages/mailx-settings/cloud.js.map +1 -1
  27. package/packages/mailx-settings/cloud.ts +43 -0
  28. package/packages/mailx-settings/package.json +1 -1
  29. package/packages/mailx-store/db.d.ts +8 -1
  30. package/packages/mailx-store/db.d.ts.map +1 -1
  31. package/packages/mailx-store/db.js +11 -2
  32. package/packages/mailx-store/db.js.map +1 -1
  33. package/packages/mailx-store/db.ts +15 -4
  34. package/packages/mailx-store/package.json +1 -1
  35. package/packages/mailx-store/store.js +1 -1
  36. package/packages/mailx-store/store.js.map +1 -1
  37. package/packages/mailx-store/store.ts +1 -1
  38. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-40852 → node_modules.npmglobalize-stash-56540}/.package-lock.json +0 -0
@@ -7564,8 +7564,19 @@ var NativeImapClient = class {
7564
7564
  }
7565
7565
  });
7566
7566
  this.transport.onError((err) => {
7567
+ const errAny = err;
7568
+ const parts = [];
7569
+ if (errAny?.message)
7570
+ parts.push(String(errAny.message));
7571
+ if (errAny?.code)
7572
+ parts.push(`code=${errAny.code}`);
7573
+ if (errAny?.errno !== void 0)
7574
+ parts.push(`errno=${errAny.errno}`);
7575
+ if (errAny?.syscall)
7576
+ parts.push(`syscall=${errAny.syscall}`);
7577
+ const desc = parts.length > 0 ? parts.join(" ") : `<no message> ${typeof err} ${err?.constructor?.name || ""}`.trim();
7567
7578
  if (this.verbose)
7568
- console.error(` [imap] Transport error: ${err.message}`);
7579
+ console.error(` [imap] Transport error: ${desc}`);
7569
7580
  this._connected = false;
7570
7581
  this.idleTag = null;
7571
7582
  this.idleCallback = null;
@@ -7577,7 +7588,13 @@ var NativeImapClient = class {
7577
7588
  if (this.pendingCommand) {
7578
7589
  const { reject } = this.pendingCommand;
7579
7590
  this.pendingCommand = null;
7580
- reject(err);
7591
+ if (err instanceof Error && !err.message) {
7592
+ const wrapped = new Error(desc);
7593
+ wrapped.cause = err;
7594
+ reject(wrapped);
7595
+ } else {
7596
+ reject(err);
7597
+ }
7581
7598
  }
7582
7599
  });
7583
7600
  await this.transport.connect(this.config.server, this.config.port, useTls, this.config.server);