jonkemp / inline-css

Inline css into an html file.
MIT License
429 stars 84 forks source link

migrate to safe Buffer constructor method #86

Closed PeasOfMind closed 3 years ago

PeasOfMind commented 5 years ago

Running npm test generates the following warning:

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

The new Buffer() constructor is replaced with Buffer.from() to fix the deprecation warning.

See here for more info: https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 99.034% when pulling 3fb6bc71ad4a259d0c6e1f99139a76b3a363a457 on PeasOfMind:update-buffer-construction into fc59a73cc3eefea28a0f726c02a6325e4932254c on jonkemp:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 99.034% when pulling 3fb6bc71ad4a259d0c6e1f99139a76b3a363a457 on PeasOfMind:update-buffer-construction into fc59a73cc3eefea28a0f726c02a6325e4932254c on jonkemp:master.

jonkemp commented 5 years ago

I don't actually see this warning either.