Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using deprecated Buffer API on newer Node.js
This avoids using Buffer constructor API on newer Node.js versions. To achieve that, Buffer.from presence is checked, with validation that it's not the same method as Uint8Array.from. Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor
- Loading branch information