You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 07ffe8c
Browse filesBrowse the repository at this point in the historyBrowse files
fix: return the promise from every resolveContent branch
When called without a callback, only the plain string/Buffer path reached
the final return statement; the stream, URL, file path, data uri, and empty
content branches returned early, so awaiting resolveContent resolved to
undefined immediately for those content types. The branching body now lives
in an inner function and the promisified wrapper has a single exit.
Also replaces an unreachable-intent Buffer.from(0) call, which throws a
TypeError, with Buffer.alloc(0) for data uris that contain no comma.
Reported in nodemailer-upstream-bugs-2026-06-10 (issue 5).
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments