mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 01:14:47 +00:00
chore(deps): upgrade all dependencies; next 16.4.3 (RCE GHSA-2464-fhr4-w9xw) (#257)
- next 16.3.8 -> 16.4.3 (GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr) - every workspace dependency to latest; majors: express 5, @simplewebauthn 14, imapflow 2 (status() may return false), nodemailer 10, libsodium-wrappers 0.8, commander 15, vite 8, @vitejs/plugin-react 6, typescript 7 (base tsconfig lists types: ["node"]), @logicsrc/validators 0.6, openmcp 0.4, hqtui 0.11, stack 0.5, x402-gateway 0.13 - bun 1.4.4 (image + packageManager) - bun audit: 3 critical / 34 high -> 0 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
50eb8ac30d
commit
297c5df54a
36 changed files with 501 additions and 793 deletions
|
|
@ -107,8 +107,9 @@ function createImapflowDriver(config: MailuConfig): ImapDriver {
|
|||
out.push({
|
||||
name: box.name,
|
||||
path: box.path,
|
||||
unseen: status.unseen ?? 0,
|
||||
total: status.messages ?? 0
|
||||
// imapflow 2 returns false when STATUS fails for a mailbox.
|
||||
unseen: status ? status.unseen ?? 0 : 0,
|
||||
total: status ? status.messages ?? 0 : 0
|
||||
});
|
||||
}
|
||||
return out;
|
||||
|
|
@ -120,7 +121,7 @@ function createImapflowDriver(config: MailuConfig): ImapDriver {
|
|||
const lock = await c.getMailboxLock(mailbox);
|
||||
try {
|
||||
const status = await c.status(mailbox, { messages: true });
|
||||
const total = status.messages ?? 0;
|
||||
const total = status ? status.messages ?? 0 : 0;
|
||||
if (total === 0) return [];
|
||||
const start = Math.max(1, total - limit + 1);
|
||||
const rows: MessageSummary[] = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue