-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(auth): make
Buffer
use more idiomatic (#4041)
We don't need the `numericArray` helper or spreading into array literals passed to `Buffer.from` calls. Instead, we should use the more idiomatic and efficient `Buffer.alloc` and `Buffer.concat` calls. This also changes `Buffer.from([…])` calls to `Buffer.of(…)` as the intermediate array is just extra noise (they probably amount to about the same in terms of perf for small N, at any rate).
- Loading branch information
1 parent
93b214c
commit 9b5ccf5
Showing
10 changed files
with
136 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.