Apply no-buffer-constructor lint rule
This commit is contained in:
1 parent
d85afcd2b5
commit
b43088c03c
6 files changed
+8
-7
No files matched your search
+1
-1
@@ -54,7 +54,7 @@ function parseAuthHeader(authHeader) {
|
||||
}
|
||||
|
||||
function basic(username, password) {
|
||||
return "Basic " + new Buffer(`${username}:${password}`).toString("base64");
|
||||
return "Basic " + Buffer.from(`${username}:${password}`).toString("base64");
|
||||
}
|
||||
|
||||
function digest(username, password, uri, httpMethod, body, authHeader) {
|
||||
|
||||
Reference in new issue
Block a user