Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime: DeprecationWarning: Buffer() is deprecated due to security and usability issues... #1

Open
sawilde opened this issue Oct 2, 2021 · 0 comments

Comments

@sawilde
Copy link
Contributor

sawilde commented Oct 2, 2021

ERROR	(node:8) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

setting NODE_OPTIONS=--trace-deprecation reveals issue in mailparser

    at showFlaggedDeprecation (buffer.js:194:11)
    at new Buffer (buffer.js:278:3)
    at decode (webpack-internal:///./node_modules/libqp/lib/libqp.js:68:18)
    at Decoder._transform (webpack-internal:///./node_modules/libqp/lib/libqp.js:297:15)
    at Decoder.Transform._read (internal/streams/transform.js:205:10)
    at Decoder.Transform._write (internal/streams/transform.js:193:12)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Decoder.Writable.write (internal/streams/writable.js:303:10)
    at MailParser.processChunk (webpack-internal:///./node_modules/mailparser/lib/mail-parser.js:945:46)
    at MailParser.readData (webpack-internal:///./node_modules/mailparser/lib/mail-parser.js:227:14)

and is also reported here nodemailer/mailparser#286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant