indutny / asn1.js

ASN.1 Decoder/Encoder/DSL
MIT License
181 stars 64 forks source link

Update bn.js to latest version due to Buffer() deprecation warnings. #120

Open tabarra opened 4 years ago

tabarra commented 4 years ago

The dependency bn.js is currently on version 5.1.1 and asn1.js requires ^4.0.0.
This will likely solve a deprecation warning on the Buffer() usage.

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